Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux General

Linux General Any questions that are not covered by other forums go here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-05-2008, 09:43 PM
Off Off is offline
Member
 
Join Date: Feb 2008
Posts: 60
Off is on a distinguished road
Default Swap never used?

Why is my swap memory usage always at 0? I know in Windows the swap file is used extensively.

"free" command results:
Code:
             total       used       free     shared    buffers     cached
Mem:       2070076     822924    1247152          0      31864     279628
-/+ buffers/cache:     511432    1558644
Swap:      1015800          0    1015800
Notice the swap = 0 under used? Why?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-07-2008, 10:44 PM
Member
 
Join Date: Jan 2007
Posts: 96
Prog is on a distinguished road
Default

My swap is the same way. I don't think that the swap is used until all physical memory is used. This is because the swap space is so slow.
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 05:32 AM
Super Moderator
 
Join Date: Apr 2008
Posts: 19
John is on a distinguished road
Default

Quote:
Originally Posted by Prog View Post
My swap is the same way. I don't think that the swap is used until all physical memory is used. This is because the swap space is so slow.
You are correct. When an application exceeds your current amount of physical memory, it can write to a temporary buffer on the hard drive. Moreover, since swap is stored on the hard drive it is a lot slower - considering the average read speed of a hard drive is around 10ms, and the average read speed of RAM is 10ns.
Reply With Quote
  #4 (permalink)  
Old 06-16-2008, 11:54 AM
Senior Member
 
Join Date: Jun 2008
Posts: 110
rumen is on a distinguished road
Default

I think the swap is the virtual memory used when you run out of your physical memory. Also, the swap size should be twice your real RAM. Like if you have 1GB of RAM, your swap should be 2 GB of Ram.
Reply With Quote
Reply

Tags
swap

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add more swap space? Tor Linux Hardware 8 06-21-2008 09:08 PM
Swap Partition? Why? TotalPenguin Linux Hardware 8 06-18-2008 02:53 PM
Label a Linux Swap Partition erik Linux Hardware 1 10-11-2007 11:25 PM


All times are GMT. The time now is 04:44 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.