Solved

swap space

Posted on 2013-06-10
2
458 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
ID: 39236109
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
ID: 39252564
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

770 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