mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-01 00:45:29 +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)
|
void yield(size_t amount, bool greedy)
|
||||||
{
|
{
|
||||||
|
if (requested_ram_quota())
|
||||||
|
return; /* resource request in flight */
|
||||||
|
|
||||||
char buf[128];
|
char buf[128];
|
||||||
snprintf(buf, sizeof(buf), "ram_quota=%zd", amount);
|
snprintf(buf, sizeof(buf), "ram_quota=%zd", amount);
|
||||||
_withdraw_on_yield_response = greedy;
|
_withdraw_on_yield_response = greedy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user