2015-01-15 12:05:07

by Paul van der Vlis

[permalink] [raw]
Subject: Max. open files?

Hello,

Is there in nfs-kernel-server a maximum on the open files?

If yes, what's the correct way to change that maximum?

Do I get errors in the logs when the maximum is reached?

With regards,
Paul van der Vlis.


--
Paul van der Vlis Linux systeembeheer, Groningen
http://www.vandervlis.nl/



2015-01-15 13:13:32

by Benjamin Coddington

[permalink] [raw]
Subject: Re: Max. open files?

Hi Paul van der Vlis,

I don't think there's a NFSD limit on open files, but you'd be subject to
VFS' file-max.

http://lxr.free-electrons.com/source/Documentation/sysctl/fs.txt#L91

Ben

On Thu, 15 Jan 2015, Paul van der Vlis wrote:

> Hello,
>
> Is there in nfs-kernel-server a maximum on the open files?
>
> If yes, what's the correct way to change that maximum?
>
> Do I get errors in the logs when the maximum is reached?
>
> With regards,
> Paul van der Vlis.
>
>
> --
> Paul van der Vlis Linux systeembeheer, Groningen
> http://www.vandervlis.nl/
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>

2015-01-15 13:28:38

by Paul van der Vlis

[permalink] [raw]
Subject: Re: Max. open files?

Hi Ben and others,

The problem what I see, is that I sometimes cannot do a "ls" in a
directory. It just gives no output and the terminal does not respond
anymore. No errors in the logs.

I've seen it in the firefox profile, like this:
/home/paul/.mozilla/firefox/0k48lsbe.default/
The browser hangs then.

No problems in other directories of the same user.

I am using homedirs on NFS4 with LDAP and MIT Kerberos on Debian Wheezy
with a 3.16 kernel. sec=krb5i.

With regards,
Paul .

Op 15-01-15 om 14:13 schreef Benjamin Coddington:
> Hi Paul van der Vlis,
>
> I don't think there's a NFSD limit on open files, but you'd be subject to
> VFS' file-max.
>
> http://lxr.free-electrons.com/source/Documentation/sysctl/fs.txt#L91
>
> Ben
>
> On Thu, 15 Jan 2015, Paul van der Vlis wrote:
>
>> Hello,
>>
>> Is there in nfs-kernel-server a maximum on the open files?
>>
>> If yes, what's the correct way to change that maximum?
>>
>> Do I get errors in the logs when the maximum is reached?
>>
>> With regards,
>> Paul van der Vlis.
>>
>>
>> --
>> Paul van der Vlis Linux systeembeheer, Groningen
>> http://www.vandervlis.nl/
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>> the body of a message to [email protected]
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>





--
Paul van der Vlis Linux systeembeheer, Groningen
http://www.vandervlis.nl/


2015-01-15 13:53:59

by Benjamin Coddington

[permalink] [raw]
Subject: Re: Max. open files?

Can you provide a network capture of the problem?

Ben

On Thu, 15 Jan 2015, Paul van der Vlis wrote:

> Hi Ben and others,
>
> The problem what I see, is that I sometimes cannot do a "ls" in a
> directory. It just gives no output and the terminal does not respond
> anymore. No errors in the logs.
>
> I've seen it in the firefox profile, like this:
> /home/paul/.mozilla/firefox/0k48lsbe.default/
> The browser hangs then.
>
> No problems in other directories of the same user.
>
> I am using homedirs on NFS4 with LDAP and MIT Kerberos on Debian Wheezy
> with a 3.16 kernel. sec=krb5i.
>
> With regards,
> Paul .
>
> Op 15-01-15 om 14:13 schreef Benjamin Coddington:
> > Hi Paul van der Vlis,
> >
> > I don't think there's a NFSD limit on open files, but you'd be subject to
> > VFS' file-max.
> >
> > http://lxr.free-electrons.com/source/Documentation/sysctl/fs.txt#L91
> >
> > Ben
> >
> > On Thu, 15 Jan 2015, Paul van der Vlis wrote:
> >
> >> Hello,
> >>
> >> Is there in nfs-kernel-server a maximum on the open files?
> >>
> >> If yes, what's the correct way to change that maximum?
> >>
> >> Do I get errors in the logs when the maximum is reached?
> >>
> >> With regards,
> >> Paul van der Vlis.
> >>
> >>
> >> --
> >> Paul van der Vlis Linux systeembeheer, Groningen
> >> http://www.vandervlis.nl/
> >>
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> >> the body of a message to [email protected]
> >> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >>
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> > the body of a message to [email protected]
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
>
>
>
>
>
> --
> Paul van der Vlis Linux systeembeheer, Groningen
> http://www.vandervlis.nl/
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>

2015-01-15 14:05:23

by Paul van der Vlis

[permalink] [raw]
Subject: Re: Max. open files?

Hello Ben and others,

Op 15-01-15 om 14:53 schreef Benjamin Coddington:
> Can you provide a network capture of the problem?

Not at the moment.

Do you think it's good to make a tcpdump as root on the client when the
problem is there?

tcpdump -nw /path/filename

With regards,
Paul van der Vlis


> Ben
>
> On Thu, 15 Jan 2015, Paul van der Vlis wrote:
>
>> Hi Ben and others,
>>
>> The problem what I see, is that I sometimes cannot do a "ls" in a
>> directory. It just gives no output and the terminal does not respond
>> anymore. No errors in the logs.
>>
>> I've seen it in the firefox profile, like this:
>> /home/paul/.mozilla/firefox/0k48lsbe.default/
>> The browser hangs then.
>>
>> No problems in other directories of the same user.
>>
>> I am using homedirs on NFS4 with LDAP and MIT Kerberos on Debian Wheezy
>> with a 3.16 kernel. sec=krb5i.
>>
>> With regards,
>> Paul .
>>
>> Op 15-01-15 om 14:13 schreef Benjamin Coddington:
>>> Hi Paul van der Vlis,
>>>
>>> I don't think there's a NFSD limit on open files, but you'd be subject to
>>> VFS' file-max.
>>>
>>> http://lxr.free-electrons.com/source/Documentation/sysctl/fs.txt#L91
>>>
>>> Ben
>>>
>>> On Thu, 15 Jan 2015, Paul van der Vlis wrote:
>>>
>>>> Hello,
>>>>
>>>> Is there in nfs-kernel-server a maximum on the open files?
>>>>
>>>> If yes, what's the correct way to change that maximum?
>>>>
>>>> Do I get errors in the logs when the maximum is reached?
>>>>
>>>> With regards,
>>>> Paul van der Vlis.
>>>>
>>>>
>>>> --
>>>> Paul van der Vlis Linux systeembeheer, Groningen
>>>> http://www.vandervlis.nl/
>>>>
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>>>> the body of a message to [email protected]
>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>>> the body of a message to [email protected]
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>
>>
>>
>>
>>
>>
>> --
>> Paul van der Vlis Linux systeembeheer, Groningen
>> http://www.vandervlis.nl/
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>> the body of a message to [email protected]
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>





--
Paul van der Vlis Linux systeembeheer, Groningen
http://www.vandervlis.nl

2015-01-15 14:41:30

by Benjamin Coddington

[permalink] [raw]
Subject: Re: Max. open files?



On Thu, 15 Jan 2015, Paul van der Vlis wrote:

> Hello Ben and others,
>
> Op 15-01-15 om 14:53 schreef Benjamin Coddington:
> > Can you provide a network capture of the problem?
>
> Not at the moment.
>
> Do you think it's good to make a tcpdump as root on the client when the
> problem is there?
>
> tcpdump -nw /path/filename
>
> With regards,
> Paul van der Vlis

If you know you can reliably produce the problem, something like `tcpdump
-s0 -w /tmp/capfile host <address of server>` started before you produce
the problem and interrupted a few moments later should be sufficient.

Ben

>
> > Ben
> >
> > On Thu, 15 Jan 2015, Paul van der Vlis wrote:
> >
> >> Hi Ben and others,
> >>
> >> The problem what I see, is that I sometimes cannot do a "ls" in a
> >> directory. It just gives no output and the terminal does not respond
> >> anymore. No errors in the logs.
> >>
> >> I've seen it in the firefox profile, like this:
> >> /home/paul/.mozilla/firefox/0k48lsbe.default/
> >> The browser hangs then.
> >>
> >> No problems in other directories of the same user.
> >>
> >> I am using homedirs on NFS4 with LDAP and MIT Kerberos on Debian Wheezy
> >> with a 3.16 kernel. sec=krb5i.
> >>
> >> With regards,
> >> Paul .
> >>
> >> Op 15-01-15 om 14:13 schreef Benjamin Coddington:
> >>> Hi Paul van der Vlis,
> >>>
> >>> I don't think there's a NFSD limit on open files, but you'd be subject to
> >>> VFS' file-max.
> >>>
> >>> http://lxr.free-electrons.com/source/Documentation/sysctl/fs.txt#L91
> >>>
> >>> Ben
> >>>
> >>> On Thu, 15 Jan 2015, Paul van der Vlis wrote:
> >>>
> >>>> Hello,
> >>>>
> >>>> Is there in nfs-kernel-server a maximum on the open files?
> >>>>
> >>>> If yes, what's the correct way to change that maximum?
> >>>>
> >>>> Do I get errors in the logs when the maximum is reached?
> >>>>
> >>>> With regards,
> >>>> Paul van der Vlis.
> >>>>
> >>>>
> >>>> --
> >>>> Paul van der Vlis Linux systeembeheer, Groningen
> >>>> http://www.vandervlis.nl/
> >>>>
> >>>> --
> >>>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> >>>> the body of a message to [email protected]
> >>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >>>>
> >>> --
> >>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> >>> the body of a message to [email protected]
> >>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >>>
> >>
> >>
> >>
> >>
> >>
> >> --
> >> Paul van der Vlis Linux systeembeheer, Groningen
> >> http://www.vandervlis.nl/
> >>
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> >> the body of a message to [email protected]
> >> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >>
>
>
>
>
>
> --
> Paul van der Vlis Linux systeembeheer, Groningen
> http://www.vandervlis.nl
>