swapfile query

David Chisnall theraven at FreeBSD.org
Sat Aug 19 17:28:31 UTC 2017


On 19 Aug 2017, at 17:54, Cy Schubert <Cy.Schubert at komquats.com> wrote:
> 
>> 3. should total swap be 1x 2x or some other multiple of RAM these days?
> 
> Depends. If you're running some kind of database server or OLTP 
> application. Some vendors recommend no swap whatsoever while others 
> recommend some. What does your application vendor recommend?

The main advantage of swap these days (on machines with that sort of amount of RAM) is to allow you to keep some file-backed memory objects in memory in preference to leaked (or very cold) heap memory.  

David



More information about the freebsd-current mailing list