mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 16:35:28 +00:00
cli_monitor: limit request yields to children
Don't request resource yieldings from children that are in a resource request themselfs to lower needless system load.
This commit is contained in:
parent
d4922f9071
commit
e559fb7df9
@ -134,6 +134,9 @@ class Child : public List<Child>::Element, Genode::Child_policy
|
||||
*/
|
||||
void yield(size_t amount, bool greedy)
|
||||
{
|
||||
if (requested_ram_quota())
|
||||
return; /* resource request in flight */
|
||||
|
||||
char buf[128];
|
||||
snprintf(buf, sizeof(buf), "ram_quota=%zd", amount);
|
||||
_withdraw_on_yield_response = greedy;
|
||||
|
Loading…
x
Reference in New Issue
Block a user