Re: [PATCH] Warn if we run out of swap space

Avi Kivity
2009-06-03T17:25:58Z

Pavel Machek wrote:
>>> Perhaps careful use of faciliy levels would suffice for a), but I
>>> expect that some new tagging scheme would be more practical.
>>>
>>>
>> I thought dmesg was an unreliable channel which can overflow. It's also
>> prone to attacks by spell checkers.
>>
>
> Well, I believe that any used-enough channecl will eventually
> overflow. So dmesg still looks like the best we can do.
>

No. Two examples:

- eventfd won't overflow (but doesn't carry a lot of data)
- a channel which signals overflow reliably and allows the user to query
state can recover from overflow.

>> I prefer reliable binary interfaces to shell explorable text interfaces
>> as I think any feature worth having is much more useful controlled by an
>> application rather than a bored sysadmin.
>>
>
> You are free to parse syslog. In fact, I guess some tags could be
> added for messages where userland reaction is expected...

Why create a piece of text, hide it in a bunch of unrelated pieces of
text, then try to extract it?

I want straightforward interfaces.

--
error compiling committee.c: too many arguments to function