From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27599C3B18F for ; Fri, 14 Feb 2020 07:35:46 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E5FDD22314 for ; Fri, 14 Feb 2020 07:35:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5FDD22314 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7C9296B0603; Fri, 14 Feb 2020 02:35:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 778396B0605; Fri, 14 Feb 2020 02:35:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 68DB36B0606; Fri, 14 Feb 2020 02:35:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0232.hostedemail.com [216.40.44.232]) by kanga.kvack.org (Postfix) with ESMTP id 4E04D6B0603 for ; Fri, 14 Feb 2020 02:35:45 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id D72428248076 for ; Fri, 14 Feb 2020 07:35:44 +0000 (UTC) X-FDA: 76487923008.24.lead64_6c54a4416a159 X-HE-Tag: lead64_6c54a4416a159 X-Filterd-Recvd-Size: 2973 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Fri, 14 Feb 2020 07:35:44 +0000 (UTC) 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 orsmga104.jf.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) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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