From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 965826B01E3 for ; Tue, 6 Apr 2010 13:42:33 -0400 (EDT) Date: Tue, 6 Apr 2010 18:46:25 +0200 From: Andrea Arcangeli Subject: Re: [PATCH 00 of 41] Transparent Hugepage Support #17 Message-ID: <20100406164625.GZ5825@random.random> References: <20100405193616.GA5125@elte.hu> <20100405232115.GM5825@random.random> <20100406093021.GC17882@csn.ul.ie> <20100406111619.GD17882@csn.ul.ie> <13812DAC-4B53-4B6B-8725-EBC9E735AF96@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13812DAC-4B53-4B6B-8725-EBC9E735AF96@mit.edu> Sender: owner-linux-mm@kvack.org To: Theodore Tso Cc: Mel Gorman , Linus Torvalds , Pekka Enberg , Ingo Molnar , Andrew Morton , linux-mm@kvack.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Dave Hansen , Benjamin Herrenschmidt , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , bpicco@redhat.com, KOSAKI Motohiro , Balbir Singh , Arnd Bergmann , "Michael S. Tsirkin" , Peter Zijlstra , Johannes Weiner , Daisuke Nishimura List-ID: On Tue, Apr 06, 2010 at 09:13:20AM -0400, Theodore Ts'o wrote: > > On Apr 6, 2010, at 7:16 AM, Mel Gorman wrote: > > > > > Does this clarify why min_free_kbytes helps and why the "recommended" > > value is what it is? > > Thanks, this is really helpful. I wonder if it might be a good idea to have a boot command-line option which automatically sets vm.min_free_kbytes to the right value? Most administrators who are used to using hugepages, are most familiar with needing to set boot command-line options, and this way they won't need to try to find this new userspace utility. I was looking for hugeadm on Ubuntu, for example, and I couldn't find it. It's part of libhugetlbfs. I also suggested in a earlier email this would better be "echo 1 >/sys/kernel/vm/set-recommended-min_free_kbytes" or set-recommended-min_free_kbytes=1 at boot considering it's a 10 liner piece of code that does the math to set it. But it's no big deal on my side, the important thing is that we have that feature. -- 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/ . Don't email: email@kvack.org