brent timothy saner on 11 Jul 2015 10:00:58 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] swappiness and ssd |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 (responses inline) On 07/11/2015 12:08 PM, Keith C. Perry wrote: (SNIP) > Doesn't a swappiness of 80 mean you are swapping > /more/ than when the system is set to 60? https://en.wikipedia.org/wiki/Swappiness explains a fair bit of the concept behind swappiness, but generally the higher the number, the more the system is going to try to use swap space rather than physical memory. for more in-depth, http://askubuntu.com/questions/184217/why-most-people-recommend-to-reduce-swappiness-to-10-20 has some good information (which is surprising for askubuntu.com, but i digress...) the swappiness number is a percentage (*roughly*) of your unused RAM. i.e. swappiness = 30, then start swapping when the physical memory is 70% consumed. Now would be a good time to mention you should actually use vm.swappiness = 1 rather than vm.swappiness = 0 if you're using a kernel >= 3.5.x - some intelligent optimizations have been done to make 1 behave more like what 0 was previously used for. > Also, if that is the case, does that imply you have to run fstrim more? nah, running fstrim regularly (assuming it's on a disk that doesn't perform its own collection routines, and some do) will be enough. see https://wiki.archlinux.org/index.php/Solid_State_Drives for some great info on this. plus write lifetimes on SSD's have gotten WAY better as well. > I'm an XFS user and thankfully realtime discarding is available if I am > ok with the performance penalty and I don't want to use batch mode. > Something to remember for my next server build which will use an SSD > for the system drive. i use RAID-1 SSD for / on my box with ext4 (created with tune2fs -o trim), and it's definitely a boon (i mount /root, /home, and /opt on platters as that's where the bulk of my data-at-rest goes). -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCgAGBQJVoUu0AAoJEIwATC+TSB9rmiAP/jRYwLzchDpfVSM8Bb8WVdxH yoU846fFrGWiI6F0RvXxg2U7ywxg5kHAcRlD5T0zjVNWfTgYrLqeCFrggYHUwTZI 2n7xxnHFRV0J7qXEeSVw3WPZfLaTdS8D1Iky1Q7dRHxsbxz2dqs1ZWtkzHLSn3Go OHCeGnxyZq8bsokwrlRk52KV50zxP4v9XkhjGyu+2p6su19LctnUyxfhBY0AgzF2 IGZhcOQw/bL1sWYB8V0h90+cWiGxrJetj+JANcdExsybDNM0LRcKsnugJJXgHHkA +hSZj4B8udOoymu1I4aK70ynpKwFJwFBrF/gp2ZGuMhvuiPEuG/X+vcmlXrZnYiw S5eZzg26EhDoV+nM3YzVF3SqwR8PrfdVgWul1857bn6SepSe9I1QDISRqRrBkC2v 83m6b584++//RoDMEyrEjnI0zTW6KHdGxAVTjFjnNhOyroQGunBvn9RyqNja7J87 OzYQQAiwr8dFfZFZn5Wrlo+JdNmmx3mIFJC6liCbiF6pPRSPy6pZaksXMn2JNYB5 ALSKcTAMftUDPBqNsNFPcUubkdCjI4ONkD4d1vxd3DVykvQEZhBvFtxK2xJGFPlV M4ERnmLi4S2RymCS9EUxnasnc/odrJM4gBKt3BRahwoTuzTPpnlhG8iLbxmEYOM8 WpRYrLulvzlenLMghouF =zbz0 -----END PGP SIGNATURE----- ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug