Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5923725ybp; Tue, 15 Oct 2019 07:05:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC9x38zuS6bV+E81nLEa+1jrgkHkMJoN4swghxHAkWFZTLruN0Qr4Sr8Jfm7xMA/q7VZXs X-Received: by 2002:a17:906:48c6:: with SMTP id d6mr34607612ejt.291.1571148355945; Tue, 15 Oct 2019 07:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571148355; cv=none; d=google.com; s=arc-20160816; b=Smi0pjEBJlfTNrMhH2TZAMN4utpDbpkWDF853v/7ucoOS4JDSmDzp/R8MH2IuPLyVi j7zrkiPt0a1sbQZOKpzqkI0y2MRJPqIL1IlHr58zFZ5gkOdkxxrHDj9qRbYgnAq1qrGH F4XFpPKjZiG0Dkt8kqd/gVvNi5czFCd42xo9jCpGsvSiilx5AhA4pLBGhk8k8bppkepl DrNFcUQJGbG2Ol2PqNmYsnbg10+nHAp3DBFCOOapmnoRGiyVdNHdfoVqi7lwNOQLCYLR x1hgCjeZQwyUcclwIFAbe5i+YQ6ReEOaN4HTlkoN+pz7M431zCAqkKID+dvfAUc0gWXe f70g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=gapCxVyFjCKK96iTj5+/HTSHg4pVE+p4wO6AeL1O5js=; b=O8CsSFmiP5mkOmI2HVcu9DGEzRsMtiEQWCiwJ7Eb4GFD+umrZjGqLxMm0amh5jd2/B 50hLBfvnIcy9Z/HWQf9qMr2L16EzkvqYycuUSUUU3ZXTzKOsG3OydUin1x/YzIqEEszu e/GzxTVawmVqmN1v0C4VE9OFwsvDIIdYUsJzQr/gNoA/Eq57AHs2ssweKXyXC5iq0hwF tPoRGvvMqllnJmpQNOuvgRt21nanLaKnNTaAb2JA1TYE93UwdQ2He4+OtIBGtJ4SiNn1 CTtWufA9uO+YfI32IWP/6QowugOx+7QHYWYKFsZto335BZi3Bwx1YDcktDf0aPa1HV+J K6oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=iexJ4OXO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex-team.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si13077964edr.382.2019.10.15.07.05.25; Tue, 15 Oct 2019 07:05:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=iexJ4OXO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex-team.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732346AbfJOOEt (ORCPT + 99 others); Tue, 15 Oct 2019 10:04:49 -0400 Received: from forwardcorp1p.mail.yandex.net ([77.88.29.217]:45050 "EHLO forwardcorp1p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728880AbfJOOEs (ORCPT ); Tue, 15 Oct 2019 10:04:48 -0400 Received: from mxbackcorp1o.mail.yandex.net (mxbackcorp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::301]) by forwardcorp1p.mail.yandex.net (Yandex) with ESMTP id 93D7C2E150F; Tue, 15 Oct 2019 17:04:45 +0300 (MSK) Received: from myt5-6212ef07a9ec.qloud-c.yandex.net (myt5-6212ef07a9ec.qloud-c.yandex.net [2a02:6b8:c12:3b2d:0:640:6212:ef07]) by mxbackcorp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id TQ8yEn6Bxb-4iOilYj0; Tue, 15 Oct 2019 17:04:45 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1571148285; bh=gapCxVyFjCKK96iTj5+/HTSHg4pVE+p4wO6AeL1O5js=; h=In-Reply-To:Message-ID:From:Date:References:To:Subject:Cc; b=iexJ4OXOHRyfvZOijhnDLG/OTy9p46fATNnCRuDS3uURs4zONzQOCug4kegm8PrUp r7YEtJsOfu0s8iXkRLCF4KwchV8t6Db1ylKADx0+jrNc/0CO6Pt0LvfyXyw82hKy5R vhqiRKrwvDQqEd2HUE6UbUXWLI2/HLIwQLMBxmbQ= Authentication-Results: mxbackcorp1o.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Received: from unknown (unknown [2a02:6b8:b080:7005::1:13]) by myt5-6212ef07a9ec.qloud-c.yandex.net (nwsmtp/Yandex) with ESMTPSA id KzKUEhJ4eP-4iGWHmeE; Tue, 15 Oct 2019 17:04:44 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Subject: Re: [PATCH] mm/memcontrol: update lruvec counters in mem_cgroup_move_account To: Johannes Weiner Cc: linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Michal Hocko , Vladimir Davydov References: <157112699975.7360.1062614888388489788.stgit@buzz> <20191015135348.GA139269@cmpxchg.org> From: Konstantin Khlebnikov Message-ID: <89171a94-8b6f-e949-0078-10fa8fd26dfc@yandex-team.ru> Date: Tue, 15 Oct 2019 17:04:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191015135348.GA139269@cmpxchg.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/10/2019 16.53, Johannes Weiner wrote: > On Tue, Oct 15, 2019 at 11:09:59AM +0300, Konstantin Khlebnikov wrote: >> Mapped, dirty and writeback pages are also counted in per-lruvec stats. >> These counters needs update when page is moved between cgroups. >> >> Fixes: 00f3ca2c2d66 ("mm: memcontrol: per-lruvec stats infrastructure") >> Signed-off-by: Konstantin Khlebnikov > > Acked-by: Johannes Weiner > > Please mention in the changelog that currently is nobody *consuming* > the lruvec versions of these counters and that there is no > user-visible effect. Thanks > Maybe just kill all these per-lruvec counters? I see only one user which have no alternative data source: WORKINGSET_ACTIVATE. This will save some memory: 32 * sizeof(long) * nr_nodes * nr_cpus bytes