Solved

swap space

Posted on 2013-06-10
2
461 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux VM 6 101
Retreiving column names in Windows but not in Unix 11 57
reset ubuntu password for root and admin after clearing it. 7 56
awk sed variable in file 3 70
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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…
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.

840 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