Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Sep 2013 14:28:45 -0400
From:      "Sam Fourman Jr." <sfourman@gmail.com>
To:        Mikolaj Golub <trociny@freebsd.org>
Cc:        FreeBSD FS <freebsd-fs@freebsd.org>
Subject:   Re: NFS on ZFS pure SSD pool
Message-ID:  <CAOFF%2BZ02Z%2BAezgQ9WufbB40P00qDL2i3iqpAfJUfbMfJ-gSeTw@mail.gmail.com>
In-Reply-To: <20130901181630.GB15654@gmail.com>
References:  <CAOFF%2BZ2C26V3Ktuvj5RFwGN%2BH657OPXm796TqA54xOpQj1TVFg@mail.gmail.com> <258054624.15907722.1377905324980.JavaMail.root@uoguelph.ca> <20130901181630.GB15654@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 1, 2013 at 2:16 PM, Mikolaj Golub <trociny@freebsd.org> wrote:

> On Fri, Aug 30, 2013 at 07:28:44PM -0400, Rick Macklem wrote:
> > Sam Fourman Jr. wrote:
> > > $ cat /var/log/messages | grep failed
> > > Aug 30 10:22:20 students nfsd[1978]: accept failed: Software caused
> > > connection abort
> > > Aug 30 10:27:16 students nfsd[1978]: accept failed: Software caused
> > > connection abort
> > > Aug 30 11:46:30 students nfsd[1978]: accept failed: Software caused
> > > connection abort
> > > Aug 30 11:47:10 students nfsd[1978]: accept failed: Software caused
> > > connection abort
> > >
> > Since the master socket that is accepting connections isn't being closed,
> > I believe this error (ECONNABORTED returned by accept()) occurs when the
> > client closes the new TCP connection before it has been accepted. Why
> > would an NFS client do this? I have no idea.
>
> May be because nfsd is too slow accepting new connections and the
> client aborts due to its timeout? May nfssvc(2) block for some
> considerable time?
>
> Sam, you could monitor nfsd listen queue running netstat -nL
> periodically and current client connections to nfsd with netstat -na,
> to see what is going on. Also enabling ktrace on the nfsd process when
> the issue is observed could tell if it is due to nfssvc(2) is slow.
>
> BTW, I noticed that nfsd sets listen backlog to 5. Isn't it a bit low
> for servers that might have hundreds clients?
>

is there a sysctl to increase the listen backlog for nfsd?

>
> --
> Mikolaj Golub
>



-- 

Sam Fourman Jr.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOFF%2BZ02Z%2BAezgQ9WufbB40P00qDL2i3iqpAfJUfbMfJ-gSeTw>