Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp511992ybf; Fri, 28 Feb 2020 02:23:33 -0800 (PST) X-Google-Smtp-Source: APXvYqxTMJvnDnaG89VlkyuNBKiB7uQpP17i4DkCFn19p7iRfWYPQUWm3ImtE2KQQfKg8/z7VdqG X-Received: by 2002:a9d:22:: with SMTP id 31mr2516608ota.173.1582885413049; Fri, 28 Feb 2020 02:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582885413; cv=none; d=google.com; s=arc-20160816; b=LqNBk+CdVp+fAE9byvh9JYUO/gpI7ys2Qv9PYTu0mXxPPBBN2HrrifQb0hyZFFxLCV bZxqFTfNuzaWS+9bd1NiHO0pnlYzCLloIkEoaAsXdnpryDoM6rF0e8MVe/e+gsrYMuFA 6j3cW3rLt2xtVVaPgJWcA39TJDkpqFZIOQ14ySBEONxBChmOE0uRGmoGMvbSohZxLv8F xMSqb/Gy542Jzse1MJ236cOtuXS9bKOPHQUhF1MFENIvuLLTDCtiNhARFkeKghcPaRy2 +VmcGRB2fZpL9MNTLjYR7NAy51I/LMf4Aub/e8qoPhgQGAHgWbOq8AHq6pa6wkN/fUAy VZIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=N6TCEHm0t+T1F6MJAG0DPrUF8K05yR9M0Jle2wO7TKU=; b=ydw5WYgpbC6TH4/3lfH/S8C4VS5CRZ+pHBDdBDgYT/RvHPnmR3t/k/bqyitFZf2ppx hHrOwTbGdgLM+kb7QEzEO/xlQFZIBawkyJctWZBibp4jd8CT3TwcgLYqxYvlgbZ6/hhf HV6ePUZm4/7yiR+AOP2Lrgpq3DAbpqztIOaafZ3Z+musOSorjOHVexKN6LsMRtr+1iT1 vzlIv3kwPFY1pR9XUT8D96FQbaH9q1ugEBpeOPIC7rWiaDfGcTfRfpvEHLeZW6Jt//GS f1b56sjSBQQZMcIs6Zl5zeevs1O60pAFb7dgRdwyroMbQ4vN10eWn0BYrhR7qdcFjtuI aIjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UYW1mZna; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16si1209574otp.184.2020.02.28.02.23.19; Fri, 28 Feb 2020 02:23:33 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=UYW1mZna; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726748AbgB1KVy (ORCPT + 99 others); Fri, 28 Feb 2020 05:21:54 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43371 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbgB1KVy (ORCPT ); Fri, 28 Feb 2020 05:21:54 -0500 Received: by mail-pf1-f196.google.com with SMTP id s1so1484075pfh.10 for ; Fri, 28 Feb 2020 02:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=N6TCEHm0t+T1F6MJAG0DPrUF8K05yR9M0Jle2wO7TKU=; b=UYW1mZnaWynD7nepJ1HtYW4Enz/baJNzBmKlqs0DUhcTHB1Gdrinr8Tkh6yVLxkz1c nM8ODYkCrI1FKN2IansKH/XEFNs8EOZqvjBCArWc7Qut7UhhwUEWZNMDKF3YFqUQy6rQ KgVkh2xx3idcy9RW1IToS9PXbIJUhi8faQ1gGSIx0aoMtXnbelIxkxundwpcaFo3HZ14 MxHH/bMq4btSW+o8TVnk1eYFE4yy0Yu+YP75I3vHbGtzZI6Ymy0eRS9QWaib+gHeFvf3 Ny/ZLrFTLlbpOQZER44NCh5FqmbZfsdq//rTmHHuH/DtIFMq9HpU/5Wmxx5YD8+yHJr9 w1qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=N6TCEHm0t+T1F6MJAG0DPrUF8K05yR9M0Jle2wO7TKU=; b=ibmVL6lUEMHSTYsLVSibghYLLtrYz+sD6xOA0mPYeCR1ao1Bs1CORlUZYsVWjIZeFq jfllp9c+bzyA+4NEfc1/B6KSLAaquQeg86AwyBpoDf/qsr9VsM25xoKge7ipl0lxGjjO DqsVU0jXP5d8dcDVCbEpossbAn/HDf/1LDJYLEpTU0Zb8BZe/EsU3pfLHi6sUKL7/+Ow 7udfSC6MfwGMr15BmGb/9tDWxPhYY6uWk0fc01fey4sdRPMT3rHZoyYplUEuDr+DnA09 eXWzIsxW+HtTogm6JXRjq6yY41kmwGbJfDdhdfjVtCj2poJXoM2TmuEiBIEnPJyfnAky xdhA== X-Gm-Message-State: APjAAAUcseXsRKDdaiuWAU0eWLU00lXFLfaAqvpjc5FS6Mjdv7gT84+m aVgVSRdz0DUfHV+bRHw4dJ0= X-Received: by 2002:a62:e30f:: with SMTP id g15mr3699325pfh.124.1582885313244; Fri, 28 Feb 2020 02:21:53 -0800 (PST) Received: from ziqianlu-desktop.localdomain ([47.89.83.64]) by smtp.gmail.com with ESMTPSA id h3sm10552162pfo.102.2020.02.28.02.21.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 02:21:52 -0800 (PST) Date: Fri, 28 Feb 2020 18:21:45 +0800 From: Aaron Lu To: Joonsoo Kim Cc: Johannes Weiner , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , Hugh Dickins , Minchan Kim , Vlastimil Babka , Mel Gorman , kernel-team@lge.com, Huang Ying Subject: Re: [PATCH v2 0/9] workingset protection/detection on the anonymous LRU list Message-ID: <20200228102145.GA675897@ziqianlu-desktop.localdomain> References: <1582175513-22601-1-git-send-email-iamjoonsoo.kim@lge.com> <20200226193942.30049da9c090b466bdc5ec23@linux-foundation.org> <20200227134806.GC39625@cmpxchg.org> <20200228032358.GB634650@ziqianlu-desktop.localdomain> <20200228040214.GA21040@js1304-desktop> <20200228055726.GA674737@ziqianlu-desktop.localdomain> <20200228065214.GA17349@js1304-desktop> <20200228091700.GA675567@ziqianlu-desktop.localdomain> <20200228095534.GA30796@js1304-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200228095534.GA30796@js1304-desktop> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2020 at 06:56:11PM +0900, Joonsoo Kim wrote: > On Fri, Feb 28, 2020 at 05:17:00PM +0800, Aaron Lu wrote: > > I think LKP robot has captured these two metrics but the report didn't > > show them, which means the number is about the same with or without > > patch #1. > > robot showed these two metrics. See below. > > 50190319 ? 31% -35.7% 32291856 ? 14% proc-vmstat.pswpin > 56429784 ? 21% -42.6% 32386842 ? 14% proc-vmstat.pswpout > > pswpin/out are improved. Oh yes, I checked the vmstat part, while I should check proc-vmstat part...Sorry for missing this. > > > > with patch #1. With large inactive list, we can easily find the > > > frequently referenced page and it would result in less swap in/out. > > > > But with small inactive list, the pages that would be on inactive list > > will stay on active list? I think the larger inactive list is mainly > > used to give the anon page a chance to be promoted to active list now > > that anon pages land on inactive list first, but on reclaim, I don't see > > how a larger inactive list can cause fewer swap outs. > > Point is that larger inactive LRU helps to find hot pages and these > hot pages leads to more cache hits. > > When a cache hit happens, no swap outs happens. But, if a cache miss > happens, a new page is added to the LRU and then it causes the reclaim > and swap out. OK, I think I start to get your point. Your explanation makes sense. > > Forgive me for my curiosity and feel free to ignore my question as I > > don't want to waste your time on this. Your patchset looks a worthwhile > > thing to do, it's just the robot's report on patch1 seems er... > > I appreciate your attention. Feel free to ask. :) Thanks a lot for your patience and nice explanation :-)