News for hackers. Stuff that matters.
Re:In defence of swap: common misconceptions by pmoriarty on Monday June 08, 2020 @11:34PM (#23463421)
I have a pretty old, slow laptop on which I've been running Gentoo for a long time, so I'm frequently recompiling a lot of software. Over the years, as software has gone from being bloated to being insanely bloated (qt-webkit, firefox, and rust: I'm looking at you!), the "only" 8 gigs of memory that my system has just sometimes isn't enough, so adding swap has let me stretch the life of my system.

Sure, huge compiles are much slower when they hit swap, but at least it's possible to run them with swap, while it would be impossible for me to do so without.. at least until I can afford to get a new computer which can fit more memory.

Re:In defence of swap: common misconceptions by gen220 on Monday June 08, 2020 @11:55PM (#23463498)
Surely, the solution is to acquire a whole bunch of old, slow laptops and hook them together as a build cluster! :)

Old thinkpads (2012ish) run for a hundred bucks and some change, and some of them support up to 32 GB of ram, IIRC. The battery is a generic and replaceable component, too. They can last a lifetime! Or at least until FF et al renders 32 GB insufficient.

Re:In defence of swap: common misconceptions by capableweb on Tuesday June 09, 2020 @03:57AM (#23464675)
Now I don't know pmoriarty's situation at all and don't want to assume anything either, but, if someone has a "pretty old, slow laptop on which I've been running Gentoo for a long time" without upgrading, there is surely a reason for that. Suggesting that "hundred bucks" is something you can spend just to get faster build times might work for a well paid developer in the 1st world but many developers are not well paid so cannot afford the luxury of upgrading their machine willy nilly like that.

While upgrading for money works for some, less bloated software would work for everyone + no need to spend money to get acceptable build times + even if you have a super computer, you compilation times gets a lot faster. So aiming for less bloated software feels like a more noble goal than trying to convince people to upgrade their hardware.

Re:In defence of swap: common misconceptions by gen220 on Tuesday June 09, 2020 @12:15PM (#23467902)
Hey, I'm sorry, I didn't mean to come off making assumptions or prescribing advice. My intent was to illustrate that "new computer" doesn't have to mean "shiny, expensive, newly-manufactured computer". On reflection, my words do reflect my biases that investing one-to-two hundred dollars in such a setup wouldn't be a cause of much concern for me, and I regret that I assumed likewise for the readers.

I totally agree with you that less bloated software should be our goal. Although, realistically, if you're compiling a modern web browser you don't have much of a choice in the matter (unfortunately). I don't think that reducing bloat by an order of magnitude (i.e. a difference that would impact compile times) is on the radar of Chromium or FF.

Re:In defence of swap: common misconceptions by psexec on Tuesday June 09, 2020 @01:23AM (#23463898)
Since you're a gentoo user, you probably already know that, but have you tried using compressed memory like zswap? I find that I very rarely swap out to disk since I enabled it (and tuned to my needs):

https://wiki.archlinux.org/index.php/Zswap