mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +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) {
|
||||
|
||||
PWRN("Quota exceeded: %s", _label);
|
||||
PWRN(" memory for slab: %zu", _ds_slab.consumed());
|
||||
PWRN(" used quota: %zu", used_quota());
|
||||
PWRN(" ds_size: %zu", ds_size);
|
||||
PWRN(" sizeof(Ram_session_component): %zu", sizeof(Ram_session_component));
|
||||
PWRN(" quota_limit: %zu", _quota_limit);
|
||||
if (verbose) {
|
||||
PWRN("Quota exceeded: %s", _label);
|
||||
PWRN(" memory for slab: %zu", _ds_slab.consumed());
|
||||
PWRN(" used quota: %zu", used_quota());
|
||||
PWRN(" ds_size: %zu", ds_size);
|
||||
PWRN(" sizeof(Ram_session_component): %zu", sizeof(Ram_session_component));
|
||||
PWRN(" quota_limit: %zu", _quota_limit);
|
||||
}
|
||||
|
||||
throw Quota_exceeded();
|
||||
}
|
||||
|
@ -731,7 +731,7 @@ namespace Init {
|
||||
.ulong_value(0);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user