Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-26-2005, 04:59 PM
|
#1
|
LQ Newbie
Registered: May 2005
Posts: 22
Rep:
|
Ram problem
Hi,
I have noticed one interesting problem with my ram. I have 2 gb (400mhz) ram in my server. When I boot up it and run what i need (apache,ftp,cs servers and etc.), I have about 1.2 GB of free ram (i type free -m cmd). After 10 minutes i have only 50 mb left free...ant even a few mb written in the swap partition...I really don't get it why it's happening..Maybe there is a tool for clearing ram or smth ? Btw, my cs servers get laggy when the ram fills up.
|
|
|
11-26-2005, 06:40 PM
|
#2
|
Member
Registered: May 2005
Distribution: Fedora Core Since version 3
Posts: 193
Rep:
|
i'm not sure, but your services may just be claiming more ram
|
|
|
11-26-2005, 07:36 PM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Re: Ram problem
Quote:
Originally posted by Tomanas
Hi,
I have noticed one interesting problem with my ram. I have 2 gb (400mhz) ram in my server. When I boot up it and run what i need (apache,ftp,cs servers and etc.), I have about 1.2 GB of free ram (i type free -m cmd). After 10 minutes i have only 50 mb left free...ant even a few mb written in the swap partition...I really don't get it why it's happening..Maybe there is a tool for clearing ram or smth ? Btw, my cs servers get laggy when the ram fills up.
|
I'd suggest that you take a couple of "snapshots" of the memory use
using top ... e.g.
top -b -n 1| tail -n +8| sort -g -k 5,5 > snapshot.`date +"%H%M%S"`
every 3 minutes, and then hunt down the memory hogs ...
The value for the +8 with top is valid for my machine, may be
different for yours :} ... play with it (without the redirect and sort).
Cheers,
Tink
Last edited by Tinkster; 11-26-2005 at 07:37 PM.
|
|
|
11-26-2005, 08:49 PM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,332
|
I tend to do similar to Tink, but use a profile to sort top by what I'm interested in - CPU, RSS, SWAP, whatever.
I keep the whole display, and tend to append to the one file.
Whatever works for you.
|
|
|
11-27-2005, 06:11 AM
|
#5
|
LQ Newbie
Registered: May 2005
Posts: 22
Original Poster
Rep:
|
maybe the problem is not in the ram (despite they are full), as i see, the hlds binaries use about 20 % of cpu.
My cpu is athlon 64 bit 3200+. Besides slackware is on 32 bit platform, so i need to make it 64 bit (i'll try installing slamd64). Maybe they won't be laggy any more..
|
|
|
02-24-2006, 12:36 AM
|
#6
|
Member
Registered: Feb 2006
Distribution: Red Hat 9
Posts: 112
Rep:
|
How many instances of HLDS are you running? And what settings are you running them with? i.e. -pingboost 3
Those server instances can be real resouce hogs and if you are talking about running multiple ones this is especially true.
|
|
|
02-24-2006, 05:50 AM
|
#7
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491
Rep:
|
linux chaches a lot of stuff in ram. it usually appears to be used, even if you have loads of ram.
what's the output of 'free'?
|
|
|
02-24-2006, 07:57 AM
|
#8
|
Member
Registered: May 2005
Distribution: Fedora Core Since version 3
Posts: 193
Rep:
|
one of my workstations has a gig, but after an hour I have 20 mb free, it just caches files
|
|
|
02-24-2006, 01:34 PM
|
#9
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491
Rep:
|
i concur.
dont worry about it....
|
|
|
02-24-2006, 01:41 PM
|
#10
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
Posting the output of `free` here would help clear things up.
|
|
|
02-24-2006, 01:42 PM
|
#11
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491
Rep:
|
i did suggest that to be fair....
no one listens. or answers my posts when i need help (not often of course) :-)
|
|
|
04-26-2006, 06:13 AM
|
#12
|
LQ Newbie
Registered: May 2005
Posts: 22
Original Poster
Rep:
|
well, I think, that I ran too many cs server at once (4-5), that is why they became laggy. Yes, i use -pingboost 3, but the issue isn't in the ping
Btw, the ram problem fixed it self and now i have minimum 1,5 gb ram  But still, sometimes the servers are laggy, i think that slackware isn't very suitable for game servers 
|
|
|
04-26-2006, 10:45 AM
|
#13
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
Quote:
Originally Posted by Tomanas
...Besides slackware is on 32 bit platform, so i need to make it 64...
|
64 bits consumes almost as twice of RAM, the chunks of memory for the processor are quite bigger
|
|
|
All times are GMT -5. The time now is 08:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|