Date: Wed, 09 Oct 1996 00:55:47 -0400 From: Dan Janowski <danj@netcom.com> To: freebsd-current@freebsd.org Subject: Re: 961006-SNAP comments Message-ID: <325B3053.167EB0E7@netcom.com> References: <199610082015.VAA01431@labinfo.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
[ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?325B3053.167EB0E7>