mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-01 23:20:55 +00:00
core: lower default verbosity when quota exceeds
* only print quota exceeded message and statistic when explicitly enabled * turn init's error message "cannot respond to request" into a warning
This commit is contained in:
parent
30bfc63b63
commit
6ca8a41232
@ -123,12 +123,14 @@ Ram_dataspace_capability Ram_session_component::alloc(size_t ds_size, bool cache
|
|||||||
*/
|
*/
|
||||||
if (used_quota() + SBS + ds_size > _quota_limit) {
|
if (used_quota() + SBS + ds_size > _quota_limit) {
|
||||||
|
|
||||||
PWRN("Quota exceeded: %s", _label);
|
if (verbose) {
|
||||||
PWRN(" memory for slab: %zu", _ds_slab.consumed());
|
PWRN("Quota exceeded: %s", _label);
|
||||||
PWRN(" used quota: %zu", used_quota());
|
PWRN(" memory for slab: %zu", _ds_slab.consumed());
|
||||||
PWRN(" ds_size: %zu", ds_size);
|
PWRN(" used quota: %zu", used_quota());
|
||||||
PWRN(" sizeof(Ram_session_component): %zu", sizeof(Ram_session_component));
|
PWRN(" ds_size: %zu", ds_size);
|
||||||
PWRN(" quota_limit: %zu", _quota_limit);
|
PWRN(" sizeof(Ram_session_component): %zu", sizeof(Ram_session_component));
|
||||||
|
PWRN(" quota_limit: %zu", _quota_limit);
|
||||||
|
}
|
||||||
|
|
||||||
throw Quota_exceeded();
|
throw Quota_exceeded();
|
||||||
}
|
}
|
||||||
|
@ -731,7 +731,7 @@ namespace Init {
|
|||||||
.ulong_value(0);
|
.ulong_value(0);
|
||||||
|
|
||||||
if (avail_slack_ram_quota() < requested_ram_quota) {
|
if (avail_slack_ram_quota() < requested_ram_quota) {
|
||||||
PERR("Cannot respond to resource request - out of memory");
|
PWRN("Cannot respond to resource request - out of memory");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user