You are not logged in.

#1 2013-06-07 21:32:06

ferdev
Member
Registered: 2013-06-07
Posts: 6

cifs and max open files limit

Hi!

I'm having trouble with a cifs mounted volume. Using this volume with rtorrent gives me from time to time "Too many files open" errors. I've updated the /etc/security/limits.conf to allow 65k files.

Some output:

$ ulimit -n
65536
$ cat /proc/<pid of rtorrent>/limits

Limit                     Soft Limit           Hard Limit           Units
Max cpu time              unlimited            unlimited            seconds
Max file size             unlimited            unlimited            bytes
Max data size             unlimited            unlimited            bytes
Max stack size            8388608              unlimited            bytes
Max core file size        0                    unlimited            bytes
Max resident set          unlimited            unlimited            bytes
Max processes             31534                31534                processes
Max open files            65536                65536                files
Max locked memory         65536                65536                bytes
Max address space         unlimited            unlimited            bytes
Max file locks            unlimited            unlimited            locks
Max pending signals       31534                31534                signals
Max msgqueue size         819200               819200               bytes
Max nice priority         20                   20
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us

And here is where I think the source of the problem is... Although I don't have any ideas on how to change this limit:

$ cat /proc/<pid of cifsd process>/limits

Limit                     Soft Limit           Hard Limit           Units
Max cpu time              unlimited            unlimited            seconds
Max file size             unlimited            unlimited            bytes
Max data size             unlimited            unlimited            bytes
Max stack size            8388608              unlimited            bytes
Max core file size        0                    unlimited            bytes
Max resident set          unlimited            unlimited            bytes
Max processes             31534                31534                processes
Max open files            1024                 4096                 files
Max locked memory         65536                65536                bytes
Max address space         unlimited            unlimited            bytes
Max file locks            unlimited            unlimited            locks
Max pending signals       31534                31534                signals
Max msgqueue size         819200               819200               bytes
Max nice priority         0                    0
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us

Only 1024/4096 file descriptors for the cifsd process. And the same happens for the process cifsiod.

Can anybody help? Thanks!!

Last edited by ferdev (2013-06-07 21:57:40)

Offline

#2 2013-06-07 21:33:55

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: cifs and max open files limit

Please use code tags.  To see how it is done, hit the "quote" button of this post. 

Offline

Board footer

Powered by FluxBB