Re: [PATCH 00/14] Present useful limits to user (v2)

2016-08-03 Thread Topi Miettinen
Hello, I'm trying the systemtap approach and it looks promising. The script is annotating strace-like output with capability, device access and RLIMIT information. In the end there's a summary. Here's sample output from wpa_supplicant run: mprotect(0x7efebf14, 16384, PROT_READ) = 0 [DATA

Re: [PATCH 00/14] Present useful limits to user (v2)

2016-07-19 Thread Topi Miettinen
On 07/18/16 22:05, Doug Ledford wrote: > On 7/15/2016 12:35 PM, Topi Miettinen wrote: >> On 07/15/16 13:04, Balbir Singh wrote: >>> On Fri, Jul 15, 2016 at 01:35:47PM +0300, Topi Miettinen wrote: >>>> Hello, >>>> >>>> There are many b

Re: [PATCH 00/14] Present useful limits to user (v2)

2016-07-15 Thread Topi Miettinen
On 07/15/16 14:19, Richard Weinberger wrote: > Hi! > > Am 15.07.2016 um 12:35 schrieb Topi Miettinen: >> Hello, >> >> There are many basic ways to control processes, including capabilities, >> cgroups and resource limits. However, there are far fewer

Re: [PATCH 00/14] Present useful limits to user (v2)

2016-07-15 Thread Topi Miettinen
On 07/15/16 13:59, Peter Zijlstra wrote: > On Fri, Jul 15, 2016 at 01:52:48PM +0000, Topi Miettinen wrote: >> On 07/15/16 12:43, Peter Zijlstra wrote: >>> On Fri, Jul 15, 2016 at 01:35:47PM +0300, Topi Miettinen wrote: >>>> Hello, >>>> >>>> The

Re: [PATCH 00/14] Present useful limits to user (v2)

2016-07-15 Thread Topi Miettinen
On 07/15/16 13:04, Balbir Singh wrote: > On Fri, Jul 15, 2016 at 01:35:47PM +0300, Topi Miettinen wrote: >> Hello, >> >> There are many basic ways to control processes, including capabilities, >> cgroups and resource limits. However, there are far fewer ways t

Re: [PATCH 00/14] Present useful limits to user (v2)

2016-07-15 Thread Topi Miettinen
On 07/15/16 12:43, Peter Zijlstra wrote: > On Fri, Jul 15, 2016 at 01:35:47PM +0300, Topi Miettinen wrote: >> Hello, >> >> There are many basic ways to control processes, including capabilities, >> cgroups and resource limits. However, there are far fewer ways t

Re: [PATCH 09/14] resource limits: track highwater mark of locked memory

2016-07-15 Thread Topi Miettinen
On 07/15/16 15:14, Oleg Nesterov wrote: > On 07/15, Topi Miettinen wrote: >> >> Track maximum size of locked memory, to be able to configure >> RLIMIT_MEMLOCK resource limits. The information is available >> with taskstats and cgroupstats netlink socket. > > So I

[PATCH 00/14] Present useful limits to user (v2)

2016-07-15 Thread Topi Miettinen
0x40 [0.148000] [] do_one_initcall+0x50/0x180 [0.148000] [] ? print_cpu_info+0x7d/0xe0 [0.148000] [] kernel_init_freeable+0x111/0x25d [0.148000] [] kernel_init+0xe/0x100 [0.148000] [] ret_from_fork+0x1f/0x40 [0.148000] [] ? rest_init+0x130/0x130 In this v2, I trie

[PATCH 09/14] resource limits: track highwater mark of locked memory

2016-07-15 Thread Topi Miettinen
Track maximum size of locked memory, to be able to configure RLIMIT_MEMLOCK resource limits. The information is available with taskstats and cgroupstats netlink socket. Signed-off-by: Topi Miettinen <toiwo...@gmail.com> --- arch/ia64/kernel/perfmon.c | 1 + arch/power

Re: [RFC 12/18] limits: track RLIMIT_MEMLOCK actual max

2016-06-18 Thread Topi Miettinen
On 06/18/16 00:59, Doug Ledford wrote: > On 6/13/2016 3:44 PM, Topi Miettinen wrote: >> Track maximum size of locked memory, presented in /proc/self/limits. > > You should have probably Cc:ed everyone on the cover letter and probably > patch 1 of this series. This patch i

Re: [RFC 12/18] limits: track RLIMIT_MEMLOCK actual max

2016-06-13 Thread Topi Miettinen
On 06/13/16 20:43, Alex Williamson wrote: > On Mon, 13 Jun 2016 22:44:19 +0300 > Topi Miettinen <toiwo...@gmail.com> wrote: > >> Track maximum size of locked memory, presented in /proc/self/limits. >> >> Signed-off-by: Topi Miettinen <toiwo...@gmail.com>

[RFC 12/18] limits: track RLIMIT_MEMLOCK actual max

2016-06-13 Thread Topi Miettinen
Track maximum size of locked memory, presented in /proc/self/limits. Signed-off-by: Topi Miettinen <toiwo...@gmail.com> --- arch/ia64/kernel/perfmon.c | 1 + arch/powerpc/kvm/book3s_64_vio.c | 1 + arch/powerpc/mm/mmu_context_iommu.c| 1 + drivers/infi