From owner-freebsd-questions@FreeBSD.ORG Thu Jan 13 20:30:38 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4C1416A4CE for ; Thu, 13 Jan 2005 20:30:38 +0000 (GMT) Received: from smtp7.wanadoo.fr (smtp7.wanadoo.fr [193.252.22.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5325D43D31 for ; Thu, 13 Jan 2005 20:30:38 +0000 (GMT) (envelope-from atkielski.anthony@wanadoo.fr) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0712.wanadoo.fr (SMTP Server) with ESMTP id 73F0E1C000BF for ; Thu, 13 Jan 2005 21:30:37 +0100 (CET) Received: from pix.atkielski.com (ASt-Lambert-111-2-1-3.w81-50.abo.wanadoo.fr [81.50.80.3]) by mwinf0712.wanadoo.fr (SMTP Server) with ESMTP id 4AFBC1C000AC for ; Thu, 13 Jan 2005 21:30:37 +0100 (CET) Date: Thu, 13 Jan 2005 21:30:36 +0100 From: Anthony Atkielski X-Priority: 3 (Normal) Message-ID: <1493134889.20050113213036@wanadoo.fr> To: freebsd-questions@freebsd.org In-Reply-To: <20050113204937.D802@kenmore.kozy-kabin.nl> References: <20050113204937.D802@kenmore.kozy-kabin.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Memory Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 20:30:38 -0000 Colin J. Raven writes: CJR> I always understood in FreeBSD that "Free Memory is wasted memory" In any operating system, free memory is wasted memory. But if you suddenly need more memory and you don't have it, system performance will slide right down into the abyss, no matter which OS you are using ... and very often it's cost-effective to "waste" some extra memory to handle peak loads. Memory's cheap, anyway. CJR> I compared this to the 5.3-RELEASE box of a colleague. CJR> CJR> AMD Athlon (1800-something-or-other) also 1GB RAM CJR> CJR> Mem: 467M Active, 224M Inact, 201M Wired, 33M Cache, 111M Buf, 71M Free CJR> Swap: 4096M Total, 1672K Used, 4094M Free CJR> CJR> Other than the fact that swap doesn't add up (or doesn't seem to) the CJR> box of my colleague seems to have a more "sensible" (classic) amount of CJR> free memory. No, he doesn't have enough memory. A good operating system (which of course would include FreeBSD) can make the best of the memory it has under load, by judicious use of the swap file(s), but even the best swapping algorithms are no match for more RAM. You can never have too much memory. CJR> Is there something I can do in order to "optimize" - which in this CJR> case paradoxically would seem to mean "reduce" the amount of free CJR> memory? General rules: Reducing memory is never an optimization. Increasing memory never reduces performance. -- Anthony