Re: [OpenWrt-Devel] procd limits usage

2015-01-07 Thread Karl Palsson
Yousong Zhou wrote: > > Okay. But then I have no idea what's going wrong. You can try adding > getrlimit() call to hogger to see whether the soft/hard limit has > indeed been imposed before exec() by procd. BTW, the format of limits > params allows setting both soft and hard limit for each re

Re: [OpenWrt-Devel] procd limits usage

2015-01-07 Thread Yousong Zhou
On 7 January 2015 at 20:16, Karl Palsson wrote: > > Yousong Zhou wrote: >> >> Which libc was in use? Because RLIMIT_DATA only applies to those >> allocated by brk() and sbrk(), while malloc() of glibc may fallback to >> mmap() if sbrk() fails. AFAIK, malloc() of uClibc for MIPS in OpenWrt >> ut

Re: [OpenWrt-Devel] procd limits usage

2015-01-07 Thread Karl Palsson
Yousong Zhou wrote: > > Which libc was in use? Because RLIMIT_DATA only applies to those > allocated by brk() and sbrk(), while malloc() of glibc may fallback to > mmap() if sbrk() fails. AFAIK, malloc() of uClibc for MIPS in OpenWrt > utilizes only sbrk() with the default config. whatever th

Re: [OpenWrt-Devel] procd limits usage

2015-01-07 Thread Yousong Zhou
On 7 January 2015 at 00:19, Karl Palsson wrote: > Hi, > > I'm trying out using procd to kill/restart processes that use too much > memory, using the "limits" feature added in > https://lists.openwrt.org/pipermail/openwrt-devel/2013-December/022793.html > and I've confirmed that it's available in t

[OpenWrt-Devel] procd limits usage

2015-01-06 Thread Karl Palsson
Hi, I'm trying out using procd to kill/restart processes that use too much memory, using the "limits" feature added in https://lists.openwrt.org/pipermail/openwrt-devel/2013-December/022793.html and I've confirmed that it's available in the BB branch procd that I'm testing against. My init script