[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220822061255.151688-1-hch@lst.de>
Date: Mon, 22 Aug 2022 08:12:52 +0200
From: Christoph Hellwig <hch@....de>
To: iommu@...ts.linux.dev, Marek Szyprowski <m.szyprowski@...sung.com>,
Robin Murphy <robin.murphy@....com>
Cc: Michal Hocko <mhocko@...e.com>,
David Rientjes <rientjes@...gle.com>,
linux-kernel@...r.kernel.org
Subject: fix dma coherent pool sizing
Hi all
Michal pointed out that the sizing of the dma coherent pools is bonkers
as it uses the total memory to size the pool for each zone, which leads
to comically larger zones for the 16-MB ZONE_DMA on x86, which tends
leads to allocation failure warnings. This series switches to sizing
the ZONE_DMA and ZONE_DMA32 pools based on the number of pages that
actually reside in those zones instead.
Diffstat:
pool.c | 56 +++++++++++++++++++++++++++++++++-----------------------
1 file changed, 33 insertions(+), 23 deletions(-)
Powered by blists - more mailing lists