Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1583241 > unrolled thread
| Started by | Łukasz Stelmach <l.stelmach@samsung.com> |
|---|---|
| First post | 2017-02-17 10:40 +0100 |
| Last post | 2017-02-17 12:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
counting file descriptors with a cgroup controller Łukasz Stelmach <l.stelmach@samsung.com> - 2017-02-17 10:40 +0100
Re: counting file descriptors with a cgroup controller Krzysztof Opasiak <k.opasiak@samsung.com> - 2017-02-17 12:40 +0100
| From | Łukasz Stelmach <l.stelmach@samsung.com> |
|---|---|
| Date | 2017-02-17 10:40 +0100 |
| Subject | counting file descriptors with a cgroup controller |
| Message-ID | <tbNbb-2x5-11@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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
[toc] | [next] | [standalone]
| From | Krzysztof Opasiak <k.opasiak@samsung.com> |
|---|---|
| Date | 2017-02-17 12:40 +0100 |
| Message-ID | <tbP3j-3HN-7@gated-at.bofh.it> |
| In reply to | #1583241 |
+ cgroups mailing list + cgroup maintainers On 02/17/2017 10:37 AM, Łukasz Stelmach wrote: > 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, > -- Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web