Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4802503pxb; Thu, 14 Oct 2021 12:15:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWJiveev5GPFLD78SRAIvdY8+18CU1V28kOQg0mTJKHSOY2gzutcbzZYfvSx28zwou8JQO X-Received: by 2002:a50:9d85:: with SMTP id w5mr11120179ede.268.1634238921801; Thu, 14 Oct 2021 12:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634238921; cv=none; d=google.com; s=arc-20160816; b=o5JXynvLE5fOdo63OSEf02P95c1oln5q+nMv6dJq72GZJ/MPXQwpURtBbFX/tASvr6 q2oQbK7m2P7AZ3tfeJtO+xR2+bncHlneJcwJKhHIkIACyroM6EfDKkrOToLD7NFvu1al wpUqqOqrW2926lEGYBMKRdnuLk0i8/8KSZ2lDq8nkTIV/1KJvSaIp4ryRezo/+izz+WR 5wQhw42oFuPc9Kct7GLf0KteLiAaiQpd3CAjeC8ANi+fQ0haXLDjWZgzpbZPRKN8qRfA bFh3ntTrZVmyLa6vVIjlIrtFfMnVjvTFkGbPpphZ7HIJZBxr4ZgHXPKAGdPuBZVVYV7Q NvSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=eD7O+RRWLIkfKyTJ6TKMyILhSbZVJ9w0wV/dWtK5Dv0=; b=psmJSRJxz9ppk+aFYz20QLBF+sULW9XbUtz7cnYlo8qkZeYajWggNj1veMK6VI0qjN bZMDnsactZpBoTh1JCbt1ByZ3V82lKbYlVinRytp/ZrNPtacRU3jx/tR0PF4RIbZPxJe MU7oChS1fWGRC+IGAhSreLiju3wgm8n/H26xLqzmyeTzDq7E42NG19Ay4nf08LiIrPkQ rZnVY10cmMjLRjAD1mrAi0rrM6KYja9KkzCSnxcxAZ18oEfvgDRKMqzwX2gPlf/skTnl WQ/tvLoudfzOr2L0+HMcRET8VEqbbjVe24RihIylTli26Y4vQD4pO2ohfVr01xfVVMHJ aTOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=chOijwLa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rk25si4757312ejb.620.2021.10.14.12.14.56; Thu, 14 Oct 2021 12:15:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=chOijwLa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232779AbhJNRp2 (ORCPT + 99 others); Thu, 14 Oct 2021 13:45:28 -0400 Received: from relay.sw.ru ([185.231.240.75]:37442 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231853AbhJNRp1 (ORCPT ); Thu, 14 Oct 2021 13:45:27 -0400 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 =; Received: from [172.29.1.17] by relay.sw.ru with esmtp (Exim 4.94.2) (envelope-from ) id 1mb4lB-0062ie-69; Thu, 14 Oct 2021 20:43:17 +0300 Subject: Re: [PATCH] memcg: page_alloc: skip bulk allocator for __GFP_ACCOUNT To: Johannes Weiner , Shakeel Butt Cc: Michal Hocko , Mel Gorman , Uladzislau Rezki , Roman Gushchin , Andrew Morton , Cgroups , Linux MM , LKML References: <20211013194338.1804247-1-shakeelb@google.com> From: Vasily Averin Message-ID: Date: Thu, 14 Oct 2021 20:43:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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