Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4545212ybz; Tue, 21 Apr 2020 02:32:44 -0700 (PDT) X-Google-Smtp-Source: APiQypJ8Lc9pRdq1vEhqhFXC5lbdCTid5XzWTmEQd0tkeB/h+7AA/RCksswTgIXP7uEbgfR4O9PZ X-Received: by 2002:a05:6402:1597:: with SMTP id c23mr12925369edv.353.1587461564515; Tue, 21 Apr 2020 02:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587461564; cv=none; d=google.com; s=arc-20160816; b=d/ALNomet2y6GrlaSJqaItJ2YTIiqsVGSynBacgVKWZEQ8Nj37KRedRF9aqCoE8qDk Nl/02xSjDfnqMzDig8dSqE/W7Wx8nJn8kYtXVq6qIJLlVJFVE9qt18Nc+Lx5f6YMKCk+ FmPzB8H5FPsfN416QqpWXTkwfiBqRUIM6chPvxyXFCY8j6UOMHRr6K1F2bob8qDnT2d6 +GrhoOCw93pzfG4PXExoFOit0e2a/Cu8tZ7dm03IuEAElKyXLVtom9PK8hWt2fPAh73i 6R52lwLGSxJw6Ks7vmFLlrhXaKcBEdh9c5UQMoXq/hbpFYDLwj4rLsWIN1pJCXDhzVHi 9dqg== 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=RWRzey4O6OpGmGxcoIwzhhFb1a1bXp5IIUYT3EiVxT8=; b=VKG+n7DNDVH2YicIUW8FaUVcRqvfKWG74LMY6oyCcpLiMsvaL5vG2A5YJoSpyViX1/ 37XLSTn/QtMV7jfVYibbEhBNR5d4nKxi3smCK0sPoGt5ppYyDavTJbNhcpuTowdR9F1N qdYnPxISq7QmRJ27ziBkw3xvY0grTkG5dmG1BoMVsPyKbE/jngASkfCMkXdguww7moxY jiFyV9bN3OvrvMExEj16Dbce6mipiKa9CVHLW7+RubfPOcHtF7rlgNZF/4mWHmH7l8Cr dztQX9xBs1KjoVros17/LVeLyG1U3UXJCAF7rXNS4rn1+WH0GvlRGgZhpljwHJNqLNFq A8ng== 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 h91si1368709edd.517.2020.04.21.02.32.15; Tue, 21 Apr 2020 02:32:44 -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 S1727120AbgDUJ2l (ORCPT + 99 others); Tue, 21 Apr 2020 05:28:41 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:34008 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbgDUJ2l (ORCPT ); Tue, 21 Apr 2020 05:28:41 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R791e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04427;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0TwDn9.b_1587461316; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TwDn9.b_1587461316) by smtp.aliyun-inc.com(127.0.0.1); Tue, 21 Apr 2020 17:28:37 +0800 Subject: Re: [PATCH 15/18] mm: memcontrol: make swap tracking an integral part of memory control To: Johannes Weiner , Joonsoo Kim Cc: 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> From: Alex Shi Message-ID: Date: Tue, 21 Apr 2020 17:27:30 +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: <20200420221126.341272-16-hannes@cmpxchg.org> Content-Type: text/plain; charset=gbk 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/21 ????6:11, Johannes Weiner ะด??: > The swapaccount=0 boot option will continue to exist, and it will > eliminate the page_counter overhead and hide the swap control files, > but it won't disable swap slot ownership tracking. May we add extra explanation for this change to user? and the default memsw limitations? > > This patch makes sure we always have the cgroup records at swapin > time; the next patch will fix the actual bug by charging readahead > swap pages at swapin time rather than at fault time. > > Signed-off-by: Johannes Weiner