From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757399Ab1KJXhh (ORCPT ); Thu, 10 Nov 2011 18:37:37 -0500 Received: from mail-yx0-f174.google.com ([209.85.213.174]:38154 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757190Ab1KJXhg (ORCPT ); Thu, 10 Nov 2011 18:37:36 -0500 Date: Thu, 10 Nov 2011 15:37:32 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Andrew Morton cc: Mel Gorman , Minchan Kim , Jan Kara , Andy Isaacson , Johannes Weiner , Andrea Arcangeli , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm: Do not stall in synchronous compaction for THP allocations In-Reply-To: <20111110151211.523fa185.akpm@linux-foundation.org> Message-ID: References: <20111110100616.GD3083@suse.de> <20111110142202.GE3083@suse.de> <20111110161331.GG3083@suse.de> <20111110151211.523fa185.akpm@linux-foundation.org> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Nov 2011, Andrew Morton wrote: > > This patch once again prevents sync migration for transparent > > hugepage allocations as it is preferable to fail a THP allocation > > than stall. > > Who said? ;) Presumably some people would prefer to get lots of > huge pages for their 1000-hour compute job, and waiting a bit to get > those pages is acceptable. > Indeed. It seems like the behavior would better be controlled with /sys/kernel/mm/transparent_hugepage/defrag which is set aside specifically to control defragmentation for transparent hugepages and for that synchronous compaction should certainly apply.