User: Password:
|
|
Subscribe / Log in / New account

Go's memory management, ulimit -v, and RSS control

Go's memory management, ulimit -v, and RSS control

Posted Feb 17, 2011 11:11 UTC (Thu) by kov (subscriber, #7423)
Parent article: Go's memory management, ulimit -v, and RSS control

WebKit's JavaScriptCore also allocates 2GB for its usage on startup. A problem I discovered while debugging crashes in a buildbot was that Linux is not happy to overcommit too much by default, so in a machine having 2GB RAM plus less than a G swap the likelihood of an mmap failing for hitting the limmit increased by quite a bit when the tests were running. The limit is system-wide. I fixed it by disabling the overcommit limit. If Go goes that route I'm afraid we'll run into this problem more often, so disabling that limmit by default seems to be in order.


(Log in to post comments)


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