[systemd-devel] MemoryLimit and MemorySoftLimit

Mirco Tischler mt-ml at gmx.de
Mon Mar 26 10:16:03 PDT 2012


Am 26. März 2012 16:46 schrieb Lennart Poettering <lennart at poettering.net>:
> On Mon, 26.03.12 11:06, Albert Strasheim (fullung at gmail.com) wrote:
>
> See http://www.kernel.org/doc/Documentation/cgroups/memory.txt for more
> information how MemoryLimit= and MemorySoftLimit= work.
>
>> Is there a way for an application to detect when it has hit its
>> MemorySoftLimit=? We would like to log a warning at this point.
>
> I am not aware that we had any infrastructure for notification of
> userspace on memory suppression situations.
>
If I read the link you provided correctly, it is possible to use
eventfd() for notification on hitting the limit.
>
> Lennart
>
Mirco


More information about the systemd-devel mailing list