PDA

View Full Version : memory low



bashy
05-07-2007, 01:47 PM
Hi

My memory always appears to be very low, is this to be concerned about?

Server:

Vendor ID AuthenticAMD
Processor Speed (MHz) 1742.96

Total Memory 1003.41 MB
Free Memory 39.8945 MB
Total Swap Memory 2097152 kB
Free Swap Memory 2028852 kB

System Uptime 15 Days, 9 Hours and 52 Minutes
Apache 1.3.37 Running
DirectAdmin Running
Exim 4.67 Running
MySQL 4.1.22 Running
Named 9.3.2 Running
ProFTPd 1.3.0 Running
sshd Running
dovecot 1.0.0 Running

Regards

Bashy

smtalk
05-07-2007, 01:48 PM
Please post an output of:

free -m

bashy
05-07-2007, 01:52 PM
Hi

that was quick, please can you explain a little more, My server was semi managed but now i must learn a lot myself as the management has now gone even more semi, basically i am as good as on my own now, Soagain, i am learning from scrath so please bear with me :o

Did you mean to run free -m in ssh?

smtalk
05-07-2007, 01:56 PM
Yes, you need to run it in ssh.

bashy
05-07-2007, 01:58 PM
Yeah i thought thats what ya meant so i tried it and it said free: not found

floyd
05-07-2007, 02:04 PM
Memory will always show low in Linux. What you want to be concerned about is this:


Total Swap Memory 2097152 kB
Free Swap Memory 2028852 kB

This means 68 MB is being swapped to the hard drive. That is not a lot. Hardly worth upgrading the memory. Swap is only used when the ram is full. If you added any more than 68 MB then that would be a waste of memory.

I am sure someone else can explain it better than me.

smtalk
05-07-2007, 02:04 PM
Ah.. It's FreeBSD, sorry. Try:

sysctl -a | grep -i memory
You can also get the info using top. Using this command you'll see how much of RAM is in buffers/cache.

bashy
05-07-2007, 02:06 PM
Here ya go, :)



$ sysctl -a | grep -i memory
Virtual Memory: (Total: 1019K, Active 1013144K)
Real Memory: (Total: 967228K Active 611924K)
Shared Virtual Memory: (Total: 141328K Active: 17856K)
Shared Real Memory: (Total: 33764K Active: 10856K)
Free Memory Pages: 67984K
p1003_1b.memory_protection: 0
p1003_1b.shared_memory_objects: 1