From owner-freebsd-current@freebsd.org Mon Aug 21 03:45:00 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8790CDE430B for ; Mon, 21 Aug 2017 03:45:00 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5C2E682FE6 for ; Mon, 21 Aug 2017 03:45:00 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id jde2dWL43M9gtjde3do7Dr; Sun, 20 Aug 2017 21:44:58 -0600 X-Authority-Analysis: v=2.2 cv=a+JAzQaF c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=KeKAF7QvOSUA:10 a=Lyp7P1eCAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=SVdfwo_tPkDUg8UeaIgA:9 a=CjuIK1q_8ugA:10 a=us27MLTdiSMbcMS-4tZE:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 0CC1613F; Sun, 20 Aug 2017 20:44:54 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id v7L3irlV041327; Sun, 20 Aug 2017 20:44:53 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201708210344.v7L3irlV041327@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Jamie Landeg-Jones cc: tech-lists@zyxst.net, freebsd-current@freebsd.org Subject: Re: swapfile query In-Reply-To: Message from Jamie Landeg-Jones of "Mon, 21 Aug 2017 03:41:54 +0100." <201708210241.v7L2ftCf073614@donotpassgo.dyslexicfish.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 20 Aug 2017 20:44:53 -0700 X-CMAE-Envelope: MS4wfM8SuPdw1Pfr1r+aou4/Bl1V34rjpm/KUG2FYRPoc+4IwJi8yQes82kZoKvLKQIukmOMK6/rVgYqPCU8LqhQJarqsFPn9tSKcpDepzldYkhUKULjSnv7 QaY7A5Mj73a41IoWf77DgWWQ394UiMSFtHarmoaz+ONj4g048h2rc0PCE1XBZhIJD30UE9UW90gsFr7/f/zKs98CKo1gXwri8JfbUa6H4OVyoc5F9Wrt52w4 XPhMAbiuKgW2Opxjy95eu0eSkeP6oopi2/X9f7axVYs= X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 03:45:00 -0000 In message <201708210241.v7L2ftCf073614@donotpassgo.dyslexicfish.net>, Jamie La ndeg-Jones writes: > > 3. should total swap be 1x 2x or some other multiple of RAM these days? > > According to tuning(7) : > > | SYSTEM SETUP - DISKLABEL, NEWFS, TUNEFS, SWAP > | The swap partition should typically be approximately 2x the size of > | main memory for systems with less than 4GB of RAM, or approximately > | equal to the size of main memory if you have more. Keep in mind > | future memory expansion when sizing the swap partition. Generally that's the current recommendation today. It used to be 4x RAM on SunOS and other "early" UNIX in the 90's and as workloads became less time sharing oriented and more OLTP and DBMS oriented the recommendations have shifted to more RAM with less swap (imagine a database swapping). Typically this is a good starting point and generally a sound recommendation. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.