From: mathog <ma...@ca...> - 2015-01-21 18:51:55
|
On 21-Jan-2015 00:39, Ludovic Mallet wrote: > on debian-like at least, be root: > > #setting the maximum number of file open > sed -i 's/#<domain> <type> <item> <value>/#<domain> <type> > <item> <value>\n\* soft nofile > 65536\n#/' > /etc/security/limits.conf > > though it might be tweaked for RH flavors. > Should be run on every node. Added to limits.conf: mathog hard nofiles 60000 mathog soft nofiles 60000 logged out, logged back in, and saw: % ulimit -Sn 1024 % ulimit -Hn 4096 % ulimit -n 1024 % ulimit -n 60000 bash: ulimit: open files: cannot modify limit: Operation not permitted % ulimit -n 4096 % ulimit -n 4096 The 4096 limit seems to be coming from /proc/1/limits which has: Max open files 1024 4096 files root can set ulimit -n as high as it wants, while also running in bash. Not sure where the 4096 being applied to normal processes is coming from. Regards, David Mathog ma...@ca... Manager, Sequence Analysis Facility, Biology Division, Caltech |