Solved

swap space

Posted on 2013-06-10
2
464 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

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

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

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

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

630 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