LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-17-2005, 06:58 PM   #1
mvvilleza
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Memory Usage


Hi everyone,

I just installed a RedHat 9 server where on the components selection, i choosed to install Development tools and removed Text based internet, Windows File Server and another one i cannot remember but definitely not needed in my configuration.

I have a Celeron 300 PC w/ 64 MB memory. Partitioned my 4 GB hard disk to 100 MB of /boot partition, 128-256 MB swap and the rest for /. I used this PC as a RAS server and installed an Equinox SST adapter w/ a 16 port module but as of now we're just using 8 ports bec. i'm currently sizing up the server. I installed mgetty included in the RedHat 9 CD and ppp-2.4.3.

Here's the question: I noticed that w/o any load or dialup connections my free memory is about 32 MB. After 8 dial up connections are accepted, the free memory reduced up to 8 MB and while the connections are released the 8 MB free memory does not change. But after i restarted Linux the free memory was back to 32 MB.

Is this behaviour natural on Linux or for PPP only? How does Linux utilize/manages memory?
 
Old 02-17-2005, 07:42 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
from: http://sourcefrog.net/weblog/softwar.../free-mem.html
(google is your friend)

"The short answer is that you should never worry about the amount of free memory on Linux. The kernel attempts to keep this slightly above zero by keeping the cache as large as possible. This is a feature not a bug."
 
Old 02-17-2005, 09:13 PM   #3
mvvilleza
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, is this true also for Unix? Since Linux is a clone of Unix?
 
Old 02-27-2005, 06:32 PM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
No, this is not true for "unix in general"

Historically (System V/BSD) Unix uses a "fixed" buffer size (compiled into the kernel or configured on bootup). Modern unix variants and AIX are able to allocate buffer cache dynamically.
 
  


Reply



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
Memory Usage novice26 SUSE / openSUSE 2 03-31-2005 04:28 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM
Memory usage acid_kewpie Linux - General 6 07-30-2001 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:59 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