*BSD News Article 58063


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!usc!news.cerf.net!news.lainet.com!sassan
From: sassan@lainet.com (Sassan Behzadi)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: How to check memory usage
Date: 4 Jan 1996 22:03:32 GMT
Organization: LA Internet
Lines: 28
Message-ID: <4chirk$1ca@lainet2.lainet.com>
NNTP-Posting-Host: lainet1.lainet.com

We have a free BSD server (2.0.5) running Netscape's communications
Web server and overall it does pretty well. Netscape allows multiple 
httpd daemons to be run simultaneously to increase performance.
Obviously the more you run the more memory it uses.

30 daemons had been the limit (anything more than that would fail
to start with "fork failed - no resources") so we upgraded the 32MB
system to 64MB. The system sees the additional memory and so does
the OS (at least during the bootup), but even with the addition of
32MB we can only go up to 35 daemons. It just doesn't add up.  Each 
daemon takes up only 500k of memory and the system doesn't run much
of anything else. The system has 100MB of swap space allocated so
I don't think it's running out of swap.

Now the questions? Does this make sense? How do I check where the
memory is going? (vmstat may be a good start - any hints on how
best to interpret its output)? 

I'm willing to add more memory - but I have feeling the problem
lies somewhere else.

Thanks,

Sassan Behzadi

sassan@lainet.com