1820541 Members
2500 Online
109626 Solutions
New Discussion юеВ

Re: swap priority

 
SOLVED
Go to solution
Vogra
Regular Advisor

swap priority

Hi All!
on HPUX11.00 I created (2nd)swap area with priority 0, but I want to change it to priority 1. The question is: can I change on the fly, With no boot? ...And the change occur immediate?
We are spirits in the material world
5 REPLIES 5
Tore_1
Regular Advisor
Solution

Re: swap priority

I dont think so. I tried it out, with
swapinfo -p "priority" "device", but I got
an error message :
swapon: /dev/vg00/lvol2 is already enabled for paging

I'm pretty sure theres no other ways to set swap (and attribute priority) on the fly, so a reboot is strongly indicated.


Trond Haugen
Honored Contributor

Re: swap priority

No you can't.
The priority is set when the swap is enabled, so changing it requires a reboot. It is usually better for performance to keep swap priority the same for devices with the same "speed". That way the load (if any) will be spread.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
V. V. Ravi Kumar_1
Respected Contributor

Re: swap priority

hi,
u can change priority, but it is effective only after reboot. use SAM to do it.

regds
Never Say No
Vogra
Regular Advisor

Re: swap priority

thanx all.
We are spirits in the material world
John Dvorchak
Honored Contributor

Re: swap priority

Once swap is enabled with swapon you are locked into it. You can change the priority but it won't take effect until you reboot. For performance reasons, you may want to leave it at 0 though, if the system memory is pressured and this swap device is on a different disk/controller than your other swap, or this swap device is on a controller/disk that is under utilized.
If it has wheels or a skirt, you can't afford it.