Re: swapfile query

From: Cy Schubert <Cy.Schubert_at_komquats.com>
Date: Sun, 20 Aug 2017 20:44:53 -0700
In message <201708210241.v7L2ftCf073614_at_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 <Cy.Schubert_at_cschubert.com>
FreeBSD UNIX:  <cy_at_FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.
Received on Mon Aug 21 2017 - 01:45:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC