Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932198AbbD0Ikz (ORCPT ); Mon, 27 Apr 2015 04:40:55 -0400 Received: from lgeamrelo01.lge.com ([156.147.1.125]:42994 "EHLO lgeamrelo01.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751989AbbD0Ikx (ORCPT ); Mon, 27 Apr 2015 04:40:53 -0400 X-Original-SENDERIP: 10.177.220.157 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Mon, 27 Apr 2015 17:42:57 +0900 From: Joonsoo Kim To: Mel Gorman Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Vlastimil Babka , Johannes Weiner , Rik van Riel Subject: Re: [PATCH 1/3] mm/page_alloc: don't break highest order freepage if steal Message-ID: <20150427084257.GA13790@js1304-P5Q-DELUXE> References: <1430119421-13536-1-git-send-email-iamjoonsoo.kim@lge.com> <20150427080850.GF2449@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150427080850.GF2449@suse.de> 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: 1596 Lines: 40 On Mon, Apr 27, 2015 at 09:08:50AM +0100, Mel Gorman wrote: > On Mon, Apr 27, 2015 at 04:23:39PM +0900, Joonsoo Kim wrote: > > When we steal whole pageblock, we don't need to break highest order > > freepage. Perhaps, there is small order freepage so we can use it. > > > > The reason why the largest block is taken is to reduce the probability > there will be another fallback event in the near future. Early on, there > were a lot of tests conducted to measure the number of external fragmenting > events and take steps to reduce them. Stealing the largest highest order > freepage was one of those steps. Hello, Mel. Purpose of this patch is not "stop steal highest order freepage". Currently, in case of that we steal all freepage including highest order freepage in certain pageblock, we break highest order freepage and return it even if we have low order freepage that we immediately steal. For example, Pageblock A has 5 freepage (4 * order 0, 1 * order 3) and we try to steal all freepage on pageblock A. Withouth this patch, we move all freepage to requested migratetype buddy list and break order 3 freepage. Leftover is like as following. (5 * order 0, 1 * order 1, 1* order 2) With this patch, (3 * order 0, 1 * order 3) remains. I think that this is better than before because we still have high order page. Isn't it? Thanks. -- 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/