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

Toward reliable user-space OOM handling

Toward reliable user-space OOM handling

Posted Jun 10, 2013 15:57 UTC (Mon) by mjg59 (subscriber, #23239)
In reply to: Toward reliable user-space OOM handling by alankila
Parent article: Toward reliable user-space OOM handling

Say I want to view a 20000x20000 image by clicking a link in Firefox. That's going to be a 1.5GB bitmap. My system has enough RAM to do that, so I'd expect it to succeed. Except that that means that Firefox would have had to declare that it needs at least 1.5GB of memory up front, which would prevent it from starting on systems with less RAM than that.


(Log in to post comments)

Toward reliable user-space OOM handling

Posted Jun 10, 2013 20:14 UTC (Mon) by alankila (guest, #47141) [Link]

There are classes of programs that can't determine in advance how much memory they will need. I know that. But I would prefer these tasks only to be the kind of tasks who can get NULL out of malloc.


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