[Libhugetlbfs-devel] [PATCH] Use MAP_NORESERVE for many read-only mappings V2

2008-07-23 Thread Mel Gorman
During preparation, a hugetlbfs file is mapped MAP_SHARED and the data copied. At this point, the hugepages have been allocated and exist in the page cache. The file later mapped MAP_PRIVATE which kernels after 2.6.26 will reserve hugepages in case mprotect() is called and a COW is required. In hu

Re: [Libhugetlbfs-devel] [PATCH 2/2] tools: hugeedit: Modify binaries to set default remapping behavior

2008-07-23 Thread Mel Gorman
On (22/07/08 16:09), Adam Litke didst pronounce: > How about this updated patch? > Getting better! More comments below > commit 26b548c39c319dc65962c1798de2f6849d21a53e > Author: Adam Litke <[EMAIL PROTECTED]> > Date: Tue Jul 22 21:02:15 2008 + > > The recently added relinking method

Re: [Libhugetlbfs-devel] [PATCH 1/5] hugectl: honour the hugetlb verbosity/debug flags

2008-07-23 Thread Andy Whitcroft
On Tue, Jul 22, 2008 at 04:43:03PM +0100, Mel Gorman wrote: > On (17/07/08 23:19), Andy Whitcroft didst pronounce: > > Handle the HUGETLB_VERBOSE and HUGETLB_DEBUG flags such that we will emit > > messages at the same levels as defined for the library. Use the common > > header to define the level

[Libhugetlbfs-devel] 慧源培训工作室

2008-07-23 Thread 慧源培训工作室
亲爱的朋友: 好久没跟大家联系了,还记得我吗?我是陈毓慧老师的助理张香宗,最近广州的天气闷热闷热的,很容易感冒的,要注意身体,平时多喝点水,最近在网上看一篇关于朋友 间真正的友谊的文章,我也深有感触,在现在这个社会里能拥有真正的朋友的确不容易,所以我会更珍惜我的朋友,相信我们朋友您也会给我更多的帮助和支持对吧!虽说朋友间不要太客气,但因为我真的无法表达我内心的感激,所以我只能轻轻的跟您说声"谢谢"! 现跟您分享下,不知道您的感觉如何? 友谊可以促进竞争。当朋友间存在竞争时,应互帮互助,共同进步,这才是真正友谊地体现。 若两个人因竞争而反目成仇,互相利用,互相陷害,那么他们二人绝对不是

Re: [Libhugetlbfs-devel] [PATCH 2/5] hugectl: add remap support via --text, --data, --bss, and --disable

2008-07-23 Thread Andy Whitcroft
On Tue, Jul 22, 2008 at 05:48:15PM +0100, Mel Gorman wrote: > On (17/07/08 23:19), Andy Whitcroft didst pronounce: > > Add control over remap via the --text, --data, --bss, and --disable > > options. The first three request mapping of those segments, the last > > disables all remap. Where the com

Re: [Libhugetlbfs-devel] [PATCH 2/5] hugectl: add remap support via --text, --data, --bss, and --disable

2008-07-23 Thread Mel Gorman
On (23/07/08 10:14), Andy Whitcroft didst pronounce: > On Tue, Jul 22, 2008 at 05:48:15PM +0100, Mel Gorman wrote: > > On (17/07/08 23:19), Andy Whitcroft didst pronounce: > > > Add control over remap via the --text, --data, --bss, and --disable > > > options. The first three request mapping of th

[Libhugetlbfs-devel] Stay stronger and harder

2008-07-23 Thread Kapil
Your life will never be the same again after consuming our supplement http://www.famedeal.com/ -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - This SF.Net email is sponsored by the Moblin Your Move

[Libhugetlbfs-devel] [PATCH 4/9] hugectl: honour the hugetlb verbosity/debug flags

2008-07-23 Thread Andy Whitcroft
Handle the HUGETLB_VERBOSE and HUGETLB_DEBUG flags such that we will emit messages at the same levels as defined for the library. Use the common header to define the levels. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[EMAIL PROTECTED]> --- hugectl.c | 25 ++

[Libhugetlbfs-devel] [PATCH 9/9] hugectl: explain the hugetlb configuration selected via --explain

2008-07-23 Thread Andy Whitcroft
Allow the user to request the specific hugetlb configuration which will be used for the selected options, exposed via the --explain option. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> --- hugectl.c | 18 +- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/hu

[Libhugetlbfs-devel] [PATCH 2/9] hugectl: convert exit status to POSIX standard codes

2008-07-23 Thread Andy Whitcroft
Move to using the POSIX standard codes EXIT_FAILURE/EXIT_SUCCESS instead of explicit numbers. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> --- hugectl.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hugectl.c b/hugectl.c index 10e8806..7b583ca 100644 --- a/hug

[Libhugetlbfs-devel] [PATCH 7/9] hugectl: add support for preload

2008-07-23 Thread Andy Whitcroft
Preload is only useful when linking against an non-relinked binary and only then when we are only attempting to back the heap. No other combination can usefully use preload. Using preload with a relinked binary is safe as long as you are only requesting backing of the heap. Therefore unconditiona

[Libhugetlbfs-devel] (no subject)

2008-07-23 Thread 钟文辉
各位老总:您们好! 诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!   鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康! 我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口 报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证; 并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件 或来电联系。谢谢合作!   电话:0755-81153047。  

Re: [Libhugetlbfs-devel] [PATCH 0/9] hugectl: remap control V3

2008-07-23 Thread Mel Gorman
On (23/07/08 16:33), Andy Whitcroft didst pronounce: > This is a further revision of the basic hugectl support incorporating > further feedback, and a number of other cleanups which came out of the > work to address them. The first three patches are effectivly further > cleanups prior to the meat.

[Libhugetlbfs-devel] [PATCH 3/9] hugectl: bring the main execvp error under the standard error reporting

2008-07-23 Thread Andy Whitcroft
We should be using ERROR() to report execvp errors. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> --- hugectl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hugectl.c b/hugectl.c index 7b583ca..0d5847c 100644 --- a/hugectl.c +++ b/hugectl.c @@ -77,6 +77,6 @@ int m

[Libhugetlbfs-devel] [PATCH 5/9] hugectl: add remap support via --text, --data, --bss, and --disable

2008-07-23 Thread Andy Whitcroft
Add control over remap via the --text, --data, --bss, and --disable options. The first three request mapping of those segments, the last disables all remap. Where the combinations requested cannot be exactly handled then the request is "widened" to get that segment remapped, for example if you re

[Libhugetlbfs-devel] [PATCH 6/9] hugectl: add backing of the heap via --heap

2008-07-23 Thread Andy Whitcroft
Add support for mapping the heap via morecore through the --heap option. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[EMAIL PROTECTED]> --- hugectl.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/hugectl.c b/hugectl.c index 9063623..2b4

Re: [Libhugetlbfs-devel] [PATCH 2/9] hugectl: convert exit status to POSIX standard codes

2008-07-23 Thread Mel Gorman
On (23/07/08 16:33), Andy Whitcroft didst pronounce: > Move to using the POSIX standard codes EXIT_FAILURE/EXIT_SUCCESS instead > of explicit numbers. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > --- > hugectl.c |6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > dif

[Libhugetlbfs-devel] [PATCH 8/9] hugectl: add support for requesting which library to use

2008-07-23 Thread Andy Whitcroft
Add support for requesting a specific library set for preload. This adds the --library option which takes an optional argument. Without an argument it requests use of the specific libraries installed with the version of hugectl in use. An argument is treated as a prefix to the library directorie

Re: [Libhugetlbfs-devel] [PATCH 1/9] debug: expose default and maximum verbosity level

2008-07-23 Thread Mel Gorman
On (23/07/08 16:33), Andy Whitcroft didst pronounce: > Expose the default and maximum verbosity levels via with the debugging > level macros so that applications can use it to enable 'all' tracing. > Use these in the main library. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Looks ok Ac

Re: [Libhugetlbfs-devel] [PATCH 5/9] hugectl: add remap support via --text, --data, --bss, and --disable

2008-07-23 Thread Mel Gorman
On (23/07/08 16:33), Andy Whitcroft didst pronounce: > Add control over remap via the --text, --data, --bss, and --disable > options. The first three request mapping of those segments, the last > disables all remap. Where the combinations requested cannot be exactly > handled then the request is

[Libhugetlbfs-devel] [PATCH 0/9] hugectl: remap control V3

2008-07-23 Thread Andy Whitcroft
This is a further revision of the basic hugectl support incorporating further feedback, and a number of other cleanups which came out of the work to address them. The first three patches are effectivly further cleanups prior to the meat. Needing resolution: 1) are we going to offer --read-only/-

[Libhugetlbfs-devel] [PATCH 1/9] debug: expose default and maximum verbosity level

2008-07-23 Thread Andy Whitcroft
Expose the default and maximum verbosity levels via with the debugging level macros so that applications can use it to enable 'all' tracing. Use these in the main library. Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> --- debug.c |2 +- libhugetlbfs_debug.h |3 +++ 2 file

Re: [Libhugetlbfs-devel] [PATCH 8/9] hugectl: add support for requesting which library to use

2008-07-23 Thread Mel Gorman
On (23/07/08 16:33), Andy Whitcroft didst pronounce: > Add support for requesting a specific library set for preload. This adds > the --library option which takes an optional argument. Without an argument > it requests use of the specific libraries installed with the version > of hugectl in use.

Re: [Libhugetlbfs-devel] [PATCH 9/9] hugectl: explain the hugetlb configuration selected via --explain

2008-07-23 Thread Mel Gorman
On (23/07/08 16:33), Andy Whitcroft didst pronounce: > Allow the user to request the specific hugetlb configuration which will > be used for the selected options, exposed via the --explain option. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > --- > hugectl.c | 18 +- >

Re: [Libhugetlbfs-devel] [PATCH 2/9] hugectl: convert exit status to POSIX standard codes

2008-07-23 Thread Andy Whitcroft
On Wed, Jul 23, 2008 at 04:43:50PM +0100, Mel Gorman wrote: > On (23/07/08 16:33), Andy Whitcroft didst pronounce: > > Move to using the POSIX standard codes EXIT_FAILURE/EXIT_SUCCESS instead > > of explicit numbers. > > > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > > --- > > hugectl.c

Re: [Libhugetlbfs-devel] [PATCH V2] Update large_mounts test to be compatible with multiple mount point /proc/mounts parsing

2008-07-23 Thread Nishanth Aravamudan
On 22.07.2008 [10:15:22 -0700], Eric B Munson wrote: > The method used for finding the proper hugetlbfs mount point has changed with > the multiple mount points patch set. Instead of reading in 4kb at a time, > the mounts file is parsed line at a time with any extra characters being > pushed back

Re: [Libhugetlbfs-devel] [PATCH 5/9] hugectl: add remap support via --text, --data, --bss, and --disable

2008-07-23 Thread Andy Whitcroft
On Wed, Jul 23, 2008 at 04:47:40PM +0100, Mel Gorman wrote: > On (23/07/08 16:33), Andy Whitcroft didst pronounce: > > Add control over remap via the --text, --data, --bss, and --disable > > options. The first three request mapping of those segments, the last > > disables all remap. Where the com

[Libhugetlbfs-devel] [PATCH] Use MAP_NORESERVE for many read-only mappings V3

2008-07-23 Thread Mel Gorman
Please consider for merging === During preparation, a hugetlbfs file is mapped MAP_SHARED and the data copied. At this point, the hugepages have been allocated and exist in the page cache. The file later mapped MAP_PRIVATE which kernels after 2.6.26 will reserve hugepages in case mprotect() is cal

[Libhugetlbfs-devel] (no subject)

2008-07-23 Thread 钟文辉
各位老总:您们好! 诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!   鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康! 我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口 报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证; 并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件 或来电联系。谢谢合作!   电话:0755-81153047。  

Re: [Libhugetlbfs-devel] [PATCH] Use MAP_NORESERVE for many read-only mappings V2

2008-07-23 Thread Adam Litke
On Wed, 2008-07-23 at 08:58 +0100, Mel Gorman wrote: > During preparation, a hugetlbfs file is mapped MAP_SHARED and the data > copied. At this point, the hugepages have been allocated and exist in the > page cache. The file later mapped MAP_PRIVATE which kernels after 2.6.26 > will reserve hugepag

Re: [Libhugetlbfs-devel] [PATCH 3/9] hugectl: bring the main execvp error under the standard error reporting

2008-07-23 Thread Mel Gorman
On (23/07/08 16:33), Andy Whitcroft didst pronounce: > We should be using ERROR() to report execvp errors. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Mel Gorman <[EMAIL PROTECTED]> > --- > hugectl.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --g

Re: [Libhugetlbfs-devel] [PATCH 0/4] hugectl cleanups

2008-07-23 Thread Nishanth Aravamudan
[This may not have gone out a while ago due to VPN issues] On 15.07.2008 [14:07:44 +0100], Andy Whitcroft wrote: > I have been playing with the new hugectl framework looking at ways we > could expose hugetlb functionality in a more digestible form. As part > of that I have cleaned up the basic fr

[Libhugetlbfs-devel] [PATCH] tools: hugeedit: Modify binaries to set default remapping behavior V3

2008-07-23 Thread Adam Litke
The recently added relinking method makes it possible to choose from multiple ways to remap segments at run-time via the HUGTLB_ELFMAP environment variable. If nothing is specified in that variable, then no remapping will occur. Sometimes it is desirable to set a default remapping mode so that HUGE

Re: [Libhugetlbfs-devel] [PATCH 1/2] build: Cleanup tools build

2008-07-23 Thread Nishanth Aravamudan
On 22.07.2008 [19:34:40 +0100], Mel Gorman wrote: > On (22/07/08 13:29), Adam Litke didst pronounce: > > On Tue, 2008-07-22 at 18:52 +0100, Mel Gorman wrote: > > > For consistency, should this include a > > > > > > @$(VECHO) INSTALLBIN $(DESTDIR)$(EXEDIR) > > > > > > ? At a glance I could see stu

Re: [Libhugetlbfs-devel] [PATCH 5/9] hugectl: add remap support via --text, --data, --bss, and --disable

2008-07-23 Thread David Gibson
On Wed, Jul 23, 2008 at 04:33:40PM +0100, Andy Whitcroft wrote: > Add control over remap via the --text, --data, --bss, and --disable > options. The first three request mapping of those segments, the last > disables all remap. Where the combinations requested cannot be exactly > handled then the