From: Vasily Averin Subject: Re: [PATCH] memcg: page_alloc: skip bulk allocator for __GFP_ACCOUNT Date: Thu, 14 Oct 2021 20:43:16 +0300 Message-ID: References: <20211013194338.1804247-1-shakeelb@google.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Content-Type:MIME-Version:Date:Message-ID:From: Subject; bh=eD7O+RRWLIkfKyTJ6TKMyILhSbZVJ9w0wV/dWtK5Dv0=; b=chOijwLa4Moa5XyKb NTr/9oJ/r8pthIDIG2J4jg3zwc7oEUg3K1Dt4kuMmIvnnpl51iX5bHSlyA5r+UStbj4vPx3i5rW5c VjuKA6U1viK2KmSz8Wf01Tb+ZwUo2NgiL0niYCBDTJ0/h5mPerexOJJ9uBOLSGG2iF6zgUWCtXCsc =; In-Reply-To: Content-Language: en-US List-ID: Content-Type: text/plain; charset="us-ascii" To: Johannes Weiner , Shakeel Butt Cc: Michal Hocko , Mel Gorman , Uladzislau Rezki , Roman Gushchin , Andrew Morton , Cgroups , Linux MM , LKML On 14.10.2021 18:23, Johannes Weiner wrote: > On Thu, Oct 14, 2021 at 08:01:16AM -0700, Shakeel Butt wrote: >> Regarding xfs_buf_alloc_pages(), it is not using __GFP_ACCOUNT > > It probably should, actually. Sorry, somewhat off-topic, but we've > seen this consume quite large amounts of memory. __GFP_ACCOUNT and > vmstat tracking seems overdue for this one. If this will be required, you can use [PATCH mm v5] memcg: enable memory accounting in __alloc_pages_bulk https://lkml.org/lkml/2021/10/14/197 As far as I understand it will not be used right now, however I decided to submit it anyway, perhaps it may be needed later. Thank you, Vasily Averin