by hot_gril · 4y ago · 0 comments
* Which is usually much harder than just free mem. I recall macOS always being able to give a huge chunk of memory, I guess by rearranging on the fly, but it's very slow if you ask for a lot. And Linux just says no.
Linux might say yes, even if the memory isn't available. See notes of malloc:
"This means that when malloc() returns non-NULL there is no guarantee that the memory really is available." [0]