Operating System - HP-UX
1836872 Members
2121 Online
110110 Solutions
New Discussion

Create additional swap ??

 
SOLVED
Go to solution
Chris Fung
Frequent Advisor

Create additional swap ??

Hi,

When I create an additional device swap through SAM, there is an option called "Swap priority" which is default "0". Can anyone tell me what is the implication for the "Swap priority"? Any relationship to the primary swap?

By the way, can anyone tell me how to create swap space through command line mode?

Thanks
4 REPLIES 4
Animesh Chakraborty
Honored Contributor

Re: Create additional swap ??

hi,
Attach document on swap may help you.
Did you take a backup?
Ravi_8
Honored Contributor
Solution

Re: Create additional swap ??

Hi,
Swap 0 mean top priority, then comes 1,2....
i.e system looks for the swap which has the priority 0 first, if it is full then goes to swap space of priority 1 then 2 like that.

you can create swap thru command like this.
#lvcreate -C -L size-inMB -n pswap /dev/vgxx
#swapon /dev/vgxx/pswap


never give up
Michael Tully
Honored Contributor

Re: Create additional swap ??

Hi,

There is a document on your hpux server that
illustrates this very well about swap priority.

It can be found in
/usr/shar/doc/mem_mgt.txt

The following is an extract from it about
swap priority.

You can also get information about swap from the system admin guides.

HTH
-Michael

http://www.docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html

Swap Space Priorities
=====================

Priorities, ranging from zero to ten, can be set for all devices or file systems. The lower the number, the higher the priority. Thus, a device with a priority of zero is used for swapping before a device of priority one or higher.

Swapping rotates among both devices and file systems of equal priority. Given equal priority, however, devices are swapped to by
the operating system before file systems, because devices make more efficient use of CPU time.

We recommend that you assign the same swapping priority to most swap devices, unless a device is significantly slower than the rest.
Assigning equal priorities limits disk head movement, which improves swapping performance.
Anyone for a Mutiny ?