2 ms·
Get a good amount of swap on ssd, the default 2GB on most distros is not nearly enough to save you when you really need swapping. IIRC you can even make it spar
by aulin 5y ago
Get a good amount of swap on ssd, the default 2GB on most distros is not nearly enough to save you when you really need swapping. IIRC you can even make it sparse to not occupy disk space when you're not using it.
- lillecarl 5y ago> IIRC you can even make it sparse to not occupy disk space when you're not using it. While this sounds great, not allocating storage for swap means either you'll have that space unallocated or you won't have any swap because your system is full. Administrative overhead is simpler though, and sparse files don't have any performance overhead in later kernels (Citation needed, read somewhere on some wiki)
- aulin 5y agoI have a couple of sparse swap files handy for when I know I'll need them. And it happens with some very specific and predictable use cases. Usually it's when I need to load some big timeseries csv files from pandas and parse a datetime index. Or when I need to process big images. It's useful to be able to attach some additional swap when you need it and drop it afterwards. For everyday use I never even exceed 16GBs... Guess everyone has different needs, but there is no way it swaps over 32GB for normal applications, even taking into account overcommitting.