NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: firefox and maxfiles and rlimit.descriptors
On Sat, Nov 14, 2020 at 04:02:09PM -0600, Jeremy C. Reed wrote:
> > So how can one increase the kernel limit so that ulimit -n can work with
> > a greater value? (it doesn't accept anything else but 956, despite
> > kern.maxfiles being increased).
>
> $ sysctl kern.maxfiles
> kern.maxfiles = 3405
> $ sudo sysctl -w kern.maxfiles=3500
> kern.maxfiles: 3405 -> 3500
> $ sysctl kern.maxfiles
> kern.maxfiles = 3500
> $ sysctl proc.$$.rlimit.descriptors.hard
> proc.13239.rlimit.descriptors.hard = 3405
> $ ulimit -H -n
> 3405
> $ sudo sysctl -w proc.$$.rlimit.descriptors.hard=3450
> proc.13239.rlimit.descriptors.hard: 3405 -> 3450
> $ ulimit -H -n
> 3450
>
> Notice I use root to increase the hard limit for my non-root process.
With your answer and Michael I will be able to find my way. Thanks!
I would suggest, though, to kernel developers, to increase the default
value in GENERIC because firefox, at least 82.0 is quite fd hungry and
the default seems to be too low for a desktop use.
Best,
--
Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
Home |
Main Index |
Thread Index |
Old Index