Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp768357ybz; Wed, 22 Apr 2020 07:40:28 -0700 (PDT) X-Google-Smtp-Source: APiQypL9zC5an1oVmDAVYIBl2lV/es6f4PyQpMqO4SSFL5MueqsuSpCuwRtq0J793oHULuMTAlfQ X-Received: by 2002:aa7:d7c1:: with SMTP id e1mr24661426eds.8.1587566427773; Wed, 22 Apr 2020 07:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587566427; cv=none; d=google.com; s=arc-20160816; b=saxBBakbaRkt1lV/1r4DqJAuRfKeWZ7CGMaBBgo1eStIW/daF5KaRAE3oTWOtk4PmN 67loV3ul1vnBmGM0bhGfI80H5qDuxL8XLS4DzyVuA2Cc1+EaE7BNmalw5ZphoIQl2p/C UlULLVUa/0PtbyDvlnReMou7QL9Zqnq8ILr/ONpJjLa+sGxu1zoRBkcENh7sr2rBKwd5 g+vfO1F8V2ssptpCnFsWhOO6YI4niwLrmeN7zAE78eLNj85UZjUKS0REAgcVx420zwtf mpHqgR6hwSfL36QCn1tdda4SIjMky2O6pmGPUCvSJINEf4A7feAGK/HNtk5KysfakTmh wwXw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=0B6G7r3YF5BHUPsoNng09Q+CmpT9KTFk7j2FdMw+hYg=; b=du8ifs0zoAOI+bNorP72So0i0UvKMMTl9FuxoqYuFc00KjdN/8jjM/m35ToQaVFrYm rirtjlGXYBF0VULMD7LXJ7HXW5INLwy8k12cXWN4B5Jgj63BbU6avYuDI1aYag+RUWV4 SzuFBj2McWrm31GrCVxalTaQK90pXatbnfIGr1UdKoU34NGgAl6RUp6ISS0wWdwW1YoM jgGglt1RQ5TQabQoipk/a5YlgxNV3WztZ9+0W/h/5Gsog/fr8bz6W91vB7GgnF7fNtQW 6lCJE9paj9HdGHD512Z+Uf/shMaKb19irtmPME1CohZfnDNvIaDrcQfoDgZLMxpygcad ZwNg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si3498456ejx.143.2020.04.22.07.39.55; Wed, 22 Apr 2020 07:40:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726355AbgDVNob (ORCPT + 99 others); Wed, 22 Apr 2020 09:44:31 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:42954 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgDVNoa (ORCPT ); Wed, 22 Apr 2020 09:44:30 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R241e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01358;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0TwKj2lW_1587563066; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TwKj2lW_1587563066) by smtp.aliyun-inc.com(127.0.0.1); Wed, 22 Apr 2020 21:44:27 +0800 Subject: Re: [PATCH 15/18] mm: memcontrol: make swap tracking an integral part of memory control To: Johannes Weiner Cc: Joonsoo Kim , Shakeel Butt , Hugh Dickins , Michal Hocko , "Kirill A. Shutemov" , Roman Gushchin , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com References: <20200420221126.341272-1-hannes@cmpxchg.org> <20200420221126.341272-16-hannes@cmpxchg.org> <20200421143923.GC341682@cmpxchg.org> <2721c508-9b32-d0e7-454d-386129bfda1b@linux.alibaba.com> <20200422133001.GE358439@cmpxchg.org> From: Alex Shi Message-ID: <9fc87212-fb75-7512-41a3-79ee13fb7909@linux.alibaba.com> Date: Wed, 22 Apr 2020 21:43:13 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200422133001.GE358439@cmpxchg.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/4/22 下午9:30, Johannes Weiner 写道: >> Also as to the RSS account name change, I don't know if it's good to polish >> them in docs. > I didn't actually change anything user-visible, just the internal name > of the counters: > > static const unsigned int memcg1_stats[] = { > NR_FILE_PAGES, /* was MEMCG_CACHE */ > NR_ANON_MAPPED, /* was MEMCG_RSS */ > NR_ANON_THPS, /* was MEMCG_RSS_HUGE */ > NR_SHMEM, > NR_FILE_MAPPED, > NR_FILE_DIRTY, > NR_WRITEBACK, > MEMCG_SWAP, > }; > > static const char *const memcg1_stat_names[] = { > "cache", > "rss", > "rss_huge", > "shmem", > "mapped_file", > "dirty", > "writeback", > "swap", > }; > > Or did you refer to something else? With about 'was MEMCG_RSS' etc. I believe curious user would know where the concept from. :) Thanks for this comments! Aelx