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
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
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
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;
> +
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
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
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];
> };
>
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
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
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
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 |
尊敬的老板你好:
本公司可优惠代开全国部分省市的普通发票、广告、运输、建筑、服务等,
按贵公司要求开据后查验无误才付款! 若打扰、敬请谅解!
顺祝商祺!!
联 系 人:李兵[先生]
手 机:13724250985 业务QQ;532632021
深圳市伟达实业有限公司
--
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
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
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
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
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
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
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
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(+),
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
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.
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
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
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
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
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
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
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
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
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]>
Acked-by: Mel Gorman <[
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
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
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
[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
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
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
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
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
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
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
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-
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
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
>
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
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
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
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
> > *
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
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.
> > +*/
> > +
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 +
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
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
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
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
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
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(-)
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
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
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
> +
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
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]
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
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
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
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
67 matches
Mail list logo