News for hackers. Stuff that matters.
Re:The Linux kernel's inability to gracefully handle low mem... by LifeIsBio on Tuesday August 06, 2019 @01:37AM (#20622452)
I used to run into this problem all the time in grad school. Once a month or so I'd load a data set, do some dumb Python operation on it that took significantly more memory than I predicted, and BAM! I'd have to restart my laptop.

I just kinda assumed that's how computers worked until I got a Mac a couple of months ago...

The link suggests that there might be some default parameters you could change to protect against this behavior. Does anyone have any suggestions on what settings to change?

Re:The Linux kernel's inability to gracefully handle low mem... by kccqzy on Tuesday August 06, 2019 @03:18AM (#20622931)
A Mac is certainly better at handling these kinds of issues but it's by no means totally safe. It tries to compress memory and dynamically allocate more swap, but there's still a limit and you can see that if you accidentally run programs with way higher RAM requirement than you have. I've had multiple occasions where my program used so much RAM that even moving the cursor is an exercise in patience, never mind switching to a terminal window and typing commands to kill the process.
Re:The Linux kernel's inability to gracefully handle low mem... by savoytruffle on Tuesday August 06, 2019 @08:34AM (#20624540)
A Mac will keep creating virtual memory swap up to some limit (some multiple of the amount of physical RAM — can't quite remember, possibly 5x) and then it will produce a kind of vague dialog box saying "You've run out of application memory" with a list of applications to force quit.
Re:The Linux kernel's inability to gracefully handle low mem... by Avamander on Tuesday August 06, 2019 @06:25AM (#20623893)
But at least you can recover rather cleanly from the issue.