kernel: nfsd: too many open TCP sockets, consider increasing the number of threads

在/var/log/syslog中看到如下报错:

kernel: nfsd: too many open TCP sockets, consider increasing the number of nfsd threads

网上搜了外国的一篇文章这样说的:

The threads in question are set in /etc/sysconfig/nfs:

USE_KERNEL_NFSD_NUMBER="4"

The default is 4 but can be raised to allow nfsd to handle more requests at once.  After making a change, the nfs server daemon can be restarted with:

rcnfsserver restart

Cause

This message is generated by some rule-of-thumb checking, and should not be taken as a indication of a definite problem.  Rather, it warns of a situation which might cause low performance under load.  The number of TCP connections open to nfsd (nfs server, port 2049) is checked and if the number is considered higher than the server might be able to keep up with, the message is logged.

The message is given when connections to the NFS server‘s port 2049 are greater than  [(number of threads + 3) * 20].  For example, at the default of 4, the message will be logged if connections to port 2049 exceed 140.  The presence of connections does not necessarily mean all of them are currently making requests.  However, it does signify a certain number of NFS clients with file systems mounted, and if many of them were heavily using NFS resources, the NFS Server might not keep up with it‘s work as promptly as desired.

When choosing a new setting, it can sometimes be helpful to manually check the number of nfsd connections, especially over time or at peak work times.  To do so, give the following command (at a terminal on the NFS Server).

netstat -nt | grep -c :2049

Then plug the trended count or peak count into the formula above and calculate the number of threads which would be needed to satisfy the algorithm.

本文参考自:http://www.novell.com/support/kb/doc.php?id=7010903

时间: 2024-12-15 06:51:58

kernel: nfsd: too many open TCP sockets, consider increasing the number of threads的相关文章

How TCP clients and servers communicate using the TCP sockets interface

wTCP客户端和服务器是如何通过TCP套接字接口进行通讯的.服务器距离.负载,网络拥堵. HTTP The Definitive Guide We begin with the web server waiting for a connection (Figure 4-6, S4). The client determines the IP address and port number from the URL and proceeds to establish a TCP connectio

linux kernel的中断子系统之(三):IRQ number和中断描述符【转】

转自:http://www.wowotech.net/linux_kenrel/interrupt_descriptor.html 一.前言 本文主要围绕IRQ number和中断描述符(interrupt descriptor)这两个概念描述通用中断处理过程.第二章主要描述基本概念,包括什么是IRQ number,什么是中断描述符等.第三章描述中断描述符数据结构的各个成员.第四章描述了初始化中断描述符相关的接口API.第五章描述中断描述符相关的接口API. 二.基本概念 1.通用中断的代码处理

linux kernel的中断子系统之(三):IRQ number和中断描述符

一.前言 本文主要围绕IRQ number和中断描述符(interrupt descriptor)这两个概念描述通用中断处理过程.第二章主要描述基本概念,包括什么是IRQ number,什么是中断描述符等.第三章描述中断描述符数据结构的各个成员.第四章描述了初始化中断描述符相关的接口API.第五章描述中断描述符相关的接口API. 二.基本概念 1.通用中断的代码处理示意图 一个关于通用中断处理的示意图如下: 在linux kernel中,对于每一个外设的IRQ都用struct irq_desc来

The Improvement of Reduction Summation on GPU Using CUDA

We can never be satisfied with the program just only running correctly.The reduction summation program described in previous blog post needs to be optimized. 1.make the best use of  hardware and do not forget CPUs! During the second part in the reduc

ss is one another utility to investigate sockets(特适合大规模tcp链接)

原创文章,转载请注明: 转载自系统技术非业余研究 本文链接地址: ss is one another utility to investigate sockets(特适合大规模tcp链接) 具体的可以参考这里 他的最大特点是快, 当你的系统有上万个tcp链接要了解的时候的时候, 你就知道我说什么了. netstat等常规工具变成废铁了, 这时候他的作用就非常明显了. /proc interface is inadequate, unfortunately. When amount of sock

tcp ip参数详解

http://www.cnblogs.com/digdeep/p/4869010.html 1. TCP/IP模型 我们一般知道OSI的网络参考模型是分为7层:“应表会传网数物”——应用层,表示层,会话层,传输层,网络层,数据链路层,物理层.而实际的Linux网络层协议是参照了OSI标准,但是它实现为4层:应用层,传输层,网络层,网络接口层.OSI的多层对应到了实际实现中的一层.我们最为关注的是传输层和网络层.一般而言网络层也就是IP层,负责IP路由寻址等等细节,而传输层TCP/UDP负责数据的

Linux内核、 TCP/IP、Socket参数调优

/proc/sys/net目录 所有的TCP/IP参数都位于/proc/sys/net目录下(请注意,对/proc/sys/net目录下内容的修改都是临时的,任何修改在系统重启后都会丢失),例如下面这些重要的参数: 参数(路径+文件) 描述 默认值 优化值 /proc/sys/net/core/rmem_default 默认的TCP数据接收窗口大小(字节). 229376 256960 /proc/sys/net/core/rmem_max 最大的TCP数据接收窗口(字节). 131071 51

Linux内核TCP/IP参数分析与调优

转载于:http://www.itxuexiwang.com/a/liunxjishu/2016/0225/167.html?1456482565 如下图展示的是TCP的三个阶段.1,TCP三次握手. 2,TCP数据传输. 3,TCP的四次挥手. SYN:(同步序列编号,Synchronize Sequence Numbers)该标志仅在三次握手建立的时候有效.表示一个新的TCP连接请求. ACK:(确认编号,Acknowledgement Number)是对TCP请求的确认标志,同事提示对端系

Linux内核 TCP/IP、Socket参数调优

Doc1: /proc/sys/net目录 所有的TCP/IP参数都位于/proc/sys/net目录下(请注意,对/proc/sys/net目录下内容的修改都是临时的,任何修改在系统重启后都会丢失). http://www.360doc.com/content/16/0715/13/25686888_575696702.shtml /etc/sysctl.conf文件 /etc/sysctl.conf是一个允许你改变正在运行中的Linux系统的接口.它包含一些TCP/IP堆栈和虚拟内存系统的高