Re: [Libhugetlbfs-devel] [PATCH] hugeadm: add-temp-swap updates. user input for swap size

2009-06-29 Thread Eric B Munson
On Fri, 26 Jun 2009, Avantika Mathur wrote: > > Update to the add-temp-swap feature > > - use page size of pool being resized to as increment for size of swap space > - allow optional user input of the size of the swap in number of hugepages. > by default it is 5 huge pages. > - update man pag

[Libhugetlbfs-devel] [PATCH 1/2] hugeadm swap: Add --add-ramdisk-swap option to create temp swap on ramdisk during pool resize

2009-06-29 Thread Avantika Mathur
This patch adds the --add-ramdisk-swap option, which when specified, creates and activiates swap space on ramdisk for the duration of the positive pool resize. If the ramdisk size on the system is not as big as the huge page size, then swap is initialized on multiple ramdisks. Signed-off-by: Ava

[Libhugetlbfs-devel] [PATCH 2/2] hugeadm swap: add --persist option to make swap space permanent

2009-06-29 Thread Avantika Mathur
Adding the --perist option which is specified with --add-ramdisk-swap or --add-temp-swap, to make the swap space created, permanent after the pool resize is completed. Signed-off-by: Avantika Mathur --- Index: libhugetlbfs/hugeadm.c ===

Re: [Libhugetlbfs-devel] [PATCH 1/2] hugeadm swap: Add --add-ramdisk-swap option to create temp swap on ramdisk during pool resize

2009-06-29 Thread Eric B Munson
On Mon, 29 Jun 2009, Avantika Mathur wrote: > This patch adds the --add-ramdisk-swap option, which when specified, > creates and activiates swap space on ramdisk for the duration of > the positive pool resize. If the ramdisk size on the system is not > as big as the huge page size, then swap is

Re: [Libhugetlbfs-devel] [PATCH 2/2] hugeadm swap: add --persist option to make swap space permanent

2009-06-29 Thread Eric B Munson
On Mon, 29 Jun 2009, Avantika Mathur wrote: > Adding the --perist option which is specified with --add-ramdisk-swap > or --add-temp-swap, to make the swap space created, permanent after the > pool resize is completed. > > Signed-off-by: Avantika Mathur Applied, thanks. Eric signature.asc Des

Re: [Libhugetlbfs-devel] Trying to run test program

2009-06-29 Thread David Brown
I've been reading the code maybe a little explanation could help? /* This is the hairy bit, between unmap and remap we enter a * black hole. We can't call anything which uses static data * (ie. essentially any library function...) */ So if you can't use any lib

[Libhugetlbfs-devel] [PATCH] hugeadm: Fix string issue for add_ramdisk_swap

2009-06-29 Thread Avantika Mathur
The string returned from add_ramdisk_swap points to local memory that can be overwritten after return. This patch makes a global string ramdisk_list which is used to store the list of ramdisks swap is initialized on. Signed-off-by: Avantika Mathur diff -uprNb libhugetlbfs.orig/hugeadm.c libhug