News for hackers. Stuff that matters.
Re:Linux Touchpad Like MacBook Update: Touchpad Gestures Now... by aulin on Wednesday December 15, 2021 @02:13AM (#29562956)
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.
Re:Linux Touchpad Like MacBook Update: Touchpad Gestures Now... by carlhjerpe on Wednesday December 15, 2021 @06:49AM (#29564687)
> 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)

Re:Linux Touchpad Like MacBook Update: Touchpad Gestures Now... by aulin on Wednesday December 15, 2021 @10:52AM (#29567657)
I 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.

Re:Linux Touchpad Like MacBook Update: Touchpad Gestures Now... by carlhjerpe on Wednesday December 15, 2021 @11:05AM (#29567878)
Where do you put the swap? Do you move data off of your drive(s) to make space for the swap?
Re:Linux Touchpad Like MacBook Update: Touchpad Gestures Now... by aulin on Wednesday December 15, 2021 @11:49AM (#29568412)
I usually have either free space or some cruft I can throw away if I really need to free some.