From: NeilBrown <neilb@suse.de>
To: Trond Myklebust <trond.myklebust@netapp.com>
Cc: NFS <linux-nfs@vger.kernel.org>
Subject: NFSv4 callback: too many open connections, consider increasing the number of threads.
Date: Thu, 19 Jul 2012 16:46:02 +1000 [thread overview]
Message-ID: <20120719164602.7d5aadaf@notabene.brown> (raw)
[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]
[resending - with more current address for trond]
Hi Trond et al.
we have a customer who reports getting the message:
[10879512.275305] NFSv4 callback: too many open connections,
consider increasing the number of threads. [10879512.275315] NFSv4 callback:
too many open connections, consider increasing the number of threads.
[10879517.276133] __ratelimit: 133011 callbacks suppressed
Of course you cannot increase the number of threads handling callbacks.
The patch below will get rid of the message - which is presumably mostly just
noise - or possibly change it to
NFSv4 callback: too many open connections, consider increasing the max
number of connections if the number of connections gets too high.
This isn't much good as this patch doesn't allow the max number to be
increased.
Do we want to make the max number of callback connections configurable, or
should we find a way to silence that message.
(For lockd that message is valid as there is a sysctl to change the max
number of connections for lockd).
Thanks,
NeilBrown
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
index 23ff18f..1129c42 100644
--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -265,6 +265,10 @@ int nfs_callback_up(u32 minorversion, struct rpc_xprt
*xprt) ret = -ENOMEM;
goto out_err;
}
+ /* As there is only one thread so we need to over-ride the
+ * default maximum of 80 connections
+ */
+ serv->sv_maxconn = 1024;
ret = svc_bind(serv, net);
if (ret < 0) {
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next reply other threads:[~2012-07-19 6:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-19 6:46 NeilBrown [this message]
2012-07-30 23:16 ` NFSv4 callback: too many open connections, consider increasing the number of threads Myklebust, Trond
2012-07-31 4:40 ` NeilBrown
-- strict thread matches above, loose matches on Subject: below --
2012-07-12 3:46 NeilBrown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120719164602.7d5aadaf@notabene.brown \
--to=neilb@suse.de \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@netapp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).