Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
singular
on Nov 8, 2013
|
parent
|
context
|
favorite
| on:
How to fill 90% of free memory?
Would a malloc (alone) work? Doesn't it typically act as if the memory were allocated but not actually use physical RAM until the data is filled?
0x0
on Nov 8, 2013
[–]
I'm pretty sure that even if you malloc an enormous amount of memory, it will occupy close to no resources as long as the contents are not touched. Also related: "overcommit memory".
e12e
on Nov 8, 2013
|
parent
[–]
Linux is a bit strange when it comes to memory allocation, see eg:
http://www.win.tue.nl/~aeb/linux/lk/lk-9.html#ss9.6
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: