From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753955AbdCBD0B (ORCPT ); Wed, 1 Mar 2017 22:26:01 -0500 Received: from out0-129.mail.aliyun.com ([140.205.0.129]:40299 "EHLO out0-129.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753447AbdCBDZ7 (ORCPT ); Wed, 1 Mar 2017 22:25:59 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03292;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=8;SC=85;SR=0;TI=SMTPD_---.7jfSpWs_1488425134; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Johannes Weiner'" , "'Andrew Morton'" Cc: "'Jia He'" , "'Michal Hocko'" , "'Mel Gorman'" , , , References: <20170228214007.5621-1-hannes@cmpxchg.org> <20170228214007.5621-3-hannes@cmpxchg.org> In-Reply-To: <20170228214007.5621-3-hannes@cmpxchg.org> Subject: Re: [PATCH 2/9] mm: fix check for reclaimable pages in PF_MEMALLOC reclaim throttling Date: Thu, 02 Mar 2017 11:25:34 +0800 Message-ID: <077d01d29304$a7d4d060$f77e7120$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGushofxnzLnyVlk/YQjboYC5yEOwHGUwi9obpyFhA= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On March 01, 2017 5:40 AM Johannes Weiner wrote: > > PF_MEMALLOC direct reclaimers get throttled on a node when the sum of > all free pages in each zone fall below half the min watermark. During > the summation, we want to exclude zones that don't have reclaimables. > Checking the same pgdat over and over again doesn't make sense. > > Fixes: 599d0c954f91 ("mm, vmscan: move LRU lists to node") > Signed-off-by: Johannes Weiner > --- Acked-by: Hillf Danton