Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

As you can Observe SwapSpace is never used inspite of RAM almost Zero

cat /proc/meminfo

MemTotal:      7140228 kB
MemFree:         41844 kB
Buffers:         31840 kB
Cached:        2828844 kB
SwapCached:          0 kB
Active:        5249256 kB
Inactive:      1729124 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      7140228 kB
LowFree:         41844 kB
SwapTotal:    13008872 kB
SwapFree:     13008872 kB
Dirty:            1452 kB
Writeback:           0 kB
AnonPages:     4117560 kB
Mapped:         119924 kB
Slab:            78764 kB
PageTables:      12856 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  16578984 kB
Committed_AS:  4651168 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    269348 kB
VmallocChunk: 34359468575 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB

[root@localhost ~]# vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
1  0      0  39704  37468 2818940    0    0    18   182   25   56  2  1 96  1  0

free -m

             total       used       free     shared    buffers     cached
Mem:          6972       6931         41          0         37       2749
-/+ buffers/cache:       4143       2828
Swap:        12703          0      12703

Can you please suggest me a way to use swap space

share|improve this question

marked as duplicate by Michael Hampton Jun 26 '13 at 17:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
You still have almost 3 GB cached. You're not using all your RAM so no swap will be used. –  Nathan C Jun 26 '13 at 17:27
    
You have plenty of free memory. Why would it swap? –  Michael Hampton Jun 26 '13 at 17:31
    
Yes found out I was interpreting it wrong. –  Pavan Kumar N Jul 8 '13 at 6:59
add comment

1 Answer 1

You shouldn't need to use swap space. Because of how the kernel allocates memory, you will always trend towards 100% memory usage over time. If you were to start using swap, then you would want to look at why, and whether you needed to tune the system, tune the application(s), or increase your memory.

share|improve this answer
    
Yes Got answered here. serverfault.com/questions/449296/…. –  Pavan Kumar N Jul 8 '13 at 6:58
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.