LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2009, 07:51 PM   #1
Mik0r
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
100% RAM usage all the time


Hi, I have a linux dedicated server running Debian Etch, kernel: 2.6.18-6-686-bigmem, I have 4g of ram, without -bigmem it only sees 2g of ram.

A few days ago I noticed that my ram was at 100% usage and I cant figure out what is using it and if its normal. The only services I have are: 2 CoD4 servers, Asterisk, and DirectAdmin. After a reboot the server consumes ~800mb of ram and about 24 hours later it will use all 4g of ram.

Can anyone provide any insight as to what's going on? I have read some articles that say large ram consumption is normal on linux but others are telling me it's not normal to use all 100% of the RAM.

Here are my free -m output and top output sorted by %MEM
http://pastebin.com/m53daf78
http://pastebin.com/m27fb8293

Its been 24 hours after last reboot and I had a friend make some configuration changes it seems to be handling ram slightly better as its only using 3g right now.
 
Old 03-13-2009, 08:33 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I wouldn't worry about the "mem" statistics.

The Good News is that "top" shows you have 4GB RAM (good: the system is seeing it all), that you have 1GB free (good: you've got breathing room), and you're using 0K swap (best of all: you're *not* swapping; you have enough RAM for everything the system needs).

Looking further at top, you're using 716MB RAM (3/4 GB) for your two Bittorrent daemons, and another 187MB of RAM for your web server. That might be OK, or you might want to throttle them down. Just FYI...

BOTTOM LINE:
Per "top", you should be fully utilizing your system RAM, and you shouldn't have any performance issues (at least not any memory-related performance issues).

'Hope that helps .. PSM
 
Old 03-13-2009, 08:35 PM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
It is normal.

This was just discussed in detail in another thread. The post in that thread that most closely explains your situation is
http://www.linuxquestions.org/questi...35#post3474835

Quote:
Originally Posted by Mik0r View Post
I had a friend make some configuration changes it seems to be handling ram slightly better as its only using 3g right now.
Likely that is worse, not better. Any idea what your friend changed?

Quote:
Originally Posted by paulsm4 View Post
Looking further at top, you're using 716MB RAM (3/4 GB) for your two Bittorrent daemons
The VIRT column should be ignored under these conditions. VIRT often exaggerates the actual amount of memory the task is trying to use, so the true value is usually somewhere between RES and VIRT. But in this case the true individual values are exactly the RES values, no more. So 309m and 308m. But those likely include almost all the SHR value in each, so the total of that 309m and 308m is likely just 614m.

Quote:
another 187MB of RAM for your web server.
I didn't check your computation of that, but likely it includes a big multi count of SHR memory as well.

Quote:
or you might want to throttle them down.
On a lightly loaded 4GB system, why?

Last edited by johnsfine; 03-13-2009 at 08:47 PM.
 
Old 03-13-2009, 09:11 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Mik0r -

Johnsfine is just restating what I said in the first place:
Quote:
It is normal.
<= Correct. That's what I said.
Quote:
VIRT often exaggerates the actual amount of memory
<= This is totally over-analyzing things.
Treat these numbers as "trends"; nothing more.
Realistically, the difference between "308MB" and "358" MB is *NO* difference. Treat it as such!
The bottom line is:
1. Your system is running fine
2. If you want to identify the "Big Pigs" (and perhaps do something about them), the first two candidates you'd want to start with are BitTorrent and your web server.

IMHO .. PSM

Last edited by paulsm4; 03-13-2009 at 09:14 PM.
 
  


Reply


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
FF 2.0 100% CPU Usage cexshun Slackware 12 04-05-2007 02:11 AM
100% cpu use 100% of the time serafean Linux - Newbie 4 05-04-2006 04:36 PM
cpu usage stuck to 100% all the time mohama Linux - Software 0 03-05-2006 02:12 PM
100% of RAM in use all the time BrianK Linux - General 11 11-02-2004 10:52 AM
CPU usage 100% ecsfan Red Hat 17 11-19-2003 04:06 PM


All times are GMT -5. The time now is 05:09 AM.

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