服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

FreeBSD 8.1networking连接不稳定

我有三个FreeBSD 8.1在三个不同的硬件上运行,因此也由不同的networking适配器(bce,bge和igb)组成。 我发现networking连接是不稳定的,我尝试了一些> 10MB的文件,发现我不能总是成功完成文件。 我进一步检查了我的networkingpipe理员,他声称,问题是由networking驱动程序无法支持负载,他试图使用庞大的数据包大小(约15K),而我的服务器将数据包一致地放在一个固定的时间间隔。 我发现这个陈述可能是不正确的,因为三台服务器使用三个不同的networking驱动器,并且由三个不同的networking适配器和不同的networking驱动器引起相同的问题是完全不可能的。 从那时起,我试图通过玩弄/etc/sysctl.conf数字来调整性能,但没有运气。 kern.ipc.somaxconn=1024 kern.ipc.shmall=3276800 kern.ipc.shmmax=1638400000 # Security net.inet.ip.redirect=0 net.inet.ip.sourceroute=0 net.inet.ip.accept_sourceroute=0 net.inet.icmp.maskrepl=0 net.inet.icmp.log_redirect=0 net.inet.icmp.drop_redirect=1 net.inet.tcp.drop_synfin=1 # Security net.inet.udp.blackhole=1 net.inet.tcp.blackhole=2 # Required by pf net.inet.ip.forwarding=1 #Network Performance Tuning kern.ipc.maxsockbuf=16777216 net.inet.tcp.rfc1323=1 net.inet.tcp.sendbuf_max=16777216 net.inet.tcp.recvbuf_max=16777216 # Setting specifically for 1 or even 10Gbps network net.local.stream.sendspace=262144 net.local.stream.recvspace=262144 net.inet.tcp.local_slowstart_flightsize=10 net.inet.tcp.nolocaltimewait=1 net.inet.tcp.mssdflt=1460 net.inet.tcp.sendbuf_auto=1 net.inet.tcp.sendbuf_inc=16384 net.inet.tcp.recvbuf_auto=1 net.inet.tcp.recvbuf_inc=524288 net.inet.tcp.sendspace=262144 net.inet.tcp.recvspace=262144 […]