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

Avi Kivity
2009-06-03T18:38:12Z

Christoph Lameter wrote:
> On Mon, 1 Jun 2009, Avi Kivity wrote:
>
>
>> We really should have a machine readable channel for this sort of information,
>> so it can be plumbed to a userspace notification bubble the user can ignore.
>>
>
> Good idea. Create an event for udev?
>

Sounds good. The event should fire some configurable time before we
actually run out, since the userspace program will likely need to
allocate memory.

It might even allocate more swap space, thus giving the machine more
breathing room.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.