Re: [Libhugetlbfs-devel] [PATCH] Get a hugetlbfs fd for a specific page size

2008-09-10 Thread Adam Litke
On Wed, 2008-09-10 at 11:11 +1000, David Gibson wrote: > On Tue, Sep 09, 2008 at 08:20:28PM +, Adam Litke wrote: > > Allow applications that program to the libhugetlbfs API to specify a page > > size > > when requesting a hugetlbfs fd. If the size is invalid or not configured, > > an > > err

[Libhugetlbfs-devel] [PATCH 3/3] Get a hugetlbfs fd for a specific page size (V2)

2008-09-10 Thread Adam Litke
Allow applications that program to the libhugetlbfs API to specify a page size when requesting a hugetlbfs fd. If the size is invalid or not configured, an error will be returned. Changes since V1: - Removed redundant handling when pagesize argument is zero Signed-off-by: Adam Litke <[EMAIL PRO

[Libhugetlbfs-devel] [PATCH 2/3] Add new environment variable to specify the default hpage size to use

2008-09-10 Thread Adam Litke
When multiple huge page sizes are available, libhugetlbfs behavior is to use the huge page size reported in /proc/meminfo as the default size. Allow other sizes to be used as the default via a new environment variable: HUGETLB_DEFAULT_PAGE_SIZE. If this variable is specified, libhugetlbfs will at

[Libhugetlbfs-devel] [PATCH 1/3] cleanup: Store page sizes in bytes

2008-09-10 Thread Adam Litke
To avoid confusion, the library should store page sizes in bytes and library interfaces should take page size parameters in bytes as well. Signed-off-by: Adam Litke <[EMAIL PROTECTED]> Acked-by: David Gibson <[EMAIL PROTECTED]> --- hugeutils.c | 26 ++ libhu

Re: [Libhugetlbfs-devel] [PATCH 1/7] Basic support for multiple hugetlbfs mount points

2008-09-10 Thread Mel Gorman
On (27/08/08 18:34), Adam Litke didst pronounce: > An upcoming release of the Linux kernel will support simultaneous use of > multiple huge page sizes. Each size will be accessed through its own > specially-mounted hugetlbfs filesystem. The first step in enabling > libhugetlbfs to support multipl

Re: [Libhugetlbfs-devel] [RFD] hugecfg: Proposed scope and interfaces

2008-09-10 Thread Mel Gorman
On (08/09/08 15:10), Adam Litke didst pronounce: > With the arrival of recent kernel features (namely the dynamic pool and > multiple huge page sizes), comes increased configuration complexity. To > ease configuration for users, libhugetlbfs should provide a set of > library interfaces and a confi

Re: [Libhugetlbfs-devel] [RFD] hugecfg: Proposed scope and interfaces

2008-09-10 Thread Adam Litke
On Wed, 2008-09-10 at 19:47 +0100, Mel Gorman wrote: > On (08/09/08 15:10), Adam Litke didst pronounce: > > With the arrival of recent kernel features (namely the dynamic pool and > > multiple huge page sizes), comes increased configuration complexity. To > > ease configuration for users, libhuget

Re: [Libhugetlbfs-devel] [RFD] hugecfg: Proposed scope and interfaces

2008-09-10 Thread Mel Gorman
On (10/09/08 14:31), Adam Litke didst pronounce: > On Wed, 2008-09-10 at 19:47 +0100, Mel Gorman wrote: > > On (08/09/08 15:10), Adam Litke didst pronounce: > > > With the arrival of recent kernel features (namely the dynamic pool and > > > multiple huge page sizes), comes increased configuration c

Re: [Libhugetlbfs-devel] [PATCH 3/3] Get a hugetlbfs fd for a specific page size (V2)

2008-09-10 Thread David Gibson
On Wed, Sep 10, 2008 at 02:17:17PM +, Adam Litke wrote: > Allow applications that program to the libhugetlbfs API to specify a page size > when requesting a hugetlbfs fd. If the size is invalid or not configured, an > error will be returned. > > Changes since V1: > - Removed redundant handli