From owner-freebsd-questions Fri Apr 4 06:35:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA10364 for questions-outgoing; Fri, 4 Apr 1997 06:35:08 -0800 (PST) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA10356 for ; Fri, 4 Apr 1997 06:35:05 -0800 (PST) Received: (from root@localhost) by dyson.iquest.net (8.8.4/8.6.9) id JAA25607; Fri, 4 Apr 1997 09:34:47 -0500 (EST) From: "John S. Dyson" Message-Id: <199704041434.JAA25607@dyson.iquest.net> Subject: Re: RAM usage In-Reply-To: from "ee96199@tom.fe.up.pt" at "Apr 4, 97 10:10:52 am" To: ee96199@tom.fe.up.pt Date: Fri, 4 Apr 1997 09:34:47 -0500 (EST) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Since I moved from Linux to FreeBSD I was a bit surprised when I found out > that FreeBSD programs use far more memory that their similars in Linux. > > At the moment I have 16MB of RAM and with only 9 processes running > (3 gettys, syslogd, cron, inetd and system procs like swapper or init) > I only get (with top) 7MB of free memory particioned by 5MB for cache > and 2MB for buffer... > > The strange thing is that a 'ps aux' shows that this 9 processes use > 4MB. > > Is this normal? > Yes, note that the "cache" memory is almost the same as "free" memory in other OSes. FreeBSD aggressively caches file contents (both executables and data files.) John