From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with ESMTP id 3010D6B0078 for ; Tue, 7 Jun 2011 12:37:07 -0400 (EDT) Received: by pwi12 with SMTP id 12so3522009pwi.14 for ; Tue, 07 Jun 2011 09:37:05 -0700 (PDT) Date: Wed, 8 Jun 2011 01:36:57 +0900 From: Minchan Kim Subject: Re: [PATCH 4/4] mm: compaction: Abort compaction if too many pages are isolated and caller is asynchronous V2 Message-ID: <20110607163657.GM1686@barrios-laptop> References: <1307459225-4481-1-git-send-email-mgorman@suse.de> <1307459225-4481-5-git-send-email-mgorman@suse.de> <20110607155029.GL1686@barrios-laptop> <20110607162711.GO5247@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110607162711.GO5247@suse.de> Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Andrew Morton , Andrea Arcangeli , Thomas Sattler , Ury Stankevich , Andi Kleen , linux-mm , linux-kernel On Tue, Jun 07, 2011 at 05:27:11PM +0100, Mel Gorman wrote: > Changelog since V1 > o Return COMPACT_PARTIAL when aborting due to too many isolated > pages. As pointed out by Minchan, this is better for consistency > > Asynchronous compaction is used when promoting to huge pages. This is > all very nice but if there are a number of processes in compacting > memory, a large number of pages can be isolated. An "asynchronous" > process can stall for long periods of time as a result with a user > reporting that firefox can stall for 10s of seconds. This patch aborts > asynchronous compaction if too many pages are isolated as it's better to > fail a hugepage promotion than stall a process. > > [minchan.kim@gmail.com: Return COMPACT_PARTIAL for abort] > Reported-and-tested-by: Ury Stankevich > Signed-off-by: Mel Gorman Reviewed-by: Minchan Kim -- Kind regards Minchan Kim -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org