[Gluster-devel] Too many open files

Dale Dude dale at oc3networks.com
Wed Apr 4 19:11:27 UTC 2007



Brent A Nelson wrote:
> I suspect you meant "ulimit -a"?
> ulimit -a
> core file size          (blocks, -c) 0
> data seg size           (kbytes, -d) unlimited
> max nice                        (-e) 20
> file size               (blocks, -f) unlimited
> pending signals                 (-i) unlimited
> max locked memory       (kbytes, -l) unlimited
> max memory size         (kbytes, -m) unlimited
> open files                      (-n) 1024
> pipe size            (512 bytes, -p) 8
> POSIX message queues     (bytes, -q) unlimited
> max rt priority                 (-r) unlimited
> stack size              (kbytes, -s) 8192
> cpu time               (seconds, -t) unlimited
> max user processes              (-u) unlimited
> virtual memory          (kbytes, -v) unlimited
> file locks                      (-x) unlimited
>
> Just in case you did mean uname -a:
> uname -a
> Linux jupiter01 2.6.15.7-ubuntu1.060913 #1 SMP Wed Sep 13 15:21:26 EDT 
> 2006 i686 GNU/Linux
>
Good catch. I actually meant to ask for both uname and ulimit.

Add this line to your /etc/security/limits.conf:
root - nofile 32768

Log out and back in and do ulimit -a to make sure 'open files' now shows 
32768.
Either restart glusterfs/d in this shell, or edit your script that may 
start this and add the below before it starts gluster:
ulimit -n 32768

That should raise the per process fd limit for root.






More information about the Gluster-devel mailing list