2 GB swap file showing up as 506 MB

General support questions including new installations
Post Reply
jodiec
Posts: 2
Joined: 2005/11/14 23:07:47

2 GB swap file showing up as 506 MB

Post by jodiec » 2005/11/14 23:22:02

I just installed a clean copy of CentOS 4.1. I had setup a swap of 2048 MB in Disk Druid. From what I have read, there is a limit of 2 GB for the swap file. If that is the case, then I just made it. However, when I show the disk usage for the system, the /dev/shm partition shows only 506 MB. Why is this?

I have Intel MBs with dual Intel P4 3.0GHz processors and 1 GB of RAM. The hard drives are 80 GB Seagates. This happens on all 5 systems I just installed. All 5 systems have the same MBs, processors, and RAM. Three are using the on-board RAID controller from Adaptec. Two are using 3Ware RAID controllers.

Thanks!
Jodie

gavin
Posts: 10
Joined: 2005/03/10 18:34:29

2 GB swap file showing up as 506 MB

Post by gavin » 2005/11/15 12:58:53

http://www.luci.org/luci-discuss/200204/msg00015.html

/dev/shm isn't the same thing as swap memory. As long as `free -m` shows "Swap: 2048" then you have your 2gb swap partition set up correctly.

jodiec
Posts: 2
Joined: 2005/11/14 23:07:47

Re: 2 GB swap file showing up as 506 MB

Post by jodiec » 2005/11/17 04:48:42

free -m does show 2 GB for swap. Thanks Gavin! I have been admining Linux servers for 4 years now and I always thought /dev/shm was the swap partition. I guess it was just a coincidence that /dev/shm and swap were always the same size...that I have seen.

Again, thanks for the help!

Jodie

Post Reply

Return to “CentOS 4 - General Support”