Ensure we report any unparsed options that getopts_long recognises but which
have no implementation.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
hugeedit.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/hugeedit.c b/hugeedit.c
index 2785200..17b052c 100644
-
On Thu, Oct 09, 2008 at 09:05:08AM -0500, Adam Litke wrote:
> On Thu, 2008-10-09 at 11:47 +0100, Andy Whitcroft wrote:
> > When we hit the end of the arguments we will get a valid -1 return
> > from getopts_long. We should suppress this to prevent confusion.
>
> Does this affect hugeedit as well?
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
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 <[EMAIL PROTECTED]>
---
hpoolcfg.c | 37 +++
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(-)
diff --git a/hugetlbfs.h b/hugetlbfs.h
index 2103515..fbff43b 1006
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 ++
test
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.
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]>
---
hugeutils.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
d
Add a new utility to list page sizes supported on the system.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
Makefile |8 +++-
pagesize.c | 143
2 files changed, 150 insertions(+), 1 deletions(-)
create mode 100644 pagesi
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
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]>
---
hpoolcfg.c
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]>
---
Makefile | 14 --
1 files changed, 12 inse
Pull out all the common filenames and prefixes to a common set of defines.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
hugeutils.c | 16 ++--
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/hugeutils.c b/hugeutils.c
index 7b10f60..d6c54a2 100644
--- a/hugeu
[This version includes a lot of feedback from Mel and Adam. If you think
I've ignored your feedback please assume I missed it somewhere as there
really was a lot of good feedback in there.]
Currently the admin has to understand how to configure pools directly.
They must know how to find the curre
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
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
Add a very basic framework for hpoolcfg, the administrator pool configuration
helper.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
Makefile |8 -
hpoolcfg.c | 95
2 files changed, 102 insertions(+), 1 deletions(-)
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
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
On (09/10/08 19:19), Andy Whitcroft didst pronounce:
> On Mon, Oct 06, 2008 at 03:57:08PM +0100, Mel Gorman wrote:
> > On (03/10/08 18:37), Andy Whitcroft didst pronounce:
> > > Expose pool allocations for each of the available page sizes via the
> > > --pool-list command. Exposes the miniumum and
On Tue, Oct 07, 2008 at 03:08:32PM -0500, Adam Litke wrote:
> On Fri, 2008-10-03 at 18:37 +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
On Mon, Oct 06, 2008 at 04:03:35PM +0100, Mel Gorman wrote:
> On (03/10/08 18:37), 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 pro
On Tue, Oct 07, 2008 at 03:03:07PM -0500, Adam Litke wrote:
> On Fri, 2008-10-03 at 18:37 +0100, Andy Whitcroft wrote:
> > @@ -446,6 +447,91 @@ void __lh_setup_mounts(void)
> > debug_show_page_sizes();
> > }
> >
> > +#define MAX_POOLS 32
> > +int __lh_hpool_sizes(struct hpage_pool *po
On Mon, Oct 06, 2008 at 03:57:08PM +0100, Mel Gorman wrote:
> On (03/10/08 18:37), 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
On (09/10/08 19:08), Andy Whitcroft didst pronounce:
> On Mon, Oct 06, 2008 at 03:37:29PM +0100, Mel Gorman wrote:
> > On (03/10/08 18:37), Andy Whitcroft didst pronounce:
> > > Add a very basic framework for hpoolcfg, the administrator pool
> > > configuration
> > > helper.
> > >
> > > Signed-of
On Mon, Oct 06, 2008 at 03:37:29PM +0100, Mel Gorman wrote:
> On (03/10/08 18:37), Andy Whitcroft didst pronounce:
> > Add a very basic framework for hpoolcfg, the administrator pool
> > configuration
> > helper.
> >
> > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
> > ---
> > Makefile |
On (09/10/08 14:19), Andy Whitcroft didst pronounce:
> On Thu, Oct 09, 2008 at 12:31:36PM +0100, Mel Gorman wrote:
> > On (09/10/08 12:14), Andy Whitcroft didst pronounce:
> > > > > > +For \fBget_huge_pages()\fP, return a pointer to the allocated
> > > > > > memory. On
> > > > > > +error, NULL is
On Thu, 09 Oct 2008, Mel Gorman wrote:
> This patch adds a basic manual page for get_huge_pages and
> free_huge_pages().
>
> Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
Applied, thanks.
Eric
signature.asc
Description: Digital signature
On Thu, 09 Oct 2008, Andy Whitcroft wrote:
> Add support for mapping shared memory segments via the --shm option.
>
> Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
> Acked-by: Mel Gorman <[EMAIL PROTECTED]>
> Acked-by: Adam Litke <[EMAIL PROTECTED]>
Applied, thanks.
Eric
signature.asc
Desc
On Thu, 09 Oct 2008, Andy Whitcroft wrote:
> Add control over verbosity and debugging both in the hugectl and in the
> library when invoked. Allows the level to be set directly via
> --verbose and may be incremented via -v. Where the level is set
> to 99 debugging is also enabled.
>
> Signed-o
On Thu, 09 Oct 2008, Mel Gorman wrote:
> This patch adds a basic manual page for hugeedit.
>
> Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
Applied, thanks.
Eric
signature.asc
Description: Digital signature
-
This SF.Net
On Thu, 09 Oct 2008, Andy Whitcroft wrote:
> When we hit the end of the arguments we will get a valid -1 return
> from getopts_long. We should suppress this to prevent confusion.
>
> Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
Applied, thanks.
Eric
signature.asc
Description: Digital sig
On Thu, 09 Oct 2008, Mel Gorman wrote:
> This patch adds a basic manual page for hugectl.
>
> Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
Applied, thanks.
Eric
signature.asc
Description: Digital signature
-
This SF.Net e
On Thu, 09 Oct 2008, Mel Gorman wrote:
> This patch adds a basic manual page for libhugetlbfs. It points the user
> to the HOWTO for detailed instructions and is intended as a brief synopisis
> for the environment variables.
>
> Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
Applied, thanks.
Eric
On Wed, 08 Oct 2008, Jon Tollefson wrote:
> In order to compile the 32 bit versions of the test programs correctly you
> must explicitly specify 32 bit to gcc.
> This is a fix for some distros that compile 64 bit by default. The switch
> should be backwards compatible.
>
>
> Signed-off-by: Jo
On Mon, 06 Oct 2008, Adam Litke wrote:
> The function select_pool_counter() may be called by a test that does not link
> to libhugetlbfs. Therefore it is unsafe to call gethugepagesize because that
> function may not always be available. Also, the default size is already known
> so just use the
On Mon, 06 Oct 2008, Adam Litke wrote:
> A few small oversights in the elflink.c multiple page sizes code have broken
> handling of the PF_LINUX_HUGETLB flag.
>
> * Rather than using hpage_default_size, just call gethugepagesize() when
>needed.
>
> * The function get_segment_hpage_size() w
On Mon, 06 Oct 2008, Adam Litke wrote:
> Avoid linking directly against the kernel header files and use the dirent.h in
> /usr/include.
>
> Signed-off-by: Adam Litke <[EMAIL PROTECTED]>
Applied, thanks.
Eric
signature.asc
Description: Digital signature
-
On Thu, 2008-10-09 at 11:47 +0100, Andy Whitcroft wrote:
> When we hit the end of the arguments we will get a valid -1 return
> from getopts_long. We should suppress this to prevent confusion.
Does this affect hugeedit as well?
> Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
Acked-by: Adam L
On Thu, Oct 09, 2008 at 12:31:36PM +0100, Mel Gorman wrote:
> On (09/10/08 12:14), Andy Whitcroft didst pronounce:
> > > > > +For \fBget_huge_pages()\fP, return a pointer to the allocated
> > > > > memory. On
> > > > > +error, NULL is returned.
> > > >
> > > > Is errno set to anything?
> > > >
>
Add control over verbosity and debugging both in the hugectl and in the
library when invoked. Allows the level to be set directly via
--verbose and may be incremented via -v. Where the level is set
to 99 debugging is also enabled.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
Acked-by: Adam
We have a couple of outstanding anomolies in the hugectl interface.
Firstly it does not allow control over verbosity/debug. Second it does
not allow request of backing for shared memory segments. We also have a
false warning triggered in options parsing. This patch series is designed
to address
When we hit the end of the arguments we will get a valid -1 return
from getopts_long. We should suppress this to prevent confusion.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
hugectl.c |3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hugectl.c b/hugectl.c
ind
On (09/10/08 12:14), Andy Whitcroft didst pronounce:
> > > > +For \fBget_huge_pages()\fP, return a pointer to the allocated memory.
> > > > On
> > > > +error, NULL is returned.
> > >
> > > Is errno set to anything?
> > >
> >
> > Yes oddly enough. It'll be set to whatever the mmap() failure was
On (09/10/08 12:03), Andy Whitcroft didst pronounce:
> > > > +For applications that are hugepage-aware and linked to the library
> > > > +\fBget_huge_pages()\fP can be used for the direct allocation of
> > > > +hugepage-backed regions.
> > > > +
> > > > +Unless otherwise specified, \fBlibhugetlbfs\
On Thu, Oct 09, 2008 at 10:35:26AM +0100, Mel Gorman wrote:
> On (09/10/08 10:03), Andy Whitcroft didst pronounce:
> > On Wed, Oct 08, 2008 at 03:39:37PM +0100, Mel Gorman wrote:
> > > This patch adds a basic manual page for get_huge_pages() and
> > > free_huge_pages().
> > >
> > > Signed-off-by:
Add support for mapping shared memory segments via the --shm option.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
Acked-by: Mel Gorman <[EMAIL PROTECTED]>
Acked-by: Adam Litke <[EMAIL PROTECTED]>
---
hugectl.c | 10 --
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/
On Thu, Oct 09, 2008 at 10:20:57AM +0100, Mel Gorman wrote:
> On (09/10/08 09:56), Andy Whitcroft didst pronounce:
> > On Wed, Oct 08, 2008 at 03:39:34PM +0100, Mel Gorman wrote:
> > > This patch adds a basic manual page for libhugetlbfs. It points the user
> > > to the HOWTO for detailed instructi
On (07/10/08 12:50), Adam Litke didst pronounce:
> On Tue, 2008-10-07 at 00:14 +0100, Mel Gorman wrote:
> > On (06/10/08 17:02), Adam Litke didst pronounce:
> > > On Mon, 2008-10-06 at 14:59 +0100, Mel Gorman wrote:
> > > > On (03/10/08 18:36), Andy Whitcroft didst pronounce:
> > > > > From: Adam L
On (07/10/08 15:11), Adam Litke didst pronounce:
> On Fri, 2008-10-03 at 18:37 +0100, Andy Whitcroft wrote:
> > Rename and export the pool counter update interface.
> >
> > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
>
> Ok.
> Acked-by: Adam Litke <[EMAIL PROTECTED]>
>
> Mel does have a po
This patch adds a basic manual page for hugectl.
Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
---
Makefile |7
man/hugectl.8 | 105 +
2 files changed, 112 insertions(+), 0 deletions(-)
create mode 100644 man/hugectl.8
diff
On (09/10/08 10:41), Andy Whitcroft didst pronounce:
> On Wed, Oct 08, 2008 at 02:47:00PM +0100, Mel Gorman wrote:
> > On (08/10/08 13:52), Andy Whitcroft didst pronounce:
> > > Add control over verbosity and debugging both in the hugectl and in the
> > > library when invoked. Allows the level to
On Wed, Oct 08, 2008 at 03:39:37PM +0100, Mel Gorman wrote:
> This patch adds a basic manual page for get_huge_pages() and
> free_huge_pages().
>
> Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
> ---
> Makefile |8 ++
> man/get_huge_pages.3 | 68
> ++
¹ØÓÚ×éÍŲμÓ2009ÄêÃÀ¹úÀ˹ά¼Ó˹
¹ú¼ÊÏû·ÑÀàµç×Ó²úÆ·Õ¹ÀÀ»á£¨CES£©µÄ֪ͨ
¸÷Óйص¥Î»£º
¾¹úÎñÔºÅú×¼£¬ÊÜÖйúó´Ù»áµÄίÍÐ,Öйúó´Ù»áµç×ÓÐÅÏ¢ÐÐÒµ·Ö»á½«×éÍŲμÓ2009ÄêÃÀ¹úÀ˹ά¼Ó˹¹ú¼ÊÏû·ÑÀàµç×Ó²úÆ·Õ¹ÀÀ»á£¨2009International
Consumer Electronics Show ¼ò³Æ CES 2009£©¡£
¸ÃÕ¹ÓÉÃÀ¹úµç×ÓÏû·ÑÆ·ÖÆÔìÉÌлá(¼ò³ÆC
¹ØÓÚ×éÍŲμÓ2009ÄêÃÀ¹úÀ˹ά¼Ó˹
¹ú¼ÊÏû·ÑÀàµç×Ó²úÆ·Õ¹ÀÀ»á£¨CES£©µÄ֪ͨ
¸÷Óйص¥Î»£º
¾¹úÎñÔºÅú×¼£¬ÊÜÖйúó´Ù»áµÄίÍÐ,Öйúó´Ù»áµç×ÓÐÅÏ¢ÐÐÒµ·Ö»á½«×éÍŲμÓ2009ÄêÃÀ¹úÀ˹ά¼Ó˹¹ú¼ÊÏû·ÑÀàµç×Ó²úÆ·Õ¹ÀÀ»á£¨2009International
Consumer Electronics Show ¼ò³Æ CES 2009£©¡£
¸ÃÕ¹ÓÉÃÀ¹úµç×ÓÏû·ÑÆ·ÖÆÔìÉÌлá(¼ò³ÆC
This patch adds a basic manual page for get_huge_pages and
free_huge_pages().
Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
---
Makefile |8 ++
man/get_huge_pages.3 | 69 ++
2 files changed, 77 insertions(+), 0 deletions(-)
cr
The following four patches add manual pages for the libhugetlbfs libraries,
utilities and the allocation APIs.
Changelog since V1
o Corrections/clarifications from Andy
Makefile | 23 +++
man/get_huge_pages.3 | 69
man/hugectl.8| 105 ++
On Wed, Oct 08, 2008 at 02:47:00PM +0100, Mel Gorman wrote:
> On (08/10/08 13:52), Andy Whitcroft didst pronounce:
> > Add control over verbosity and debugging both in the hugectl and in the
> > library when invoked. Allows the level to be set directly via
> > --verbose and may be incremented via
This patch adds a basic manual page for hugeedit.
Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
---
Makefile |2 +-
man/hugeedit.8 | 57
2 files changed, 58 insertions(+), 1 deletions(-)
create mode 100644 man/hugeedit.8
diff
This patch adds a basic manual page for libhugetlbfs. It points the user
to the HOWTO for detailed instructions and is intended as a brief synopisis
for the environment variables.
Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
---
Makefile |8 +++
man/libhugetlbfs.7 | 168 ++
On (09/10/08 10:03), Andy Whitcroft didst pronounce:
> On Wed, Oct 08, 2008 at 03:39:37PM +0100, Mel Gorman wrote:
> > This patch adds a basic manual page for get_huge_pages() and
> > free_huge_pages().
> >
> > Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
> > ---
> > Makefile |8
On Wed, Oct 08, 2008 at 03:39:35PM +0100, Mel Gorman wrote:
> This patch adds a basic manual page for hugectl.
>
> Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
> ---
> Makefile |7
> man/hugectl.8 | 97
> +
> 2 files change
On (09/10/08 09:56), Andy Whitcroft didst pronounce:
> On Wed, Oct 08, 2008 at 03:39:34PM +0100, Mel Gorman wrote:
> > This patch adds a basic manual page for libhugetlbfs. It points the user
> > to the HOWTO for detailed instructions and is intended as a brief synopisis
> > for the environment var
On Wed, Oct 08, 2008 at 03:39:36PM +0100, Mel Gorman wrote:
> This patch adds a basic manual page for hugeedit.
>
> Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
> ---
> Makefile |2 +-
> man/hugeedit.8 | 56
>
> 2 files change
On Wed, Oct 08, 2008 at 03:39:34PM +0100, Mel Gorman wrote:
> This patch adds a basic manual page for libhugetlbfs. It points the user
> to the HOWTO for detailed instructions and is intended as a brief synopisis
> for the environment variables.
>
> Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
>
65 matches
Mail list logo