From owner-freebsd-questions@FreeBSD.ORG Fri Sep 29 16:08:03 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 54BC916A519 for ; Fri, 29 Sep 2006 16:08:03 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1D3243D6D for ; Fri, 29 Sep 2006 16:08:02 +0000 (GMT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id k8TG6Vvk001044; Fri, 29 Sep 2006 12:06:31 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id k8TG6V6E001043; Fri, 29 Sep 2006 12:06:31 -0400 (EDT) (envelope-from jerrymc) Date: Fri, 29 Sep 2006 12:06:31 -0400 From: Jerry McAllister To: Chris Message-ID: <20060929160631.GE657@gizmo.acns.msu.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: FreeBSD Questions Subject: Re: Swap Size Importance? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2006 16:08:03 -0000 On Fri, Sep 29, 2006 at 08:52:58AM -0700, Chris wrote: > As a standard practice, I've always configured swap file to be double > the size of real ram split across system and data disk. For example, > 8gb on da0 and 8gb on da1 if the system has 8g real ram. In practice, > In 7 or 8 years, I've never seen swap used for anything but a few k > of inactive processes and I would imagine if real active process > swapping occurred, it would be an immediate indicator that the system > that isn't responsive enough for use anymore and requires upgrade or > tuning. Can't run a website process off disk and keep anyone coming > to the site ;-). (BTW, I'm talking only about high end servers, not > test boxes where I've seen lots of swapping). > > I'm at the point of attempting my first gvinum software raid-5 and > realized, I need the entire disk storage of all three non-system > drives to avoid pulling an 8gb chunk out of the drive sizes. The > configuration is one scsi 72g system disk and 3 that will be used for > the raid volume. I should mention I turn off dumps, haven't found the > use for that in a production server since it should not be rebooting > or it's back in the shop and another box is taking it's place. > > Is there any shortfall in performance or reliability to running > production with swap equal in size to the 8gb of system memory? I > can't think of any but don't want to make a hard to correct mistake > once this thing goes in. It really depends on the number and size of processes you will be running. It you have a large memory and generally run a mix of processes that will totally fit in memory, then it probably doesn't doesn't matter much. But, if you run enough to actually cause paging - which goes to swap space - then it becomes an issue. Also, I think some things that get pulled to execute often can get left in swap space and accessed more quickly that all the way from main disk each time. eg the system keeps track of what it has in swap and it is more efficient to read from swap - less overhead. But someone else should know more about that than I. ////jerry > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"