Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-27-2010, 08:09 PM   #1
Registered: Jan 2010
Posts: 189

Rep: Reputation: 15
Didnt use swap memory in CentOS 5.4

I found out that my CentOS 5.4 linux does not use any swap memory!!
here is the #top output:

top - 10:02:49 up 27 min, 5 users, load average: 4.22, 3.45, 2.24
Tasks: 173 total, 4 running, 166 sleeping, 0 stopped, 3 zombie
Cpu(s): 71.1%us, 26.1%sy, 0.0%ni, 0.2%id, 0.0%wa, 2.7%hi, 0.0%si, 0.0%st
Mem: 3081388k total, 1729216k used, 1352172k free, 69544k buffers
Swap: 5140760k total, 0k used, 5140760k free, 865316k cached

I wonder why swap memory is not used! I also face auto-restart issue while running few tasks. Does it relate to the swap memory???

uanme -r -> 2.6.18-164.el5

I remember that my i have allocated about 5G for swap memory. However I put it into different partition and far away from root partition due to diskspace partition.
Does it matter?

I do not know how to show the swap memory partition or partition map over here.

here is the mount output
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda7 on /home type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda3 on /mnt/win_c type fuseblk (rw,allow_other,blksize=4096)
/dev/sda5 on /mnt/win_f type fuseblk (rw,allow_other,blksize=4096)
/dev/sda6 on /app type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

Last edited by casualzone; 02-27-2010 at 08:11 PM.
Old 02-27-2010, 08:21 PM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,799

Rep: Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158
If the system wants to use the swap it will.
Why didn't you include the users that are chewing up all the CPU in that top listing ?.
Old 02-27-2010, 08:42 PM   #3
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
I did run several simulation. The swap memory remained the same, 0k used


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
process, memory, swap, virtual memory wakatana Linux - Hardware 1 08-31-2009 07:55 AM
Swap Memory / Virtual Memory in Fedora Core 6 Jojo_CFT Linux - Newbie 2 10-15-2007 04:23 AM
Centos 4 runs out of memory where Centos 3 didn't! czamora Red Hat 5 12-21-2006 02:21 PM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 07:58 PM
Swap Memory in use or not? Qebex Linux - Hardware 5 09-21-2002 07:59 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration