From owner-freebsd-current Tue Oct 8 22:01:20 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA05918 for current-outgoing; Tue, 8 Oct 1996 22:01:20 -0700 (PDT) Received: from terd.triskelion.com (root@danj.port.net [207.38.236.113]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id WAA05911 for ; Tue, 8 Oct 1996 22:01:16 -0700 (PDT) Received: from fnur.triskelion.com (fnur.triskelion.com [180.200.1.3]) by terd.triskelion.com (8.7.5/8.6.12) with SMTP id AAA00395 for ; Wed, 9 Oct 1996 00:55:48 -0400 (EDT) Message-ID: <325B3053.167EB0E7@netcom.com> Date: Wed, 09 Oct 1996 00:55:47 -0400 From: Dan Janowski Organization: Triskelion Systems, Inc. X-Mailer: Mozilla 2.01 (X11; I; FreeBSD 2.1.0-RELEASE i386) MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: 961006-SNAP comments References: <199610082015.VAA01431@labinfo.iet.unipi.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [ notes on swap calculations ...] Swap is an inverse function to system memory, isn't it? Based on some "assumptions" we could have a formula: R = physical ram T = total memory size "useful" for a: minimal system, X system, developer system Sm = Minimum amount of swap no matter how much RAM one has SM = (what is the maximum supported swap size?) Maximum "useful" swap quantity D = Disk size Dp = "Normal" percentage of disk to consume for swap DpM = Maximum percentage of disk space to be consumed (for small disks) --- Calculate --- swap = max( ( T - R ), (D * Dp) ) swap = min( swap, (D * DpM) ) swap = max( max( swap, Sm ), SM) We could do something similar with var partitions (all those logs...). Dan -- danj@netcom.com Dan Janowski Triskelion Systems, Inc. Bronx, NY