Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752458AbcJMH7e (ORCPT ); Thu, 13 Oct 2016 03:59:34 -0400 Received: from LGEAMRELO11.lge.com ([156.147.23.51]:39965 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750822AbcJMH72 (ORCPT ); Thu, 13 Oct 2016 03:59:28 -0400 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: iamjoonsoo.kim@lge.com X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Thu, 13 Oct 2016 16:58:56 +0900 From: Joonsoo Kim To: Vlastimil Babka Cc: Johannes Weiner , Mel Gorman , linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-team@fb.com Subject: Re: [RFC 4/4] mm, page_alloc: disallow migratetype fallback in fastpath Message-ID: <20161013075856.GC2306@js1304-P5Q-DELUXE> References: <20160928014148.GA21007@cmpxchg.org> <20160929210548.26196-1-vbabka@suse.cz> <20160929210548.26196-5-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160929210548.26196-5-vbabka@suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1124 Lines: 21 On Thu, Sep 29, 2016 at 11:05:48PM +0200, Vlastimil Babka wrote: > The previous patch has adjusted async compaction so that it helps against > longterm fragmentation when compacting for a non-MOVABLE high-order allocation. > The goal of this patch is to force such allocations go through compaction > once before being allowed to fallback to a pageblock of different migratetype > (e.g. MOVABLE). In contexts where compaction is not allowed (and for order-0 > allocations), this delayed fallback possibility can still help by trying a > different zone where fallback might not be needed and potentially waking up > kswapd earlier. Hmm... can we justify this compaction overhead in case of that there is high order freepages in other migratetype pageblock? There is no guarantee that longterm fragmentation happens and it affects the system peformance. And, it would easilly fail to compact in unmovable pageblock since there would not be migratable pages if everything works as our intended. So, I guess that checking it over and over doesn't help to reduce fragmentation and just increase latency of allocation. Thanks.