#1  
Old 15th January 2008, 08:57
devnull3d devnull3d is offline
Junior Member
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Memory usage on debian etch

Hello, everytime i restart this box the memory usage goes up every minute according to top, until it uses 36K of swap and then stops.
I can't see the process that uses the memory, check this out
Code:
$ ps aux | awk '{print $5}' > mem
$ b=0;for a in `cat mem`; do b=`expr $b + $a` ; done;echo $b
expr: non-numeric argument # because the first line is VSZ
516596
So that's around 512MB. I have 1GB ram and when I run top I see this
Code:
Mem:   1027412k total,   996588k used,    30824k free,   154012k buffers
Swap:  2650684k total,       36k used,  2650648k free,   744516k cached
I've never seen this before, any ideas? The kernel is 2.6.18-5-686, the processor is core duo 2 T5500 if that helps.
I tried restarting, all my processes at start up run, mysql, courier, apache, proftpd, sshd etc and their memory usage isn't changing at all. But in few hours suddenly I've used up all my memory and the box starts to swap.
Thank you.
Before you jump to a conclusion that my box might be compromised, this box doesn't have access on the internet, it's deep inside my LAN.
Reply With Quote
Sponsored Links
  #2  
Old 16th January 2008, 10:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

I don't see anything unusual here. Linux tries to put as much as it can into memory to be faster. That's why almost all your RAM is used, even if the sum of the single processes need less memory. And I wouldn't worry too much about 36k swap.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th January 2008, 11:35
devnull3d devnull3d is offline
Junior Member
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well that makes sense, I've never run such much services before so I guess you're right. But what if the server suddenly gets a lot of load from apache? Will it start to swap like crazy or it will use the physical memory more sensibly than now?
Reply With Quote
  #4  
Old 16th January 2008, 15:28
devnull3d devnull3d is offline
Junior Member
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well the free -m output explains it all
Code:
             
total       used       free     shared    buffers     cached
Mem:          1003        974         29          0        150        723
-/+ buffers/cache:        100        903
Swap:         2588          0       2588
That's 723MB cashed memory, so my box is pretty healthy. I was over paranoid because I'm setting up this box to sell shared hosting and I don't want to screw people over if the box starts to swap aggressively.
Thanks.
Reply With Quote
  #5  
Old 17th January 2008, 16:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by devnull3d
Will it start to swap like crazy or it will use the physical memory more sensibly than now?
It will use the physical memory.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perfect setup Debian Etch ISPConfig - DNS Server kdclaver Installation/Configuration 16 28th December 2007 01:39
Installing Debian Etch From a Windows System - Error bluegrass Installation/Configuration 2 24th October 2007 07:28
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 00:57
Pls Help - Problem installing OpenVZ with Debian Etch. joelee HOWTO-Related Questions 3 14th January 2007 18:37
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 14:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.