Evening, kids.
I've had a wee .pet kicking around the kennels for a few years now. I can't remember who put it together now, except for the fact it was one of the old crew from the Murga forum.
It's a basic 'swappiness' .pet, putting the sysctl.conf file into /etc, and the run script into /root/Startup, and set to '10'. Most of you are probably aware that all Linux distros ship with this set at 60 by default, OOTB......which for most folks nowadays is way too high, especially as RAM amounts are steadily creeping ever upwards. The more RAM you have installed initially, the less you need to use swap. Simple, really.
There's also been quite a bit of discussion around the use of swap files recently (as opposed to swap partitions). Several weeks ago, I started writing some scripts'n'stuff for a GUI-based 'Swappiness' Control, but I've had rather a lot on my plate recently, so they've just been sitting there, half-finished. I had some spare time this evening, so I thought I'd get this thing thrown together at long last!
When launched, you get a wee YAD GUI, with a drop-down selector. This lets you set your "swappiness" level anywhere from 10 all the way up to 90 (if you're that mad!), in steps of 10. When OK'd, you then get a small gxmessage box appear to confirm what you've just selected.
.....followed by:-
It's nowt special, but I just wanted to make another of those necessary 'chores' a bit easier for everyone, especially our noobs. As it comes, it's set to the default, OOTB amount of 60. This will want setting considerably lower for those of us with 16GB of RAM or more.....usually, around 10 or 20 at most. Higher settings are kind of "de facto" for older, resource-challenged hardware, but the way this is put together, it's very quick & easy to experiment and find out what suits you.
I've attached the .pet to this post, for anyone who might wish to try it out.... You'll find it at Menu->System->'Swappiness' Control!
Hope it's useful for some of you.....
Mike.