LWN.net Logo

Zeuthen: Writing a C library, part 1

Zeuthen: Writing a C library, part 1

Posted Jun 28, 2011 20:00 UTC (Tue) by dlang (✭ supporter ✭, #313)
In reply to: Zeuthen: Writing a C library, part 1 by dgm
Parent article: Zeuthen: Writing a C library, part 1

yes, you can get errors with malloc when you have overcommit enabled.

however the normal type of OOM problem you have when overcommit is turned on doesn't happen when you do a malloc, but instead when you attempt to write to a page that was shared and now cannot be (requiring additional memory pages)


(Log in to post comments)

Zeuthen: Writing a C library, part 1

Posted Jul 8, 2011 1:41 UTC (Fri) by kabloom (guest, #59417) [Link]

Yes. ulimit is one way to get allocation errors even with overcommit enabled.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds