Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1444158
| From | Topi Miettinen <toiwoton@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 11/14] resource limits: track highwater mark of number of pending signals |
| Date | 2016-07-15 12:40 +0200 |
| Message-ID | <rV8Hf-5Li-11@gated-at.bofh.it> (permalink) |
| References | <rV8Hf-5Li-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Track maximum number of pending signals, to be able to configure RLIMIT_SIGPENDING resource limits. The information is available with taskstats and cgroupstats netlink socket. Signed-off-by: Topi Miettinen <toiwoton@gmail.com> --- kernel/signal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/signal.c b/kernel/signal.c index 96e9bc4..670d609 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -387,6 +387,8 @@ __sigqueue_alloc(int sig, struct task_struct *t, gfp_t flags, int override_rlimi INIT_LIST_HEAD(&q->list); q->flags = 0; q->user = user; + task_update_resource_highwatermark(t, RLIMIT_SIGPENDING, + atomic_read(&user->sigpending)); } return q; -- 2.8.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 11/14] resource limits: track highwater mark of number of pending signals Topi Miettinen <toiwoton@gmail.com> - 2016-07-15 12:40 +0200
csiph-web