Upgrade session before quota exceedes
Norman Feske
norman.feske at ...1...
Thu Aug 25 16:32:03 CEST 2016
Hi Denis,
> Alloc avail: 0
> [init -> rm_stresser] Round 5
> Quota exceeded! amount=61440, size=8192, consumed=61440
> Uncaught exception of type 'Genode::Allocator::Out_of_memory'
> Warning: abort called - thread: entrypoint
>
> Is there an easy way to upgrade a session's RAM quota before allocating
> objects with no available RAM?
you did everything correctly. The problem is actually that core's RM
service misses to catch the 'Allocator::Out_of_memory' exception. The
attached patch rectifies this. In your test program, you need to catch
'Region_map::Out_of_metadata' instead of 'Allocator::Out_of_memory'.
With this minor change, the test passes.
Thank you very much for pointing us to this problem and for the
super-convenient test case! :-)
Cheers
Norman
--
Dr.-Ing. Norman Feske
Genode Labs
http://www.genode-labs.com · http://genode.org
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: core_rm_quota.patch
Type: text/x-diff
Size: 881 bytes
Desc: not available
URL: <http://lists.genode.org/pipermail/users/attachments/20160825/cbb4e6a7/attachment.patch>
More information about the users
mailing list