Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5795169pxu; Thu, 22 Oct 2020 11:12:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPjQj+wUTZZHdBybqCD2KBzd3hBCDddYVKYkaNtbW9OSekQR/GM2FAejAeRxcjXJfEtAcm X-Received: by 2002:a17:906:abce:: with SMTP id kq14mr3479442ejb.411.1603390330679; Thu, 22 Oct 2020 11:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603390330; cv=none; d=google.com; s=arc-20160816; b=QgKTVXzSEpEwOI5ZIEka2rVTwmoKFQLnzXUrLzCkNtKk/KR+f2nHZC9mnmkk/3qYIZ MGD+oeTpG9VFOHINDK0wUIESBZY/tustT+U7X/lRZPxm2VIEwx1/uf+ZI4R6M/UbrBfz +AdBYOIgzsap4V3SlOnJXDRZsqEvu+1yfubal5+kKdsb8A9cy9A/6uF6ucCeO3+5IJD7 hZWKDZkPPsA+cYSQttu2g4xxFQ0a4oSHhPFKN7zdS62I+EQpjGYvvOlJ6f6ghvOC/o0X NoUUCSmsXzfXJSizv2X6HRYjjUezWq7H4VoETdGtYdmsWi1gCnKfO4hQEsprFvgPOCqQ uRTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xd+wFurjGt8mIia5D9RdI7kEY/qSyqqqpi8eDO7fd4U=; b=TID1pNlyNZ8i7tldZ77E3d7zTHL34N3EnbnIq0SfzgnDEFr/+VB4qfXVNiDVOijYFu KaynM0VNhURlUUA/hOsjdjQUJGiv3cutIh4N/wKHLH2svxXHuTD/1E8Wz7GiruuR0Hui iOzHLZfprnYnATK3DQE8iGdMu4mJGVU9SkMsnOTQxgQKj51FdLmlaXLB1R0DYQH74TOy rYIt/fryM6ciojWe4hulU5u6CyGefo3Om1rJWPAyKlKVSv6U0jRNyFfjM8aRMBOoaEsl X17AwJvk+lvuUEG8+FkSQ41UKc7fn1Lk0mBp3l/ArCzFAl+t5+Hr3yFW9YcGxHBu85oZ xsew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=LrjBvKpu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lg21si1383986ejb.136.2020.10.22.11.11.48; Thu, 22 Oct 2020 11:12:10 -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=@google.com header.s=20161025 header.b=LrjBvKpu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2902085AbgJVQvP (ORCPT + 99 others); Thu, 22 Oct 2020 12:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2898064AbgJVQvP (ORCPT ); Thu, 22 Oct 2020 12:51:15 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DBD3C0613CE for ; Thu, 22 Oct 2020 09:51:14 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id b1so3088111lfp.11 for ; Thu, 22 Oct 2020 09:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xd+wFurjGt8mIia5D9RdI7kEY/qSyqqqpi8eDO7fd4U=; b=LrjBvKpulM/XMhJARW83BKyF12g1Mqfl10AXRgIMcG9LM7S6kcl4R6MlFwlFkEA/1a d/KzVeD+H36kd9k/4RiTQHrYtLgqMyf+qBYv/N8Ex//ESFw0YXOyN4StOv1ukEWWqeQr hyGdvREaI2zbnlt9ny7p45Sad/Gd/FFkejzXvXodXkc/tufjFz7F4cjPQcROrIrimbjt LDcWSPR2XQzbiqwiz3VAllqfZ39xfPGZTzfanQ2bJ2679ENBpGehMgtEagxaUfdusjuu Lz0bsQ5wNKlvGwK2a5JbDUGAVjzXcEQHfzg7+ZdDyW2WOdOAoN5ovZXyr1aABAUXxX9U T/Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xd+wFurjGt8mIia5D9RdI7kEY/qSyqqqpi8eDO7fd4U=; b=KvNXRvtD+TQ3snmzleDoriEeRaMmPp5PCpjq6KobgJC4WS9SSzazJAPXdp0W+lhcNw 8muvofMIY/smT0fHyLH/rltTGcdLWITOAS0yY4rp2Uh3RxTugKOYjv3ih4eCPOeVCIw3 +qjuSi0Retm6QznYQls1H787dBb97r2KNXGaJaXcB0C3gKNotLPM1vluNgOd5MRympIG SHdsLyPClW6MysDKuqX/dmybaGcGLwz9iPlRRxTlXadmwc7KRavP7oemt/OuYGK8Z6Rj nXJRtgj7K0iQpf20ioDy1hMEGa2lyLPpMdVYaMRbNDNjj/Grvg3FLeEEh+YUbecWINiV lufw== X-Gm-Message-State: AOAM530nnFXgjI35159SdytglnXB0+QiFEbIbkcKLg3AY0LSLoD6rw9o FVEdQ8rwBtgg1tdWgFATv8bmlt+XIeK34BFW2bHJMBSaoaA= X-Received: by 2002:a19:84d3:: with SMTP id g202mr1289904lfd.346.1603385472165; Thu, 22 Oct 2020 09:51:12 -0700 (PDT) MIME-Version: 1.0 References: <20201022151844.489337-1-hannes@cmpxchg.org> In-Reply-To: <20201022151844.489337-1-hannes@cmpxchg.org> From: Shakeel Butt Date: Thu, 22 Oct 2020 09:51:01 -0700 Message-ID: Subject: Re: [PATCH] mm: memcontrol: add file_thp, shmem_thp to memory.stat To: Johannes Weiner Cc: Andrew Morton , Michal Hocko , Linux MM , Cgroups , LKML , Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 8:20 AM Johannes Weiner wrote: > > As huge page usage in the page cache and for shmem files proliferates > in our production environment, the performance monitoring team has > asked for per-cgroup stats on those pages. > > We already track and export anon_thp per cgroup. We already track file > THP and shmem THP per node, so making them per-cgroup is only a matter > of switching from node to lruvec counters. All callsites are in places > where the pages are charged and locked, so page->memcg is stable. > > Signed-off-by: Johannes Weiner Reviewed-by: Shakeel Butt