Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933312AbbHJJy0 (ORCPT ); Mon, 10 Aug 2015 05:54:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:58032 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933204AbbHJJyU (ORCPT ); Mon, 10 Aug 2015 05:54:20 -0400 Subject: Re: [RFC v3 2/2] mm, compaction: make kcompactd rely on sysctl_extfrag_threshold To: PINTU KUMAR , "linux-mm@kvack.org" References: <1438619141-22215-2-git-send-email-vbabka@suse.cz> <166622926.1247366.1439140873216.JavaMail.yahoo@mail.yahoo.com> Cc: "linux-kernel@vger.kernel.org" , Andrew Morton , Hugh Dickins , Andrea Arcangeli , "Kirill A. Shutemov" , Rik van Riel , Mel Gorman , David Rientjes , Joonsoo Kim , Pintu Kumar From: Vlastimil Babka Message-ID: <55C874C9.4050803@suse.cz> Date: Mon, 10 Aug 2015 11:54:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <166622926.1247366.1439140873216.JavaMail.yahoo@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 914 Lines: 20 On 08/09/2015 07:21 PM, PINTU KUMAR wrote: >> >> -extern int fragmentation_index(struct zone *zone, unsigned int order); >> +extern int fragmentation_index(struct zone *zone, unsigned int order, > >> + bool ignore_suitable); > > We would like to retain the original fragmentation_index as it is. > Because in some cases people may be using it without kcompactd. > In such cases, future kernel upgrades will suffer. > In my opinion fragmentation_index should work just based on zones and order. I don't understand the concern. If you pass 'false' to ignore_suitable, you get the standard behavior. Only kcompactd uses the altered behavior. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/