LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-26-2005, 04:59 PM   #1
Tomanas
LQ Newbie
 
Registered: May 2005
Posts: 22

Rep: Reputation: 15
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.
 
Old 11-26-2005, 06:40 PM   #2
comptiger5000
Member
 
Registered: May 2005
Distribution: Fedora Core Since version 3
Posts: 193

Rep: Reputation: 30
i'm not sure, but your services may just be claiming more ram
 
Old 11-26-2005, 07:36 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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.
 
Old 11-26-2005, 08:49 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,332

Rep: Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176
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.
 
Old 11-27-2005, 06:11 AM   #5
Tomanas
LQ Newbie
 
Registered: May 2005
Posts: 22

Original Poster
Rep: Reputation: 15
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..
 
Old 02-24-2006, 12:36 AM   #6
cramer
Member
 
Registered: Feb 2006
Distribution: Red Hat 9
Posts: 112

Rep: Reputation: 15
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.
 
Old 02-24-2006, 05:50 AM   #7
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
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'?
 
Old 02-24-2006, 07:57 AM   #8
comptiger5000
Member
 
Registered: May 2005
Distribution: Fedora Core Since version 3
Posts: 193

Rep: Reputation: 30
one of my workstations has a gig, but after an hour I have 20 mb free, it just caches files
 
Old 02-24-2006, 01:34 PM   #9
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
i concur.

dont worry about it....
 
Old 02-24-2006, 01:41 PM   #10
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Posting the output of `free` here would help clear things up.
 
Old 02-24-2006, 01:42 PM   #11
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
i did suggest that to be fair....

no one listens. or answers my posts when i need help (not often of course) :-)
 
Old 04-26-2006, 06:13 AM   #12
Tomanas
LQ Newbie
 
Registered: May 2005
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
Old 04-26-2006, 10:45 AM   #13
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
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
 
  


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
RAM: Does linux require as much ram as Windows XP? hanzj Linux - Newbie 48 04-18-2007 01:14 AM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 02:01 PM
Out of Ram problem. bbenz3 Linux - Software 5 10-10-2004 02:15 AM
Suse 8.2 RAM problem Twiggy794 Linux - Distributions 4 10-06-2003 12:59 AM
CPU/RAM Problem sakkie Linux - General 4 03-11-2002 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:00 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
Open Source Consulting | Domain Registration