NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: firefox and maxfiles and rlimit.descriptors



> 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.


Home | Main Index | Thread Index | Old Index