1834827 Members
2472 Online
110070 Solutions
New Discussion

Secondary swap

 
SOLVED
Go to solution
Feljav
Frequent Advisor

Secondary swap

Can I eliminate a secondary swap logical volume?
Can I reuse this space?
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: Secondary swap

Hi:

Yes. Remove the '/etc/fstab' entry for the secondary device swap (primary swap is never listed in '/etc/fstab') and reboot.

After rebooting, you can 'lvremove' the logical volume that hosts the secondary swap.

Regards!

...JRF...
Feljav
Frequent Advisor

Re: Secondary swap

Soryy!!I forgot to say that the system is HP-UX
Beside that, What size should the swap be? Twice the physucal memory or 1.5 the physucal memory?
James R. Ferguson
Acclaimed Contributor

Re: Secondary swap

Hi (again):

> What size should the swap be? Twice the physical memory or 1.5 the physical memory?

Everything depends upon *your* environment and its needs.

As long as you have enough swap space for process swap reservatation, and as long as you don't actually swap, you have enough.

If you set the kernel 'swapmem_on' to one (1), then 75% of your physical memory will be counted by the kernel as available swap space. This allows processes to be 'fork'ed and satisfy their swap space reservation requirements without actually allocating swap disk for that purpose. The idea of a "reservation" is that a process *might* need to be paged-out and thus "space" needs to be reserved.

Insufficient swap space for process swap reservation is seen when you encounter ENOMEM (errno=12) errors.

Regards!

...JRF...
Feljav
Frequent Advisor

Re: Secondary swap

Thank you very much for your help!!!!