[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Swap space choice on a SSD <- Current best practice on?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


One of the things I do with an SSD is turn down "swappiness" to a 
minimum.

In /etc/sysctl.d/custom.conf

I put the following lines:

vm.swappiness = 0
vm.vfs_cache_pressure = 40
vm.dirty_background_ratio = 10
vm.dirty_ratio = 40

There are also a bunch of networking defaults for IPv4 and v6 for 
security and simplicity, but this is about SSD wear and swap space. A 
swap partition that is simply never written to never wears out.

I also put in ramdisk options for /tmp in /etc/fstab in order to 
reduce disk writes.

Curt-

- -- 
You may my glories and my state dispose,
But not my griefs; still am I king of those.
 --- William Shakespeare, "Richard II"

-----BEGIN PGP SIGNATURE-----

iHUEAREIAB0WIQTaYVhJsIalt8scIDa2T1fo1pHhqQUCXGTPAgAKCRC2T1fo1pHh
qd6BAP9S86HeF/lA69fSHACF1dPFLRRbM2rKMZUQkcVslWcCRgEAiBXnP41B+hUS
d/01FE0tUlqFFxh7z9axEEjGfOyMv6o=
=visj
-----END PGP SIGNATURE-----


Reply to: