Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1447620ybv; Thu, 13 Feb 2020 23:37:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyq6a9lurP4ZxwGbXq/UGEJ+grmuNn96LSQ4bomHQRnrrB0f5djrN4PgNdhL3S+33S1JQFo X-Received: by 2002:a05:6808:618:: with SMTP id y24mr972532oih.86.1581665829663; Thu, 13 Feb 2020 23:37:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581665829; cv=none; d=google.com; s=arc-20160816; b=Jeq76tT1/FAFv/O2a5izJTenaCcbiGpAYSAWF24Z0Gr9hA4JKyvKjkEpFfGgY2wEFd 1QNgSpwo3j6k2o0rIcr/AHxqgnvqsSQPaU4ZVzmYGvv871mujUhQWYYDx4dOVmrduyt3 OP3tSK2vuTR9Kmdp4Pl0x9akywW8BIASXfVe249KyFgmWuTXRNbeK3R0npATqbTcYEUE KrchNrk1C4ulCxXiPZqBhbzAAk2vtVPSyZZPePDmKg2R9WIjM27imdm4JbQ0ZmlRojSN tingA33NekUeL9oBO8EizoaGWCNTmQo9p3hxzHnLAtAphs/TcsekHlX5ysJeWRzKqxsa uk+w== 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:reply-to:message-id :subject:cc:to:from:date; bh=/QOSlIGdBA630cDLDsTKAaPn2hVgBW17MBwZn1y4u5w=; b=hVG0BK9+libuixWUmKZkq7mpIoLYiCQaBK2pww+xgAi1TNH085VgUYDSSH18yqQcwg 6TNkJ1Fc/3XU/QEEVZeNiVIneMICxi4YhAnMNsA8eBt7GeoGcPmi6y6cp789tJ2xwoRi Ka3FZHZaOtCx6GfCM2EYea76uYP7XW5KPv0i3fowMkU+FQEKWMcbOwqCsifsl0jjJX3+ rJZUnPUimz3JHMav7L/O71phtcop8GwMYl5r+pTW5njsn2gSBBllznMuQTZoxGNvZl5K XlutoKznZCebuK5QjSJpYOYd4NywqRf1q8B+I4uPT8HxO48Tinlg8k4HgQJLxfoFkl/r 5WVw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si2424298otr.183.2020.02.13.23.36.57; Thu, 13 Feb 2020 23:37:09 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728930AbgBNHfn (ORCPT + 99 others); Fri, 14 Feb 2020 02:35:43 -0500 Received: from mga14.intel.com ([192.55.52.115]:21250 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728779AbgBNHfn (ORCPT ); Fri, 14 Feb 2020 02:35:43 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2020 23:35:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,439,1574150400"; d="scan'208";a="432936843" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by fmsmga005.fm.intel.com with ESMTP; 13 Feb 2020 23:35:41 -0800 Date: Fri, 14 Feb 2020 15:35:59 +0800 From: Wei Yang To: Matthew Wilcox Cc: Wei Yang , Mel Gorman , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, shakeelb@google.com, yang.shi@linux.alibaba.com Subject: Re: [RFC Patch] mm/vmscan.c: not inherit classzone_idx from previous reclaim Message-ID: <20200214073559.GA28295@richard> Reply-To: Wei Yang References: <20200209074145.31389-1-richardw.yang@linux.intel.com> <20200211104223.GL3466@techsingularity.net> <20200212022554.GA7855@richard> <20200212074333.GM3466@techsingularity.net> <20200214020515.GC20833@richard> <20200214024806.GU7778@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200214024806.GU7778@bombadil.infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 13, 2020 at 06:48:06PM -0800, Matthew Wilcox wrote: >On Fri, Feb 14, 2020 at 10:05:15AM +0800, Wei Yang wrote: >> On Wed, Feb 12, 2020 at 07:43:33AM +0000, Mel Gorman wrote: >> >Broadly speaking it was driven by cases whereby kswapd either a) fell >> >asleep prematurely and there were many stalls in direct reclaim before >> >kswapd recovered, b) stalls in direct reclaim immediately after kswapd went >> >to sleep or c) kswapd reclaimed for lower zones and went to sleep while >> >parallel tasks were direct reclaiming in higher zones or higher orders. >> >> Thanks for your explanation. I am trying to understand the connection between >> those cases and the behavior of kswapd. >> >> In summary, all three cases are related to direct reclaim, while happens in >> three different timing of kswapd: > >Reclaim performed by kswapd is the opposite of direct reclaim. Direct >reclaim is reclaim initiated by a task which is trying to allocate memory. >If a task cannot perform direct reclaim itself, it may ask kswapd to >attempt to reclaim memory for it. Not totally opposite, I think. They both reclaim some memory, while after direct reclaim, some freed memory will be allocated. Is this the difference you want to mention? -- Wei Yang Help you, Help me