Solved

swap space

Posted on 2013-06-10
2
450 Views
Last Modified: 2013-07-12
[root@local~]# swapon -s
Filename                                Type            Size    Used    Priority
/dev/mapper/vg00-swap                   partition       2097144 100     -1

what is the Priority value here and how it works.
0
Comment
Question by:ittechlab
2 Comments
 
LVL 34

Expert Comment

by:Seth Simmons
Comment Utility
that specifies the priority value as to which swap area to use first
in this case that's the only one but if you added another partition or file, by default would be given -2

http://www.brighthub.com/computing/linux/articles/37236.aspx
0
 
LVL 6

Accepted Solution

by:
xeroxzerox earned 320 total points
Comment Utility
prioritize swap areas is only usefull if they are of different speed. Since kernel 2.6 even swap files are as fast as a swap partition. If you set same priorities to swap partitions the kernel stripes pages similar to raid 0 resulting in better swap performance.

if you want set swap pirority then make entry in /etc/fstab file through blkid

UUID=-----------------------  none            swap    sw,pri=0        0       0

save file and run
#swapon -a { a for activate}

restart system and check......

method 2:

To change the priority -1 to 20
#  swapon   -p   10    /dev/hda6
To activate
#swapon -a
To check priority
#  swapon   -s
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now