From owner-freebsd-questions  Wed Dec  8  2:40: 7 1999
Delivered-To: freebsd-questions@freebsd.org
Received: from implode.root.com (root.com [209.102.106.178])
	by hub.freebsd.org (Postfix) with ESMTP id 9147B14D47
	for <freebsd-questions@FreeBSD.ORG>; Wed,  8 Dec 1999 02:40:04 -0800 (PST)
	(envelope-from dg@implode.root.com)
Received: from implode.root.com (localhost [127.0.0.1])
	by implode.root.com (8.8.8/8.8.5) with ESMTP id CAA19626;
	Wed, 8 Dec 1999 02:38:04 -0800 (PST)
Message-Id: <199912081038.CAA19626@implode.root.com>
To: JMS Internet <webmaster@jmsinternet.com>
Cc: freebsd-questions@FreeBSD.ORG
Subject: Re: Memory Usage 
In-reply-to: Your message of "Tue, 07 Dec 1999 14:18:58 PST."
             <4.2.2.19991207141345.00d7ef00@mail.jmsinternet.com> 
From: David Greenman <dg@root.com>
Reply-To: dg@root.com
Date: Wed, 08 Dec 1999 02:38:04 -0800
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

>My server runs on a dedicated 10mbps connection.  Unfortunately after 
>installing additional ram to help speed up the system I have had no luck 
>determining why the memory is used up as soon as I start the system.  The 
>system serves webpages only, so Apache and sendmail are really my only 
>programs running.  I've taken the following measurements from 'top' in case 
>it helps anyone, while running normally my system shows:
>784M Active	46M Inactive	129M Wired	34M Cache	8M Buffer	3M Free
>After stopping Apache (leaving approximately 20 megs of programs and system 
>utilities left running I get the following numbers)
>577M Active	46M Inactive	111M Wired	29M Cache	8M Buffer	236M Free
>
>My question mainly pertains to why the system is not 'freeing' up the 
>memory even though it is not actually doing anything.  I'm assuming that 
>could be the reason I'm having such a hard time with system 
>response.  Telnet sessions are almost impossible until Apache is killed, 
>and FTPing isn't much better.  Anyone's help would be greatly appreciated...

   FreeBSD keeps file data cached in memory whenever possible. I'd guess that
your slowness is due to network congestion (which goes away after you kill
off Apache) and not the system itself.

-DG

David Greenman
Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org
Creator of high-performance Internet servers - http://www.terasolutions.com
Pave the road of life with opportunities.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message