News for hackers. Stuff that matters.
Re:Once upon a time, memory allocators made sense by kbart on Monday January 18, 2016 @07:39AM (#10924041)
Hm, do you have any test/references on that? I always thought that in such cases system simply swaps memory to free some RAM.
Re:Once upon a time, memory allocators made sense by amadvance on Monday January 18, 2016 @07:45AM (#10924057)
Google for Linux OOM Killer (Out Of Memory Killer).

It's really annoying, your application may get killed without any way to react, even to just print a "Low memory" error.

Re:Once upon a time, memory allocators made sense by feld on Monday January 18, 2016 @06:03PM (#10927665)
The entire concept of the Linux OOM Killer is asinine
Re:Once upon a time, memory allocators made sense by andreasvc on Monday January 18, 2016 @07:48AM (#10924068)
It is a well known design feature (I would call it a flaw) of Unix/Linux which makes forking processes with copy-on-write memory possible.

You can run out of both physical memory and swap space. Or your system is swapping is so heavily that, for all practical purposes, the system becomes unusable.

Re:Once upon a time, memory allocators made sense by nickpsecurity on Monday January 18, 2016 @12:25PM (#10925559)
Probably one of the best examples of my claim that UNIX has bad architecture. A well-designed system will either prevent or catch this sort of thing with apps able to detect and/or recover from it without geniuses writing them. Then, there's UNIX/Linux...

I should probably add this to my list of non-security reasons (or an angle at least) for using Nizza-style architecture [1] where critical functionality is taken out of Linux part to run on microkernel or small runtime. Maybe even potential to go further and have such apps that monitor for this sort of thing with a signal to apps that works across platforms. Not just this design flaw, but potentially others where app doesn't have necessary visibility. What you think?

[1] http://genode-labs.com/publications/nizza-2005.pdf

Re:Once upon a time, memory allocators made sense by TimJYoung on Monday January 18, 2016 @08:44AM (#10924307)
Coming from a Windows viewpoint, I would have thought the same thing. AFAIK, under Windows you just end up hitting the system swap file. Of course, you can start getting into a situation where physical memory is so low that everything grinds to a (ahem, virtual) halt....
Re:Once upon a time, memory allocators made sense by caf on Monday January 18, 2016 @04:05PM (#10926931)
Yes, that's the first response. "running out of physical pages" here in the GP really means "running out of free or reclaimable pages and running out of swap".