[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <87poihtaya.fsf%l.stelmach@samsung.com>
Date: Fri, 17 Feb 2017 10:37:17 +0100
From: Łukasz Stelmach <l.stelmach@...sung.com>
To: linux-kernel@...r.kernel.org
Cc: Krzysztof Opasiak <k.opasiak@...sung.com>,
Karol Lewandowski <k.lewandowsk@...sung.com>
Subject: counting file descriptors with a cgroup controller
Hi,
We need to limit and monitor the number of file descriptors processes
keep open. If a process exceeds certain limit we'd like to terminate it
and restart it or reboot the whole system. Currently the RLIMIT API
allows limiting the number of file descriptors but to achieve our goals
we'd need to make sure all programmes we run handle EMFILE errno
properly. That is why we consider developing a cgroup controller that
limits the number of open file descriptors of its members (similar to
memory controler).
Any comments? Is there any alternative that:
+ does not require modifications of user-land code,
+ enables other process (e.g. init) to be notified and apply policy.
Kind regards,
--
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics
Download attachment "signature.asc" of type "application/pgp-signature" (473 bytes)
Powered by blists - more mailing lists