This is argument for the controller, not against it...
Posted Feb 18, 2011 1:08 UTC (Fri) by
giraffedata (subscriber, #1954)
In reply to:
This is argument for the controller, not against it... by khim
Parent article:
Go's memory management, ulimit -v, and RSS control
Yes, killing the process is almost always better than failing the allocation. ISTR seeing Linux do that sometimes for rlimit violation; maybe there's a switch for that.
Besides the fact that programmers just don't take the time to tediously check every memory allocation, there's not much they can do anyway if there is no memory available. It takes a pretty intelligent program to be able to function when the memory well is dry and adjust itself to the available memory. For programs that are that intelligent, there should be a way to do an explicit conditional memory allocation.
(
Log in to post comments)