From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933547AbcI0Dbr (ORCPT ); Mon, 26 Sep 2016 23:31:47 -0400 Received: from out0-138.mail.aliyun.com ([140.205.0.138]:41641 "EHLO out0-138.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077AbcI0Dbh (ORCPT ); Mon, 26 Sep 2016 23:31:37 -0400 X-Greylist: delayed 321 seconds by postgrey-1.27 at vger.kernel.org; Mon, 26 Sep 2016 23:31:36 EDT X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03295;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---.7.K1KFx_1474946746; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Vlastimil Babka'" , "'Andrew Morton'" Cc: , , "'Linus Torvalds'" , "'Arkadiusz Miskiewicz'" , "'Ralf-Peter Rohbeck'" , "'Olaf Hering'" , "'Mel Gorman'" , "'Joonsoo Kim'" , "'David Rientjes'" , "'Rik van Riel'" , "'Michal Hocko'" , "'Michal Hocko'" References: <20160926162025.21555-1-vbabka@suse.cz> <20160926162025.21555-2-vbabka@suse.cz> In-Reply-To: <20160926162025.21555-2-vbabka@suse.cz> Subject: Re: [PATCH 1/4] mm, compaction: more reliably increase direct compaction priority-fix Date: Tue, 27 Sep 2016 11:25:46 +0800 Message-ID: <01a101d2186e$d66729c0$83357d40$@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: AQGs0eSTjozmF+6XmeV5HBgBbPNGgwIC8KaCoMchR1A= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, September 27, 2016 12:20 AM Vlastimil Babka wrote > > When increasing the compaction priority, also reset retries. Otherwise we can > consume all retries on the lower priorities. Also pull the retries increment > into should_compact_retry() so it counts only the rounds where we actually > rely on it. > > Suggested-by: Michal Hocko > Signed-off-by: Vlastimil Babka > Acked-by: Michal Hocko > Cc: Mel Gorman > Cc: Joonsoo Kim > Cc: David Rientjes > Cc: Rik van Riel > --- Acked-by: Hillf Danton From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f199.google.com (mail-io0-f199.google.com [209.85.223.199]) by kanga.kvack.org (Postfix) with ESMTP id 140D428027D for ; Mon, 26 Sep 2016 23:26:07 -0400 (EDT) Received: by mail-io0-f199.google.com with SMTP id 20so7144591ioj.0 for ; Mon, 26 Sep 2016 20:26:07 -0700 (PDT) Received: from out4441.biz.mail.alibaba.com (out4441.biz.mail.alibaba.com. [47.88.44.41]) by mx.google.com with ESMTP id b200si990149ioe.142.2016.09.26.20.26.04 for ; Mon, 26 Sep 2016 20:26:06 -0700 (PDT) Reply-To: "Hillf Danton" From: "Hillf Danton" References: <20160926162025.21555-1-vbabka@suse.cz> <20160926162025.21555-2-vbabka@suse.cz> In-Reply-To: <20160926162025.21555-2-vbabka@suse.cz> Subject: Re: [PATCH 1/4] mm, compaction: more reliably increase direct compaction priority-fix Date: Tue, 27 Sep 2016 11:25:46 +0800 Message-ID: <01a101d2186e$d66729c0$83357d40$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Language: zh-cn Sender: owner-linux-mm@kvack.org List-ID: To: 'Vlastimil Babka' , 'Andrew Morton' Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, 'Linus Torvalds' , 'Arkadiusz Miskiewicz' , 'Ralf-Peter Rohbeck' , 'Olaf Hering' , 'Mel Gorman' , 'Joonsoo Kim' , 'David Rientjes' , 'Rik van Riel' , 'Michal Hocko' , 'Michal Hocko' On Tuesday, September 27, 2016 12:20 AM Vlastimil Babka wrote > > When increasing the compaction priority, also reset retries. Otherwise we can > consume all retries on the lower priorities. Also pull the retries increment > into should_compact_retry() so it counts only the rounds where we actually > rely on it. > > Suggested-by: Michal Hocko > Signed-off-by: Vlastimil Babka > Acked-by: Michal Hocko > Cc: Mel Gorman > Cc: Joonsoo Kim > Cc: David Rientjes > Cc: Rik van Riel > --- Acked-by: Hillf Danton -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org