From owner-freebsd-questions Sun Sep 15 23:13:08 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA13972 for questions-outgoing; Sun, 15 Sep 1996 23:13:08 -0700 (PDT) Received: from alpo.whistle.com (s205m1.whistle.com [207.76.205.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA13966 for ; Sun, 15 Sep 1996 23:13:05 -0700 (PDT) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.7.5/8.7.3) with SMTP id XAA12099 for ; Sun, 15 Sep 1996 23:10:30 -0700 (PDT) Message-ID: <323CEEFC.2781E494@whistle.com> Date: Sun, 15 Sep 1996 23:09:00 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0b6 (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: questions@freebsd.org Subject: Trimming RAM usage on FreeBSD box Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have a small FreeBSD box that has 8MB of ram it is running a few servers that seem to use all it's RAM so I end up thrashing to the point that it becomes unusable.. (login takes about 15 minutes) We've already tackled sendmail so that it doesn't fork 6000 processes when it get's new conections, but things like apache seem to not be able to work without forking processes, and of course CGI scripts keep forking off and execing, etc. there area couple of things people might be able to help me with.. 1/ I rememeber some talk of a much more efficient http daemon, that didn't need to fork off all these processes, 2/ Has anyone recently run a system with "TRIMMED" libraries.. By this I mean, stipping out NIS and locale and any other bits that are unlikely to be needed in a small dedicated system.. does it still work? anyone with ideas about tuning this box for RAM usage or even on how to actually work out where all the RAM is going would be most welcome.. P.s. Under MACH there was a utility that allowed you to find out the VM regions allocated to a process (from outside the process) and what all these regions were being used as (read/write/ exec etc.) knowledge of such a program under freebsd would be useful too. hmmmm I just found that one..it's called /proc :) julian