Ganesha daemon has 400'000 open files - is this unusual?
Hello, Is it usual to see 200’000-400’000 open files for a single ganesha process? Or does this indicate that something ist wrong? We have some issues with ganesha (on spectrum scale protocol nodes) reporting NFS3ERR_IO in the log. I noticed that the affected nodes have a large number of open files, 200’000-400’000 open files per daemon (and 500 threads and about 250 client connections). Other nodes have 1’000 – 10’000 open files by ganesha only and don’t show the issue. If someone could explain how ganesha decides which files to keep open and which to close that would help, too. As NFSv3 is stateless the client doesn’t open/close a file, it’s the server to decide when to close it? We do have a few NFSv4 clients, too. Are there certain access patterns that can trigger such a large number of open file? Maybe traversing and reading a large number of small files? Thank you, Heiner I did count the open files by counting the entries in /proc/<pid of ganesha>/fd/ . With several 100k entries I failed to do a ‘ls -ls’ to list all the symbolic links, hence I can’t relate the open files to different exports easily. I did post this to the ganesha mailing list, too. -- ======================= Heinrich Billich ETH Zürich Informatikdienste Tel.: +41 44 632 72 56 heinrich.billich@id.ethz.ch ========================
Heiner, we are seeing similar issues with CES/ganesha NFS, in our case it exclusively with NFSv3 clients. What is maxFilesToCache set to on your ganesha node(s)? In our case ganesha was running into the limit of open file descriptors because maxFilesToCache was set at a low default and for now we've increased it to 1M. It seemed that ganesha was never releasing files even after clients unmounted the file system. We've only recently made the change, so we'll see how much that improved the situation. I thought we had a reproducer but after our recent change, I can now no longer successfully reproduce the increase in open files not being released. Kind regards, Frederik On 19/09/2019 15:20, Billich Heinrich Rainer (ID SD) wrote:
Hello,
Is it usual to see 200’000-400’000 open files for a single ganesha process? Or does this indicate that something ist wrong?
We have some issues with ganesha (on spectrum scale protocol nodes) reporting NFS3ERR_IO in the log. I noticed that the affected nodes have a large number of open files, 200’000-400’000 open files per daemon (and 500 threads and about 250 client connections). Other nodes have 1’000 – 10’000 open files by ganesha only and don’t show the issue.
If someone could explain how ganesha decides which files to keep open and which to close that would help, too. As NFSv3 is stateless the client doesn’t open/close a file, it’s the server to decide when to close it? We do have a few NFSv4 clients, too.
Are there certain access patterns that can trigger such a large number of open file? Maybe traversing and reading a large number of small files?
Thank you,
Heiner
I did count the open files by counting the entries in /proc/<pid of ganesha>/fd/ . With several 100k entries I failed to do a ‘ls -ls’ to list all the symbolic links, hence I can’t relate the open files to different exports easily.
I did post this to the ganesha mailing list, too.
--
=======================
Heinrich Billich
ETH Zürich
Informatikdienste
Tel.: +41 44 632 72 56
heinrich.billich@id.ethz.ch
========================
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
Hello Frederik, Thank you. I now see a similar behavior: Ganesha has 500k open files while the node is suspended since 2+hours. I would expect that some cleanup job does remove most of the open FD after a much shorter while. Our systems have an upper limit of 1M open files per process and these spectrum scale settings: ! maxFilesToCache 1048576 ! maxStatCache 2097152 Our ganesha version is 2.5.3. (gpfs.nfs-ganesha-2.5.3-ibm036.10.el7). I don't see the issue with gpfs.nfs-ganesha-2.5.3-ibm030.01.el7. But this second cluster also has a different load pattern. I did also post my initial question to the ganesha mailing list and want to share the reply I've got from Daniel Gryniewicz. Cheers, Heiner Daniel Gryniewicz <dang@redhat.com> So, it's not impossible, based on the workload, but it may also be a bug. For global FDs (All NFSv3 and stateless NFSv4), we obviously cannot know when the client closes the FD, and opening/closing all the time causes a large performance hit. So, we cache open FDs. All handles in MDCACHE live on the LRU. This LRU is divided into 2 levels. Level 1 is more active handles, and they can have open FDs. Various operation can demote a handle to level 2 of the LRU. As part of this transition, the global FD on that handle is closed. Handles that are actively in use (have a refcount taken on them) are not eligible for this transition, as the FD may be being used. We have a background thread that runs, and periodically does this demotion, closing the FDs. This thread runs more often when the number of open FDs is above FD_HwMark_Percent of the available number of FDs, and runs constantly when the open FD count is above FD_Limit_Percent of the available number of FDs. So, a heavily used server could definitely have large numbers of FDs open. However, there have also, in the past, been bugs that would either keep the FDs from being closed, or would break the accounting (so they were closed, but Ganesha still thought they were open). You didn't say what version of Ganesha you're using, so I can't tell if one of those bugs apply. Daniel On 19.09.19, 16:37, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Frederik Ferner" <gpfsug-discuss-bounces@spectrumscale.org on behalf of frederik.ferner@diamond.ac.uk> wrote: Heiner, we are seeing similar issues with CES/ganesha NFS, in our case it exclusively with NFSv3 clients. What is maxFilesToCache set to on your ganesha node(s)? In our case ganesha was running into the limit of open file descriptors because maxFilesToCache was set at a low default and for now we've increased it to 1M. It seemed that ganesha was never releasing files even after clients unmounted the file system. We've only recently made the change, so we'll see how much that improved the situation. I thought we had a reproducer but after our recent change, I can now no longer successfully reproduce the increase in open files not being released. Kind regards, Frederik On 19/09/2019 15:20, Billich Heinrich Rainer (ID SD) wrote: > Hello, > > Is it usual to see 200’000-400’000 open files for a single ganesha > process? Or does this indicate that something ist wrong? > > We have some issues with ganesha (on spectrum scale protocol nodes) > reporting NFS3ERR_IO in the log. I noticed that the affected nodes > have a large number of open files, 200’000-400’000 open files per daemon > (and 500 threads and about 250 client connections). Other nodes have > 1’000 – 10’000 open files by ganesha only and don’t show the issue. > > If someone could explain how ganesha decides which files to keep open > and which to close that would help, too. As NFSv3 is stateless the > client doesn’t open/close a file, it’s the server to decide when to > close it? We do have a few NFSv4 clients, too. > > Are there certain access patterns that can trigger such a large number > of open file? Maybe traversing and reading a large number of small files? > > Thank you, > > Heiner > > I did count the open files by counting the entries in /proc/<pid of > ganesha>/fd/ . With several 100k entries I failed to do a ‘ls -ls’ to > list all the symbolic links, hence I can’t relate the open files to > different exports easily. > > I did post this to the ganesha mailing list, too. > > -- > > ======================= > > Heinrich Billich > > ETH Zürich > > Informatikdienste > > Tel.: +41 44 632 72 56 > > heinrich.billich@id.ethz.ch > > ======================== > > > _______________________________________________ > gpfsug-discuss mailing list > gpfsug-discuss at spectrumscale.org > http://gpfsug.org/mailman/listinfo/gpfsug-discuss > -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hello Heiner, very interesting, thanks. In our case we are seeing this problem on gpfs.nfs-ganesha-gpfs-2.5.3-ibm036.05.el7, so close to the version where you're seeing it. Frederik On 23/09/2019 10:33, Billich Heinrich Rainer (ID SD) wrote:
Hello Frederik,
Thank you. I now see a similar behavior: Ganesha has 500k open files while the node is suspended since 2+hours. I would expect that some cleanup job does remove most of the open FD after a much shorter while. Our systems have an upper limit of 1M open files per process and these spectrum scale settings:
! maxFilesToCache 1048576 ! maxStatCache 2097152
Our ganesha version is 2.5.3. (gpfs.nfs-ganesha-2.5.3-ibm036.10.el7). I don't see the issue with gpfs.nfs-ganesha-2.5.3-ibm030.01.el7. But this second cluster also has a different load pattern.
I did also post my initial question to the ganesha mailing list and want to share the reply I've got from Daniel Gryniewicz.
Cheers, Heiner
Daniel Gryniewicz <dang@redhat.com> So, it's not impossible, based on the workload, but it may also be a bug.
For global FDs (All NFSv3 and stateless NFSv4), we obviously cannot know when the client closes the FD, and opening/closing all the time causes a large performance hit. So, we cache open FDs.
All handles in MDCACHE live on the LRU. This LRU is divided into 2 levels. Level 1 is more active handles, and they can have open FDs. Various operation can demote a handle to level 2 of the LRU. As part of this transition, the global FD on that handle is closed. Handles that are actively in use (have a refcount taken on them) are not eligible for this transition, as the FD may be being used.
We have a background thread that runs, and periodically does this demotion, closing the FDs. This thread runs more often when the number of open FDs is above FD_HwMark_Percent of the available number of FDs, and runs constantly when the open FD count is above FD_Limit_Percent of the available number of FDs.
So, a heavily used server could definitely have large numbers of FDs open. However, there have also, in the past, been bugs that would either keep the FDs from being closed, or would break the accounting (so they were closed, but Ganesha still thought they were open). You didn't say what version of Ganesha you're using, so I can't tell if one of those bugs apply.
Daniel
On 19.09.19, 16:37, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Frederik Ferner" <gpfsug-discuss-bounces@spectrumscale.org on behalf of frederik.ferner@diamond.ac.uk> wrote:
Heiner,
we are seeing similar issues with CES/ganesha NFS, in our case it exclusively with NFSv3 clients.
What is maxFilesToCache set to on your ganesha node(s)? In our case ganesha was running into the limit of open file descriptors because maxFilesToCache was set at a low default and for now we've increased it to 1M.
It seemed that ganesha was never releasing files even after clients unmounted the file system.
We've only recently made the change, so we'll see how much that improved the situation.
I thought we had a reproducer but after our recent change, I can now no longer successfully reproduce the increase in open files not being released.
Kind regards, Frederik
On 19/09/2019 15:20, Billich Heinrich Rainer (ID SD) wrote: > Hello, > > Is it usual to see 200’000-400’000 open files for a single ganesha > process? Or does this indicate that something ist wrong? > > We have some issues with ganesha (on spectrum scale protocol nodes) > reporting NFS3ERR_IO in the log. I noticed that the affected nodes > have a large number of open files, 200’000-400’000 open files per daemon > (and 500 threads and about 250 client connections). Other nodes have > 1’000 – 10’000 open files by ganesha only and don’t show the issue. > > If someone could explain how ganesha decides which files to keep open > and which to close that would help, too. As NFSv3 is stateless the > client doesn’t open/close a file, it’s the server to decide when to > close it? We do have a few NFSv4 clients, too. > > Are there certain access patterns that can trigger such a large number > of open file? Maybe traversing and reading a large number of small files? > > Thank you, > > Heiner > > I did count the open files by counting the entries in /proc/<pid of > ganesha>/fd/ . With several 100k entries I failed to do a ‘ls -ls’ to > list all the symbolic links, hence I can’t relate the open files to > different exports easily. > > I did post this to the ganesha mailing list, too. > > -- > > ======================= > > Heinrich Billich > > ETH Zürich > > Informatikdienste > > Tel.: +41 44 632 72 56 > > heinrich.billich@id.ethz.ch > > ======================== > > > _______________________________________________ > gpfsug-discuss mailing list > gpfsug-discuss at spectrumscale.org > http://gpfsug.org/mailman/listinfo/gpfsug-discuss >
-- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Frederik Ferner Senior Computer Systems Administrator (storage) phone: +44 1235 77 8624 Diamond Light Source Ltd. mob: +44 7917 08 5110 Duty Sys Admin can be reached on x8596 (Apologies in advance for the lines below. Some bits are a legal requirement and I have no control over them.)
Hello Frederik, Just some addition, maybe its of interest to someone: The number of max open files for Ganesha is based on maxFilesToCache. Its. 80%of maxFilesToCache up to an upper and lower limits of 2000/1M. The active setting is visible in /etc/sysconfig/ganesha. Cheers, Heiner On 19.09.19, 16:37, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Frederik Ferner" <gpfsug-discuss-bounces@spectrumscale.org on behalf of frederik.ferner@diamond.ac.uk> wrote: Heiner, we are seeing similar issues with CES/ganesha NFS, in our case it exclusively with NFSv3 clients. What is maxFilesToCache set to on your ganesha node(s)? In our case ganesha was running into the limit of open file descriptors because maxFilesToCache was set at a low default and for now we've increased it to 1M. It seemed that ganesha was never releasing files even after clients unmounted the file system. We've only recently made the change, so we'll see how much that improved the situation. I thought we had a reproducer but after our recent change, I can now no longer successfully reproduce the increase in open files not being released. Kind regards, Frederik On 19/09/2019 15:20, Billich Heinrich Rainer (ID SD) wrote: > Hello, > > Is it usual to see 200’000-400’000 open files for a single ganesha > process? Or does this indicate that something ist wrong? > > We have some issues with ganesha (on spectrum scale protocol nodes) > reporting NFS3ERR_IO in the log. I noticed that the affected nodes > have a large number of open files, 200’000-400’000 open files per daemon > (and 500 threads and about 250 client connections). Other nodes have > 1’000 – 10’000 open files by ganesha only and don’t show the issue. > > If someone could explain how ganesha decides which files to keep open > and which to close that would help, too. As NFSv3 is stateless the > client doesn’t open/close a file, it’s the server to decide when to > close it? We do have a few NFSv4 clients, too. > > Are there certain access patterns that can trigger such a large number > of open file? Maybe traversing and reading a large number of small files? > > Thank you, > > Heiner > > I did count the open files by counting the entries in /proc/<pid of > ganesha>/fd/ . With several 100k entries I failed to do a ‘ls -ls’ to > list all the symbolic links, hence I can’t relate the open files to > different exports easily. > > I did post this to the ganesha mailing list, too. > > -- > > ======================= > > Heinrich Billich > > ETH Zürich > > Informatikdienste > > Tel.: +41 44 632 72 56 > > heinrich.billich@id.ethz.ch > > ======================== > > > _______________________________________________ > gpfsug-discuss mailing list > gpfsug-discuss at spectrumscale.org > http://gpfsug.org/mailman/listinfo/gpfsug-discuss > -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Tue, 24 Sep 2019 08:52:34 -0000, "Billich Heinrich Rainer (ID SD)" said:
Just some addition, maybe its of interest to someone: The number of max open files for Ganesha is based on maxFilesToCache. Its. 80%of maxFilesToCache up to an upper and lower limits of 2000/1M. The active setting is visible in /etc/sysconfig/ganesha.
Note that strictly speaking, the values in /etc/sysconfig are in general the values that will be used at next restart - it's totally possible for the system to boot, the then-current values be picked up from /etc/sysconfig, and then any number of things, from configuration automation tools like Ansible, to a cow-orker sysadmin armed with nothing but /usr/bin/vi, to have changed the values without you knowing about it and the daemons not be restarted yet... (Let's just say that in 4 decades of doing this stuff, I've been surprised by that sort of thing a few times. :)
Hello Malhal, Thank you. Actually I don’t see the parameter Cache_FDs in our ganesha config. But when I trace LRU processing I see that almost no FDs get released. And the number of FDs given in the log messages doesn’t match what I see in /proc/<pid of ganesha>/fd/. I see 512k open files while the logfile give 600k. Even 4hours since the I suspended the node and all i/o activity stopped I see 500k open files and LRU processing doesn’t close any of them. This looks like a bug in gpfs.nfs-ganesha-2.5.3-ibm036.10.el7. I’ll open a case with IBM. We did see gansha to fail to open new files and hence client requests to fail. I assume that 500K FDs compared to 10K FDs as before create some notable overhead for ganesha, spectrum scale and kernel and withdraw resources from samba. I’ll post to the list once we got some results. Cheers, Heiner Start of LRU processing 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run :INODE LRU :DEBUG :Reaping up to 50 entries from lane 1027 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run :INODE LRU :F_DBG :formeropen=607025 totalwork=0 workpass=51350 totalclosed:6 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run_lane :INODE LRU :DEBUG :Reaping up to 50 entries from lane 1027 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run_lane :INODE LRU :DEBUG :Actually processed 50 entries on lane 1027 closing 0 descriptors 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run :INODE LRU :DEBUG :Reaping up to 50 entries from lane 1028 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run :INODE LRU :F_DBG :formeropen=607025 totalwork=0 workpass=51400 totalclosed:6 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run_lane :INODE LRU :DEBUG :Reaping up to 50 entries from lane 1028 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run_lane :INODE LRU :DEBUG :Actually processed 50 entries on lane 1028 closing 0 descriptors End of log 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run_lane :INODE LRU :DEBUG :Reaping up to 50 entries from lane 1029 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run_lane :INODE LRU :DEBUG :Actually processed 50 entries on lane 1029 closing 0 descriptors 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run :INODE LRU :DEBUG :Reaping up to 50 entries from lane 1030 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run :INODE LRU :F_DBG :formeropen=607025 totalwork=0 workpass=51500 totalclosed:6 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run_lane :INODE LRU :DEBUG :Reaping up to 50 entries from lane 1030 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run_lane :INODE LRU :DEBUG :Actually processed 50 entries on lane 1030 closing 0 descriptors 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run :INODE LRU :DEBUG :After work, open_fd_count:607024 count:29503718 fdrate:1908874353 threadwait=9 2019-09-23 11:37:30 : epoch 00100524 : nas12ces01 : gpfs.ganesha.nfsd-100816[cache_lru] lru_run :INODE LRU :F_DBG :currentopen=607024 futility=0 totalwork=51550 biggest_window=335544 extremis=0 lanes=1031 fds_lowat=167772 From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Malahal R Naineni <mnaineni@in.ibm.com> Reply to: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, 19 September 2019 at 20:39 To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Cc: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Ganesha daemon has 400'000 open files - is this unusual? NFSv3 doesn't have open/close requests, so nfs-ganesha opens a file for read/write when there is an NFSv3 read/write request. It does cache file descriptors, so its open count can be very large. If you have 'Cache_FDs = true" in your config, ganesha aggressively caches file descriptors. Taking traces with COMPONENT_CACHE_INODE_LRU level set to full debug should give us better insight on what is happening when the the open file descriptors count is very high. When the I/O failure happens or when the open fd count is high, you could do the following: 1. ganesha_mgr set_log COMPONENT_CACHE_INODE_LRU FULL_DEBUG 2. wait for 90 seconds, then run 3. ganesha_mgr set_log COMPONENT_CACHE_INODE_LRU EVENT Regards, Malahal. ----- Original message ----- From: "Billich Heinrich Rainer (ID SD)" <heinrich.billich@id.ethz.ch> Sent by: gpfsug-discuss-bounces@spectrumscale.org To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Cc: Subject: [EXTERNAL] [gpfsug-discuss] Ganesha daemon has 400'000 open files - is this unusual? Date: Thu, Sep 19, 2019 7:51 PM Hello, Is it usual to see 200’000-400’000 open files for a single ganesha process? Or does this indicate that something ist wrong? We have some issues with ganesha (on spectrum scale protocol nodes) reporting NFS3ERR_IO in the log. I noticed that the affected nodes have a large number of open files, 200’000-400’000 open files per daemon (and 500 threads and about 250 client connections). Other nodes have 1’000 – 10’000 open files by ganesha only and don’t show the issue. If someone could explain how ganesha decides which files to keep open and which to close that would help, too. As NFSv3 is stateless the client doesn’t open/close a file, it’s the server to decide when to close it? We do have a few NFSv4 clients, too. Are there certain access patterns that can trigger such a large number of open file? Maybe traversing and reading a large number of small files? Thank you, Heiner I did count the open files by counting the entries in /proc/<pid of ganesha>/fd/ . With several 100k entries I failed to do a ‘ls -ls’ to list all the symbolic links, hence I can’t relate the open files to different exports easily. I did post this to the ganesha mailing list, too. -- ======================= Heinrich Billich ETH Zürich Informatikdienste Tel.: +41 44 632 72 56 heinrich.billich@id.ethz.ch ======================== _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (4)
-
Billich Heinrich Rainer (ID SD) -
Frederik Ferner -
Malahal R Naineni -
Valdis Klētnieks
