Ganesha sets it's internal hard limit to FD_Limit_Percent of the system
hard limit. By default, this is 99%, so it should be 2076180 for you.
In the past, when issues like this have hit, there has been a leak in
the internal FD accounting that Ganesha uses to track this. There's no
known issues with this, but it's not impossible that there's a bug here.
Can you attach to the process with gdb, and print open_fd_count?
Frank:
We should probably be logging open_fd_count in those messages...
Daniel
On 7/25/19 5:59 AM, Gin Tan wrote:
We are trying to figure out the hard limit for the FD, does nfs
ganesha
impose a limit?
At the moment we are seeing these errors:
25/07/2019 19:27:59 : epoch 5d393d8c : nas2 :
ganesha.nfsd-1681[cache_lru] lru_run :INODE LRU :WARN :Futility count
exceeded. Client load is opening FDs faster than the LRU thread can
close them.
25/07/2019 19:28:16 : epoch 5d393d8c : nas2 :
ganesha.nfsd-1681[cache_lru] lru_run :INODE LRU :WARN :Futility count
exceeded. Client load is opening FDs faster than the LRU thread can
close them.
25/07/2019 19:28:34 : epoch 5d393d8c : nas2 : ganesha.nfsd-1681[svc_54]
mdcache_lru_fds_available :INODE LRU :CRIT :FD Hard Limit Exceeded,
waking LRU thread.
25/07/2019 19:29:02 : epoch 5d393d8c : nas : ganesha.nfsd-1681[svc_64]
mdcache_lru_fds_available :INODE LRU :CRIT :FD Hard Limit Exceeded,
waking LRU thread.
The system limit:
$ cat /proc/sys/fs/nr_open
2097152
And the limit for nfs-ganesha process:
$ cat /proc/1681/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 385977 385977
processes
Max open files 2097152 2097152 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 385977 385977 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
And the number of open files is
# ls /proc/1681/fd | wc -w
12739
I don't see why we are hitting the FD limit as we only have 12739 FD count.
It is impacting the NFS clients right now, file creation is fine but
can't open an existing file to write.
I'm using VFS FSAL, and the software versions are:
nfs-ganesha-2.7.5-1.el7.x86_64
nfs-ganesha-vfs-2.7.5-1.el7.x86_64
Thanks.
Gin
_______________________________________________
Devel mailing list -- devel(a)lists.nfs-ganesha.org
To unsubscribe send an email to devel-leave(a)lists.nfs-ganesha.org