Print a (rate-limited) warning when UMA zone is full.
Robert N. M. Watson
rwatson at FreeBSD.org
Thu Nov 29 11:42:35 UTC 2012
On 29 Nov 2012, at 11:05, Pawel Jakub Dawidek wrote:
> On Thu, Nov 29, 2012 at 10:56:32AM +0000, Robert N. M. Watson wrote:
>> On 29 Nov 2012, at 10:53, Pawel Jakub Dawidek wrote:
>>> Agreed, especially if reaching those limits is expected by the
>>> administrator and he is not going to increase them. But in this case it
>>> would be even better to provide a way to turn them off.
>>
>> I wonder if each instance of a 'ratecheck' should come with an associated tunable/sysctl pair to allow suppression to be easily configured. I almost find myself wondering if we want something that looks a bit like our static SYSCTL/VFS_SET/etc declarations:
>>
>> static RATECHECK(..., "foo.bar.baz", ...);
>>
>> Unfortunately, the tunable/sysctl mismatch makes it slightly awkward since you'd need to declare both, but I think probably worthwhile.
>
> I'm afraid you lost me here. Tunable/sysctl name is not related in any
> way with the warning we are printing. How can you tell
> kern.ipc.maxsockets affects limits of eight different UMA zones?
> Also rate-limiting is not only used to print warnings, current
> ppsratecheck() function just answer the question if the limit should be
> enforced (something is happening too frequently) or not.
I meant something a bit different -- I was concerned with a per-instance sysctl/tunable to silence the warnings. For embedded systems or systems running at peak load, occasional allocation failures may be the steady state, in which case tuning down the rate of message printing, or simply disabling them rather than spamming logs, may be desirable.
Robert
More information about the freebsd-arch
mailing list