Re: Setting open files for a process started by runit (using chpst)

From: Colin Booth <>
Date: Fri, 13 May 2016 12:01:27 -0700

On Fri, May 13, 2016 at 11:59 AM, Tony Gaetani <> wrote:
> I think chpst -o can only limit open files meaning reduce the number of open
> file descriptors for the process, not increase. I'm just speaking from
> memory, I have no proof to back up this conjecture. I recommend using ulimit
> -n in your run scripts per services, rather than on runsv itself.
It definitely can increase up to the hard limit:

[colinb_at_colinb1 ~]$ grep 'open files' /proc/self/limits ; chpst -o
2000 grep 'open files' /proc/self/limits ; chpst -o 100000 grep 'open
files' /proc/self/limits
Max open files 1024 4096 files
Max open files 2000 4096 files
Max open files 4096 4096 files


"If the doors of perception were cleansed every thing would appear to
man as it is, infinite. For man has closed himself up, till he sees
all things thru' narrow chinks of his cavern."
  --  William Blake
Received on Fri May 13 2016 - 19:01:27 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC