Re: [Libhugetlbfs-devel] [PATCH 13/17] hugeadm: expose the available and possible page sizes

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > Expose possible page sizes. Expose the page sizes which are available > (have pages assigned to them) via --page-sizes. Expose all possible page > sizes (supported by the processor) via --page-sizes-all. Page sizes are > listed in numeri

Re: [Libhugetlbfs-devel] [PATCH 17/17] pagesize: add utility to list page sizes

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > Add a new utility to list page sizes supported on the system. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > Acked-by: Mel Gorman <[EMAIL PROTECTED]> Acked-by: Adam Litke <[EMAIL PROTECTED]> > --- > Makefile |8 +++- > pag

Re: [Libhugetlbfs-devel] [PATCH 16/17] hugeutils: gethugepagesizes -- ensure we ignore unrepresentable page sizes

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > When calling gethugepagesizes in a 32 bit environment it is possible that > some page sizeds will not be representable in the result. Ensure we detect > and elide these. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > Acked-by: Me

Re: [Libhugetlbfs-devel] [PATCH 12/17] hugeadm: allow pools to be resized

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > +void pool_adjust(char *cmd, unsigned int counter) > +{ > + struct hpage_pool pools[MAX_POOLS]; > + int pos; > + int cnt; > + > + char *iter = NULL; > + char *page_size_str = NULL; > + char *adjust_str = NULL; > +

Re: [Libhugetlbfs-devel] [PATCH 11/17] hugeutils: export the pool counter update interface

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > Rename and export the pool counter update interface. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Adam Litke <[EMAIL PROTECTED]> > --- > hugetlbfs.h |2 ++ > hugeutils.c | 26 +- > 2 files

Re: [Libhugetlbfs-devel] [PATCH 10/17] hugeadm: sort the pool configuration output by size and mark the default

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > Sort the output of the pool configuration listing --pool-list, and now > that the default size will not be first mark it in a new Default column. > > [should this new column be Flags and us be putting 'D' in there for instance?] My feel i

Re: [Libhugetlbfs-devel] [PATCH 09/17] hugeadm: expose the pool configuration

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > diff --git a/libhugetlbfs_internal.h b/libhugetlbfs_internal.h > index 197fa05..2912c5e 100644 > --- a/libhugetlbfs_internal.h > +++ b/libhugetlbfs_internal.h > @@ -89,6 +89,15 @@ struct hpage_size { > char mount[PATH_MAX+1]; > }; >

Re: [Libhugetlbfs-devel] [PATCH 09/17] hugeadm: expose the pool configuration

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > Expose pool allocations for each of the available page sizes via the > --pool-list command. Exposes the miniumum and maximimum values indicating > the dedicated pages and the size of the overcommit for all supported page > sizes. > > Sign

Re: [Libhugetlbfs-devel] [PATCH 06/17] build: allow utilities to consist of more than one file

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > Allow a utility control which source files it is made up of. This allows > us to reuse some of the utility functions from within libhugetlbfs directly > without linking against the library. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTEC

Re: [Libhugetlbfs-devel] [PATCH 08/17] hugeadm: initial basic framework

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > Add a very basic framework for hugeadm, the administrator pool configuration > helper. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > Acked-by: Mel Gorman <[EMAIL PROTECTED]> Acked-by: Adam Litke <[EMAIL PROTECTED]> > --- > Make

Re: [Libhugetlbfs-devel] [PATCH 05/17] hugeutils: pull out common filenames

2008-10-10 Thread Adam Litke
On Fri, 2008-10-10 at 16:58 +0100, Andy Whitcroft wrote: > Pull out all the common filenames and prefixes to a common set of defines. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > Acked-by: Mel Gorman <[EMAIL PROTECTED]> Acked-by: Adam Litke <[EMAIL PROTECTED]> > --- > hugeutils.c |

[SPAM] 合作事宜!

2008-10-10 Thread rtjuhyhfdh
尊敬的老板你好: 本公司可优惠代开全国部分省市的普通发票、广告、运输、建筑、服务等, 按贵公司要求开据后查验无误才付款! 若打扰、敬请谅解! 顺祝商祺!! 联 系 人:李兵[先生] 手 机:13724250985 业务QQ;532632021 深圳市伟达实业有限公司 --

[Libhugetlbfs-devel] [PATCH 5/5] Add a manual page for hugeadm

2008-10-10 Thread Mel Gorman
This patch adds a basic manual page for the pagesize utility. Signed-off-by: Mel Gorman <[EMAIL PROTECTED]> --- Makefile |2 +- man/hugeadm.8 | 90 + 2 files changed, 91 insertions(+), 1 deletions(-) create mode 100644 man/hugead

[Libhugetlbfs-devel] [PATCH 3/5] Add a manual page for getpagesizes()

2008-10-10 Thread Mel Gorman
This patch adds a basic manual page for getpagesizes(). Signed-off-by: Mel Gorman <[EMAIL PROTECTED]> --- Makefile |2 +- man/getpagesizes.3 | 70 2 files changed, 71 insertions(+), 1 deletions(-) create mode 100644 man/getpage

[Libhugetlbfs-devel] [PATCH 1/5] Correct hugectl chapter and add reference to hugeadm

2008-10-10 Thread Mel Gorman
hugectl is in chapter 8 but the heading implies it's in 7. Correct that and add a reference to hugeadm in the "SEE ALSO" section Signed-off-by: Mel Gorman <[EMAIL PROTECTED]> --- man/hugectl.8 |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/man/hugectl.8 b/man/hugectl.8

[Libhugetlbfs-devel] [PATCH 2/5] Add a manual page for gethugepagesizes()

2008-10-10 Thread Mel Gorman
This patch adds a basic manual page for gethugepagesizes(). Signed-off-by: Mel Gorman <[EMAIL PROTECTED]> --- Makefile |2 +- man/gethugepagesizes.3 | 69 2 files changed, 70 insertions(+), 1 deletions(-) create mode 100644 man

[Libhugetlbfs-devel] [PATCH 0/5] Manual page updates

2008-10-10 Thread Mel Gorman
The first patch corrects a minor error in the hugectl manual page and the remaining patches add basic manual pages for different API functions and utilities. Mel Gorman (5): Correct hugectl chapter and add reference to hugeadm Add a manual page for gethugepagesizes() Add a manual page for ge

[Libhugetlbfs-devel] [PATCH 4/5] Add a manual page for pagesize

2008-10-10 Thread Mel Gorman
This patch adds a basic manual page for the pagesize utility. Signed-off-by: Mel Gorman <[EMAIL PROTECTED]> --- Makefile |6 + man/pagesize.1 | 57 2 files changed, 63 insertions(+), 0 deletions(-) create mode 100644 man/pa

[Libhugetlbfs-devel] [PATCH 15/17] lib: add a getpagesizes call returning all page sizes

2008-10-10 Thread Andy Whitcroft
Utilise the new gethugepagesizes call to implement getpagesizes() call returning all page sizes on the system, both base page sizes and all hugepage sizes. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> --- hugetlbfs.h |1 + hugeutils.c | 27 +++ tes

[Libhugetlbfs-devel] [PATCH 17/17] pagesize: add utility to list page sizes

2008-10-10 Thread Andy Whitcroft
Add a new utility to list page sizes supported on the system. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[EMAIL PROTECTED]> --- Makefile |8 +++- pagesize.c | 143 2 files changed, 150 insertions(+),

[Libhugetlbfs-devel] [PATCH 16/17] hugeutils: gethugepagesizes -- ensure we ignore unrepresentable page sizes

2008-10-10 Thread Andy Whitcroft
When calling gethugepagesizes in a 32 bit environment it is possible that some page sizeds will not be representable in the result. Ensure we detect and elide these. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[EMAIL PROTECTED]> --- hugeutils.c |4 ++-- 1 files ch

[Libhugetlbfs-devel] [PATCH 14/17] lib: Add gethugepagesizes() API call

2008-10-10 Thread Andy Whitcroft
From: Adam Litke <[EMAIL PROTECTED]> Now that libhugetlbfs supports multiple huge page sizes, it would be nice to have a way to discover the huge page sizes that are supported by the system. This new call should adhere to the semantics established by precedent implementations (see http://docs.sun.

[Libhugetlbfs-devel] [PATCH 12/17] hugeadm: allow pools to be resized

2008-10-10 Thread Andy Whitcroft
Allow resize of specific pools via the --pool-minimum-adjust and --pool-maximum-adjust commands. The first affects the number of static pages in the pool, the second affects the number of overcommit pages for the pool. These are exposed as lower and upper bound on the pool to match the display in

[Libhugetlbfs-devel] [PATCH 11/17] hugeutils: export the pool counter update interface

2008-10-10 Thread Andy Whitcroft
Rename and export the pool counter update interface. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> --- hugetlbfs.h |2 ++ hugeutils.c | 26 +- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/hugetlbfs.h b/hugetlbfs.h index 2103515..fbff43b 100644

[Libhugetlbfs-devel] [PATCH 10/17] hugeadm: sort the pool configuration output by size and mark the default

2008-10-10 Thread Andy Whitcroft
Sort the output of the pool configuration listing --pool-list, and now that the default size will not be first mark it in a new Default column. [should this new column be Flags and us be putting 'D' in there for instance?] Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> --- hugeadm.c

[Libhugetlbfs-devel] [PATCH 13/17] hugeadm: expose the available and possible page sizes

2008-10-10 Thread Andy Whitcroft
Expose possible page sizes. Expose the page sizes which are available (have pages assigned to them) via --page-sizes. Expose all possible page sizes (supported by the processor) via --page-sizes-all. Page sizes are listed in numerical order. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Ack

[Libhugetlbfs-devel] [PATCH 03/17] Do not allow zero as an explicit page size

2008-10-10 Thread Andy Whitcroft
From: Adam Litke <[EMAIL PROTECTED]> As originally written, the functions hugetlbfs_find_path_for_size() and hugetlbfs_unlinked_fd_for_size() accepted 0 as a valid page size. A page size of zero was interpreted to mean the default size (as defined by libhugetlbfs, not the kernel). This behavior

[Libhugetlbfs-devel] [PATCH 05/17] hugeutils: pull out common filenames

2008-10-10 Thread Andy Whitcroft
Pull out all the common filenames and prefixes to a common set of defines. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[EMAIL PROTECTED]> --- hugeutils.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/hugeutils.c b/hugeutils.c

[Libhugetlbfs-devel] [PATCH 01/17] utils: Make pool counter manipulation code part of the library API

2008-10-10 Thread Andy Whitcroft
From: Adam Litke <[EMAIL PROTECTED]> The need to set and get pool counters for multiple huge page sizes is about to extend beyond just the libhugetlbfs tests. Move the counter code into hugeutils.c and make the top-level functions part of the libhugetlbfs pool and mount configuration API. This i

[Libhugetlbfs-devel] [PATCH 06/17] build: allow utilities to consist of more than one file

2008-10-10 Thread Andy Whitcroft
Allow a utility control which source files it is made up of. This allows us to reuse some of the utility functions from within libhugetlbfs directly without linking against the library. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[EMAIL PROTECTED]> --- Makefile | 14

[Libhugetlbfs-devel] [PATCH 04/17] hugeutils: size_to_smaller_unit should allow 2GB pages

2008-10-10 Thread Andy Whitcroft
When page sizes become very large they may overflow a long as we convert them from giga-, mega-, or kilo-bytes to bytes. When doing the conversion if we hit an error we return LONG_MAX. On 32bit this is 2GB is is potentially a sensible page size for a 32bit application. As page size is a long we

[Libhugetlbfs-devel] [PATCH 09/17] hugeadm: expose the pool configuration

2008-10-10 Thread Andy Whitcroft
Expose pool allocations for each of the available page sizes via the --pool-list command. Exposes the miniumum and maximimum values indicating the dedicated pages and the size of the overcommit for all supported page sizes. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[

[Libhugetlbfs-devel] [PATCH 02/17] shm: Shared memory always uses the meminfo page size

2008-10-10 Thread Andy Whitcroft
From: Adam Litke <[EMAIL PROTECTED]> This patch fixes two intertwined issues: When the SHM_HUGETLB flag is passed to shmget(), the system default huge page size is used to back the shared memory segment. Unlike with mmap() there is not yet a way to use an alternate huge page size for shared memo

[Libhugetlbfs-devel] [PATCH 07/17] debug: allow utilities to share the common debug reporter

2008-10-10 Thread Andy Whitcroft
Where utilities are going to use routines out of the library directly it is helpful to share the debugging routines whilst maintaining the identity of the message producer. Allow the utilities to override the name shown. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Adam Litke <[EMA

[Libhugetlbfs-devel] [PATCH 08/17] hugeadm: initial basic framework

2008-10-10 Thread Andy Whitcroft
Add a very basic framework for hugeadm, the administrator pool configuration helper. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[EMAIL PROTECTED]> --- Makefile |8 - hugeadm.c | 95 + 2 files chang

[Libhugetlbfs-devel] [RFC PATCH 00/17] V3 hugeadm framework

2008-10-10 Thread Andy Whitcroft
[This version includes another fuller round of feedback from Mel. And includes a rename from hpoolcfg to hugeadm to better fit the naming and allow it to later handle mounts.] Currently the admin has to understand how to configure pools directly. They must know how to find the current pool allocat

Re: [Libhugetlbfs-devel] [PATCH 08/16] hpoolcfg: initial basic framework

2008-10-10 Thread Adam Litke
On Thu, 2008-10-09 at 20:20 +0100, Andy Whitcroft wrote: > Add a very basic framework for hpoolcfg, the administrator pool configuration > helper. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Notwithstanding the utility name change from hpoolcfg to hugeadm this looks good and will get an

Re: [Libhugetlbfs-devel] [PATCH 06/16] build: allow utilities to consist of more than one file

2008-10-10 Thread Adam Litke
On Thu, 2008-10-09 at 20:20 +0100, Andy Whitcroft wrote: > Allow a utility control which source files it is made up of. This allows > us to reuse some of the utility functions from within libhugetlbfs directly > without linking against the library. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTEC

Re: [Libhugetlbfs-devel] [PATCH 05/16] hugeutils: pull out common filenames

2008-10-10 Thread Adam Litke
On Thu, 2008-10-09 at 20:20 +0100, Andy Whitcroft wrote: > Pull out all the common filenames and prefixes to a common set of defines. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Adam Litke <[EMAIL PROTECTED]> > --- > hugeutils.c | 16 ++-- > 1 files changed, 10

Re: [Libhugetlbfs-devel] [PATCH 14/16] lib: add a getpagesizes call returning all page sizes

2008-10-10 Thread Mel Gorman
On (10/10/08 14:41), Andy Whitcroft didst pronounce: > On Fri, Oct 10, 2008 at 02:23:14PM +0100, Mel Gorman wrote: > > On (09/10/08 20:20), Andy Whitcroft didst pronounce: > > > Utilise the new gethugepagesizes call to implement getpagesizes() call > > > returning all page sizes on the system, both

Re: [Libhugetlbfs-devel] [PATCH 13/16] lib: Add gethugepagesizes() API call

2008-10-10 Thread Mel Gorman
On (10/10/08 14:36), [EMAIL PROTECTED] didst pronounce: > On Fri, Oct 10, 2008 at 02:20:54PM +0100, Mel Gorman wrote: > > On (09/10/08 20:20), Andy Whitcroft didst pronounce: > > > From: Adam Litke <[EMAIL PROTECTED]> > > > > > > Now that libhugetlbfs supports multiple huge page sizes, it would be

Re: [Libhugetlbfs-devel] [PATCH 1/1] hugeedit: report any unparsed options

2008-10-10 Thread Adam Litke
On Thu, 2008-10-09 at 21:39 +0100, Andy Whitcroft wrote: > Ensure we report any unparsed options that getopts_long recognises but which > have no implementation. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Adam Litke <[EMAIL PROTECTED]> > --- > hugeedit.c |4 > 1 fil

Re: [Libhugetlbfs-devel] [PATCH 14/16] lib: add a getpagesizes call returning all page sizes

2008-10-10 Thread Andy Whitcroft
On Fri, Oct 10, 2008 at 02:23:14PM +0100, Mel Gorman wrote: > On (09/10/08 20:20), Andy Whitcroft didst pronounce: > > Utilise the new gethugepagesizes call to implement getpagesizes() call > > returning all page sizes on the system, both base page sizes and all > > hugepage sizes. > > > > Signed-

Re: [Libhugetlbfs-devel] [PATCH 13/16] lib: Add gethugepagesizes() API call

2008-10-10 Thread apw
On Fri, Oct 10, 2008 at 02:20:54PM +0100, Mel Gorman wrote: > On (09/10/08 20:20), Andy Whitcroft didst pronounce: > > From: Adam Litke <[EMAIL PROTECTED]> > > > > Now that libhugetlbfs supports multiple huge page sizes, it would be nice to > > have a way to discover the huge page sizes that are s

Re: [Libhugetlbfs-devel] [PATCH 16/16] pagesize: add utility to list page sizes

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Add a new utility to list page sizes supported on the system. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[EMAIL PROTECTED]> > --- > Makefile |8 +++- > pagesize.c | 143 >

Re: [Libhugetlbfs-devel] [PATCH 15/16] hugeutils: gethugepagesizes -- ensure we ignore unrepresentable page sizes

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > When calling gethugepagesizes in a 32 bit environment it is possible that > some page sizeds will not be representable in the result. Ensure we detect > and elide these. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gor

Re: [Libhugetlbfs-devel] [PATCH 14/16] lib: add a getpagesizes call returning all page sizes

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Utilise the new gethugepagesizes call to implement getpagesizes() call > returning all page sizes on the system, both base page sizes and all > hugepage sizes. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > --- > hugetlbfs.h

Re: [Libhugetlbfs-devel] [PATCH 13/16] lib: Add gethugepagesizes() API call

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > From: Adam Litke <[EMAIL PROTECTED]> > > Now that libhugetlbfs supports multiple huge page sizes, it would be nice to > have a way to discover the huge page sizes that are supported by the system. > This new call should adhere to the semantics

Re: [Libhugetlbfs-devel] [PATCH 01/16] utils: Make pool counter manipulation code part of the library API

2008-10-10 Thread Mel Gorman
On (10/10/08 13:14), Andy Whitcroft didst pronounce: > > > + > > > +int select_pool_counter(unsigned int counter, unsigned long pagesize, > > > + char *filename, char **key) > > > +{ > > > > /* > > * Return the value of a given counter (e.g. HUGEPAGES_RSVD) for the > > *

Re: [Libhugetlbfs-devel] [PATCH 11/16] hpoolcfg: allow pools to be resized

2008-10-10 Thread Andy Whitcroft
On Fri, Oct 10, 2008 at 12:22:40PM +0100, Mel Gorman wrote: > On (09/10/08 20:20), Andy Whitcroft didst pronounce: > > Allow resize of specific pools via the --pool-minimum-adjust and > > --pool-maximum-adjust commands. The first affects the number of static > > pages in the pool, the second affec

Re: [Libhugetlbfs-devel] [PATCH 11/16] hpoolcfg: allow pools to be resized

2008-10-10 Thread Andy Whitcroft
On Fri, Oct 10, 2008 at 12:29:47PM +0100, Mel Gorman wrote: [...] > > + if (adjust_str[0] == '+' || adjust_str[0] == '-') { > > + > > + /* > > +* XXX: reading HUGEPAGES_TOTAL gives you the total pages > > +* in use not what you wrote. > > +*/ > > +

Re: [Libhugetlbfs-devel] [PATCH 10/16] hugeutils: export the pool counter update interface

2008-10-10 Thread Andy Whitcroft
On Fri, Oct 10, 2008 at 12:17:28PM +0100, Mel Gorman wrote: > On (09/10/08 20:20), Andy Whitcroft didst pronounce: > > Rename and export the pool counter update interface. > > > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > > --- > > hugetlbfs.h |2 ++ > > hugeutils.c | 28 +

Re: [Libhugetlbfs-devel] [PATCH 09/16] hpoolcfg: expose the pool configuration

2008-10-10 Thread Andy Whitcroft
On Fri, Oct 10, 2008 at 12:09:07PM +0100, Mel Gorman wrote: > On (09/10/08 20:20), Andy Whitcroft didst pronounce: > > Expose pool allocations for each of the available page sizes via the > > --pool-list command. Exposes the miniumum and maximimum values indicating > > the dedicated pages and the

Re: [Libhugetlbfs-devel] [PATCH 01/16] utils: Make pool counter manipulation code part of the library API

2008-10-10 Thread Andy Whitcroft
On Fri, Oct 10, 2008 at 11:00:51AM +0100, Mel Gorman wrote: > On (09/10/08 20:20), Andy Whitcroft didst pronounce: > > From: Adam Litke <[EMAIL PROTECTED]> > > > > The need to set and get pool counters for multiple huge page sizes is about > > to > > extend beyond just the libhugetlbfs tests. Mo

Re: [Libhugetlbfs-devel] [PATCH 12/16] hpoolcfg: expose the available and possible page sizes

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Expose possible page sizes. Expose the page sizes which are available > (have pages assigned to them) via --page-sizes. Expose all possible page > sizes (supported by the processor) via --page-sizes-all. > > Signed-off-by: Andy Whitcroft <[E

Re: [Libhugetlbfs-devel] [PATCH 11/16] hpoolcfg: allow pools to be resized

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Allow resize of specific pools via the --pool-minimum-adjust and > --pool-maximum-adjust commands. The first affects the number of static > pages in the pool, the second affects the number of overcommit pages > for the pool. These are exposed

Re: [Libhugetlbfs-devel] [PATCH 11/16] hpoolcfg: allow pools to be resized

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Allow resize of specific pools via the --pool-minimum-adjust and > --pool-maximum-adjust commands. The first affects the number of static > pages in the pool, the second affects the number of overcommit pages > for the pool. These are exposed

Re: [Libhugetlbfs-devel] [PATCH 10/16] hugeutils: export the pool counter update interface

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Rename and export the pool counter update interface. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > --- > hugetlbfs.h |2 ++ > hugeutils.c | 28 ++-- > 2 files changed, 16 insertions(+), 14 deletions(-)

Re: [Libhugetlbfs-devel] [PATCH 02/16] shm: Shared memory always uses the meminfo page size

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > From: Adam Litke <[EMAIL PROTECTED]> > > This patch fixes two intertwined issues: > > When the SHM_HUGETLB flag is passed to shmget(), the system default huge page > size is used to back the shared memory segment. Unlike with mmap() there is

Re: [Libhugetlbfs-devel] [PATCH 09/16] hpoolcfg: expose the pool configuration

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Expose pool allocations for each of the available page sizes via the > --pool-list command. Exposes the miniumum and maximimum values indicating > the dedicated pages and the size of the overcommit for all supported page > sizes. > > Signed-o

Re: [Libhugetlbfs-devel] [PATCH 08/16] hpoolcfg: initial basic framework

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Add a very basic framework for hpoolcfg, the administrator pool configuration > helper. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[EMAIL PROTECTED]> > --- > Makefile |8 - > hpoolcfg.c | 95 > +

Re: [Libhugetlbfs-devel] [PATCH 07/16] debug: allow utilities to share the common debug reporter

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Where utilities are going to use routines out of the library directly it > is helpful to share the debugging routines whilst maintaining the identity > of the message producer. Allow the utilities to override the name shown. > > Signed-off-by

Re: [Libhugetlbfs-devel] [PATCH 06/16] build: allow utilities to consist of more than one file

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Allow a utility control which source files it is made up of. This allows > us to reuse some of the utility functions from within libhugetlbfs directly > without linking against the library. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]

Re: [Libhugetlbfs-devel] [PATCH 05/16] hugeutils: pull out common filenames

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Pull out all the common filenames and prefixes to a common set of defines. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > --- Acked-by: Mel Gorman <[EMAIL PROTECTED]> > hugeutils.c | 16 ++-- > 1 files changed, 10 ins

Re: [Libhugetlbfs-devel] [PATCH 04/16] hugeutils: size_to_smaller_unit should allow 2GB pages

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > When page sizes become very large they may overflow a long as we > convert them from giga-, mega-, or kilo-bytes to bytes. When doing the > conversion if we hit an error we return LONG_MAX. On 32bit this is 2GB > is is potentially a sensible

Re: [Libhugetlbfs-devel] [PATCH 03/16] Do not allow zero as an explicit page size

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > From: Adam Litke <[EMAIL PROTECTED]> > > As originally written, the functions hugetlbfs_find_path_for_size() and > hugetlbfs_unlinked_fd_for_size() accepted 0 as a valid page size. A page size > of zero was interpreted to mean the default siz

Re: [Libhugetlbfs-devel] [PATCH 01/16] utils: Make pool counter manipulation code part of the library API

2008-10-10 Thread Mel Gorman
On (09/10/08 20:20), Andy Whitcroft didst pronounce: > From: Adam Litke <[EMAIL PROTECTED]> > > The need to set and get pool counters for multiple huge page sizes is about to > extend beyond just the libhugetlbfs tests. Move the counter code into > hugeutils.c and make the top-level functions par