From: hch@infradead.org (Christoph Hellwig) Date: Thu, 22 Nov 2018 07:19:41 -0800 Subject: [PATCH v2 0/3] iommu/io-pgtable-arm-v7s: Use DMA32 zone for page tables In-Reply-To: <20181122151632.GP3065@bombadil.infradead.org> References: <20181111090341.120786-1-drinkcat@chromium.org> <0100016737801f14-84f1265d-4577-4dcf-ad57-90dbc8e0a78f-000000@email.amazonses.com> <20181121213853.GL3065@bombadil.infradead.org> <20181122023558.GO3065@bombadil.infradead.org> <20181122082602.GB2049@infradead.org> <20181122151632.GP3065@bombadil.infradead.org> Message-ID: <20181122151941.GA2681@infradead.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Nov 22, 2018 at 07:16:32AM -0800, Matthew Wilcox wrote: > Yes, your allocations from the page_frag allocator have to have similar > lifetimes. I thought that would be ideal for XFS though; as I understood > the problem, these were per-IO allocations, and IOs to the same filesystem > tend to take roughly the same amount of time. Sure, in an error case, > some IOs will take a long time before timing out, but it should be OK > to have pages unavailable during that time in these rare situations. > What am I missing? No, thee are allocations for meatada buffers, which can stay around for a long time. Worse still that depends on usage, so one buffer allocated from ma page might basically stay around forever, while another one might get reclaimed very quickly.