Operating System - HP-UX
1823718 Members
3778 Online
109664 Solutions
New Discussion юеВ

Best way for SWAP space (raw,lvm etc)

 
SOLVED
Go to solution
Kasper_USB
Frequent Advisor

Best way for SWAP space (raw,lvm etc)

Hello

I have a HPUX 11.31 (VMhost and 2 guests), hpvm 4.0.

Faced to assign swap space via SAN-Storage (multipathing).

Memory:
100 G on VM-Host.
Optimal Swapspace Sizing on VM-HOST ?

30 G on VM1
50 G on VM2

Swap-Solution:
add 100 G Disk device to VM-Host
add 30 G Disk device to VM1
add 50 G Disk device to VM2

Any Feebacks are welcome.

Olaf
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Best way for SWAP space (raw,lvm etc)

Shalom,

swapspace size should be set based on actual use.

So don't set swap to twice the HPVM guest's ram just becaust that rule worked.

I would set swap to half RAM as a start unless you know paging is high.

HPVM lets you put the entire guest on a single logical volume. You can configure your guest with a second logical volume just for swap. I don't know what benefit this will provide you.

I think your proposed solution is in the ball park, it will probably work, but I do not know what benefit there would be in isolating the swap space on its own logical volume.

We are running a few production hpvm systems and I just rebuilt a blade based hpvm lap, running Linux/Windows and HP-UX and I'm getting reasonable results thus far with my HP-UX guest running everything, including swap on a single logical volume presented by the host system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Turgay Cavdar
Honored Contributor

Re: Best way for SWAP space (raw,lvm etc)

For VM host you can give half of the RAM (there is also pseude swap), but never let your VM host to page-out, it will be messy for your guests.
For each guest the swap size is depend on application you install...
Eric SAUBIGNAC
Honored Contributor
Solution

Re: Best way for SWAP space (raw,lvm etc)

Bonjour Olaf,

For the host, you must allocate at least physical memory + 4 Gb of swap space, that is 104 Go. (Don't have time to search in which document it is written, but almost sure it is). It is better that it relies on local disks, but if you can't, then you can use a san-storage disk for that.

For the guest, just do as you would do for a "normal" box. Dealing with pseudoswap, you can allocate only half of RAM or more if you have to follow some strongs recomandations from your software provider. But it is not necessary to have VM's swap space on a separate wirtual disk. If you are at the beginning of installaing the VMs, just create a greater vg00 disk.

Hope this help

Eric

Something that has nothing to deal with this post ;-) Did you check your previous post at http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1406635