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
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
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
===
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
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
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
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