Home
last modified time | relevance | path

Searched hist:"2 c6ad20b581e37d6331010ee1d28b3307c90ba0a" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Dscm.cdiff 2c6ad20b581e37d6331010ee1d28b3307c90ba0a Mon Jul 19 05:44:56 CDT 2021 Vasily Averin <vvs@virtuozzo.com> memcg: enable accounting for scm_fp_list objects

unix sockets allows to send file descriptors via SCM_RIGHTS type messages.
Each such send call forces kernel to allocate up to 2Kb memory for
struct scm_fp_list.

It makes sense to account for them to restrict the host's memory
consumption from inside the memcg-limited container.

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>