Re: [PATCH v4 12/16] memcg: enable accounting for posix_timers_cache slab
From: Thomas Gleixner <hidden>
Date: 2021-05-07 15:48:20
Also in:
lkml
From: Thomas Gleixner <hidden>
Date: 2021-05-07 15:48:20
Also in:
lkml
On Wed, Apr 28 2021 at 09:53, Vasily Averin wrote:
A program may create multiple interval timers using timer_create(). For each timer the kernel preallocates a "queued real-time signal", Consequently, the number of timers is limited by the RLIMIT_SIGPENDING resource limit. The allocated object is quite small, ~250 bytes, but even the default signal limits allow to consume up to 100 megabytes per user. It makes sense to account for them to limit the host's memory consumption from inside the memcg-limited container. Signed-off-by: Vasily Averin <redacted>
Reviewed-by: Thomas Gleixner <redacted>