Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3906368ybb; Mon, 23 Mar 2020 09:51:50 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsLsHWw7zNy7VY58uyAMqALo+V/Y53cIRRqark44/u6Z/IsiQtbI848IJrEWaJ5o+nkeNsL X-Received: by 2002:aca:c54d:: with SMTP id v74mr204101oif.50.1584982310306; Mon, 23 Mar 2020 09:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584982310; cv=none; d=google.com; s=arc-20160816; b=yLWD7kvWaPEm6Q17bs1+JMfTCsVtwhJ0pvGIhxO1pVGCKAqZPeJPsK3wczK1/TyY7u z9pZqTv9FTK95wsa5nrklCEae3QzUFV6TpP9eH+eOKsBTHPxnC5UAs71tOQp8ITMncGj ycHgiQV4mKdp0hhf/cKa/qYyAfJ7sDbyJ8vNks1DHE2swS74g8OjG2T441A+T1tZzUdm 2+YhgDJtIBI7lscAID08umdPPCs6ZvcGGSvGUVCRHpPY3OdjT20kPIoqqrgr1/Tn+VuQ V/y1qfYxzHy6CV8RoTNOWOtCionCEJmHLwLAq9Zwo34FXYJetynwPOyATgTFXyIoxOFC 0DuQ== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=LWBMOpdQ6RM6tzOn/8vWjeIgj8g8a5I1STuJsGCjRo8=; b=IYDjVXSZgBid6A1E55d0kpe7+Swf1LCbqazaYjdQraJDtvNxtJqFBlXwENQsZ6G2VU agvq2wFkDrck58R1HV76hFerC765aYcNbYR4QMBq7ccehilFxiNMsmiTdZyz8OgN5Wx1 mXZuj6oJSmHMIkizrxyf17PxlA6Ea8bq9MTu7FzmJNFLODmxthDBQIB3noFua0pWpRIW ORxMFiVllckh2oQtdQwxMal1jtCOkLLNpI9yby2K9YF1eOb8ZGnQy6zRuYhkmcIPtFZE lrtH/L01oVj3VQIlI/AO3/U7k3vY1Qjl7e3jUhJq2FHJjSHjntixHSGJrfQerbg2PwI2 v8Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=I8nEQQSW; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m126si7349304oig.177.2020.03.23.09.51.36; Mon, 23 Mar 2020 09:51:50 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=I8nEQQSW; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727551AbgCWQvO (ORCPT + 99 others); Mon, 23 Mar 2020 12:51:14 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:46010 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbgCWQvO (ORCPT ); Mon, 23 Mar 2020 12:51:14 -0400 Received: by mail-qt1-f196.google.com with SMTP id t17so2119853qtn.12 for ; Mon, 23 Mar 2020 09:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=LWBMOpdQ6RM6tzOn/8vWjeIgj8g8a5I1STuJsGCjRo8=; b=I8nEQQSWkjtHSqP1oR4eghgEG3cRUnPlE+gN/nLMpRir0NoJuL2+OW3Ih9ju54o1mp AHaALAKLIoIOXw3pyp+wb+fJADkm3tYqh79N43FfTLB1ikS2bppY8ZfEK12nDPlFafTR afvhXue9Jb+JdKlFwqQUl7+WlJ4l6hBwCpYmW2Y9CVnf27BQDsCNeFCqRTsDzKw+Um4T Kow9JvP65D9EhMJ0W7QNwbOxXYn/7byquVJrjEazzOPYurkG1c7A0JhF+VGWJzaw64hJ Okj2CwJ0nbbDIQ4KtMeCRus9UkOVuaENlWnzezFt2qWFp1nNrsSfj+rMW0+cHuC5+4qQ dDqQ== 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:in-reply-to; bh=LWBMOpdQ6RM6tzOn/8vWjeIgj8g8a5I1STuJsGCjRo8=; b=ioyvttyH1/mbUh4Xp/WW84mQYGQrgVbUZJI76NdaV+9EC9D7zL9rqmvYwsHYcL1qk3 bMwK7AFQ3mlhT+ffiWM43CyA/NqAwrRgGukR3TcIs23XxSA+T5ES2qL0x9YV4hQNQIEO cbknzvX20ucN3H9D2oMBQ0mHF9DIQTZLvvp7piAIT3KfkKoRpPAAMT/EUASTpYRF86F8 uragmhc9OXYfh8ihB9oVi5BE65dJzC826jnNaFaBkwTgglcGquKo+InXELAbEIt+BfhQ YVExMfIGrQEo2xaKD4oFBAayK39tsE5ia4oBueCNqKnC5JA4bX8bx5Ksu9mvCcRfFP7e qDcA== X-Gm-Message-State: ANhLgQ1lEHdySY5JNesmnK7cuWy/Oj0adztecsj6NgK17QUAjC7b93DF uz6/FnkFFZeLIILZQ8RJFgdcU3T+xOo= X-Received: by 2002:ac8:6043:: with SMTP id k3mr22532957qtm.336.1584982273059; Mon, 23 Mar 2020 09:51:13 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:a9a9]) by smtp.gmail.com with ESMTPSA id l45sm12547211qtb.8.2020.03.23.09.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2020 09:51:12 -0700 (PDT) Date: Mon, 23 Mar 2020 12:51:11 -0400 From: Johannes Weiner To: js1304@gmail.com Cc: 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, Joonsoo Kim Subject: Re: [PATCH v4 5/8] mm/workingset: handle the page without memcg Message-ID: <20200323165111.GC204561@cmpxchg.org> References: <1584942732-2184-1-git-send-email-iamjoonsoo.kim@lge.com> <1584942732-2184-6-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1584942732-2184-6-git-send-email-iamjoonsoo.kim@lge.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 23, 2020 at 02:52:09PM +0900, js1304@gmail.com wrote: > From: Joonsoo Kim > > When implementing workingset detection for anonymous page, I found > some swapcache pages with NULL memcg. They are brought in by swap > readahead and nobody has touched it. > > The idea behind the workingset code is to tell on page fault time > whether pages have been previously used or not. Since this page > hasn't been used, don't store a shadow entry for it; when it later > faults back in, we treat it as the new page that it is. > > Signed-off-by: Joonsoo Kim Acked-by: Johannes Weiner