Re: debian jail, setting max open files soft limit does not work
Date: Tue, 27 Dec 2022 20:34:25 UTC
On 12/27/22, Mathias Picker <Mathias.Picker@virtual-earth.de> wrote: > Hi all, > > > I’ve set up a jail on 13.1 running debian stretch, and now a > triplestore needing many openfiles for a data import. > > Since on Linux the soft limit is pretty hard :) I need to set the > soft limit. > > I’ve edited /etc/security/limits.conf to set soft and hard limit > to 20000 (just to check), but after login the soft limit stays at > 1024. > > Using prlimit I can change the limits of a running process, but > that is not passed on to subprocesses, which the app creates > constantly for import, there, the soft limit returns to 1024 :( > > Running prlimit --nofile 20000 or prlimit --nofile 20000:20000 > does not work, either, the soft limit stays at 1024, and the > import fails. > > Does anyone know a way to change the soft limit permenantly? > kernel code is buggy here, from a quick read you should be able to work around it by: sysctl compat.linux.default_openfiles=-1 -- Mateusz Guzik <mjguzik gmail.com>