Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5785818ybp; Tue, 15 Oct 2019 05:08:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwodpsOL9Rqre2B+fRepbI13Zo4x0FbQceMF/qTXsitt01RoqCA9veJZfGv3oLo1jltm2an X-Received: by 2002:a17:906:553:: with SMTP id k19mr33672420eja.102.1571141313441; Tue, 15 Oct 2019 05:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571141313; cv=none; d=google.com; s=arc-20160816; b=FpQ8Q47P25EUEAVarYYmWR/NxEguk+awTFPpUK36CiJOLgt0qPtSgJIPAu0yJjahB+ OmO4guApuy6bTFl1LYuAIQ7sipL2xy2+3JRCJM/2HhEo+ZWXfWRDbzk12Lr0OqGiZZXU bfeekCFQmuVTWxTZ+mRXE6dHAM82BBjwev04aJkGVE98z8oFZVHvTVdhhn6CLwuZX0Po jsmu+iHH1L2HVvS5hC2nktNAOBCqu1FvrE1e8fq12eYXcHLD7XC7jNCWluM0h/s/piog Fj8s2i43FKKM5ju4lVrgMfPFkgCnptSW3p8uub8IW95kFSq4xUUg3cH6zH4ftB1RSI2T 3YdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PVVifQBTxVDwKsRF3wqbwGArBqIbeJciXpMH9+Gy6Dw=; b=BmBkMMW6onmr2hiE8KcCe+uYafZ1Gy9o0kiYebN9VkZPT+p70naLQe/tJPQNdjPMTy ldtrpXXOC8rHUeRDWr62+omd9TxAdjWSSF3UQhEAvuTjhVZdhH7mHvatgG/T8+zM0d+H 9T03XN4c+BBycHLSpWOzUWfPnjKm4zIlwaFlhFMm3j1EpRCGbrode1DcMRZWaFREIZA4 v+DnlySrhLfdJ3idVbY9CXBI9Gu+eMfbWG1zUlbh64Y93K5iyuUQf7VntqSgPF0p985z GG6Uv8Y3/tLG7rMFUWBbzENn2mVSdvow3xyMdG63vbkE1KrZxmLRwGTei0B1la/8wzIh NDQA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j14si12351810ejf.53.2019.10.15.05.08.09; Tue, 15 Oct 2019 05:08:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731648AbfJOLEE (ORCPT + 99 others); Tue, 15 Oct 2019 07:04:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:44976 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726054AbfJOLEE (ORCPT ); Tue, 15 Oct 2019 07:04:04 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 364ECAC3E; Tue, 15 Oct 2019 11:04:02 +0000 (UTC) Date: Tue, 15 Oct 2019 13:04:01 +0200 From: Michal Hocko To: Konstantin Khlebnikov Cc: linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Vladimir Davydov , Johannes Weiner Subject: Re: [PATCH] mm/memcontrol: update lruvec counters in mem_cgroup_move_account Message-ID: <20191015110401.GZ317@dhcp22.suse.cz> References: <157112699975.7360.1062614888388489788.stgit@buzz> <20191015082048.GU317@dhcp22.suse.cz> <3b73e301-ea4a-5edb-9360-2ae9b4ad9f69@yandex-team.ru> <20191015103623.GX317@dhcp22.suse.cz> <31cab57d-6e79-33cb-1a58-99065c6e7b82@yandex-team.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31cab57d-6e79-33cb-1a58-99065c6e7b82@yandex-team.ru> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 15-10-19 13:49:14, Konstantin Khlebnikov wrote: > On 15/10/2019 13.36, Michal Hocko wrote: > > On Tue 15-10-19 11:44:22, Konstantin Khlebnikov wrote: > > > On 15/10/2019 11.20, Michal Hocko wrote: > > > > On Tue 15-10-19 11:09:59, 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. > > > > > > > > Please describe the user visible effect. > > > > > > Surprisingly I don't see any users at this moment. > > > So, there is no effect in mainline kernel. > > > > Those counters are exported right? Or do we exclude them for v1? > > It seems per-lruvec statistics is not exposed anywhere. > And per-lruvec NR_FILE_MAPPED, NR_FILE_DIRTY, NR_WRITEBACK never had users. So why do we have it in the first place? I have to say that counters as we have them now are really clear as mud. This is really begging for a clean up. -- Michal Hocko SUSE Labs