Network Tuning and Performance Guide

OpenBSD FAQ中文版、PF指南中文版、OpenBSD用户手册...
回复
头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

Network Tuning and Performance Guide

帖子 acheng » 2012-01-07 20:40

很不错的网络性能方面的文章,出了OpenBSD外还涉及FreeBSD/Ubuntu等。值得一读。
Many of today's desktop systems and servers come with on board gigabit network controllers. After some simple speeds tests you will soon find out that you are not be able to transfer data over the network much faster than you did with a 100MB link. There are many factors which affect network performance including hardware, operating systems and network stack options. The purpose of this page is to explain how you can achieve up to 930 megabits per second transfer rates over a gigabit link using OpenBSD as a firewall or transparent bridge.

It is important to remember that you can not expect to reach gigabit speeds using slow hardware or an unoptimized firewall rule set. Speed and efficiency are key to our goal. Lets start with the most important aspect of the equation, hardware.
https://calomel.org/network_performance.html

wkx9dragon
锌 Zn
帖子: 493
注册时间: 2010-02-02 18:00

回复: Network Tuning and Performance Guide

帖子 wkx9dragon » 2012-01-08 21:00

非常好呀,可惜是英文的。长见识了,大概看了一下,其中一条说,在PF中,openbsd 多核无用,(他只用一核,)还有到目前为止(5.0)不管是x86还是amd64大内存对openbsd无用,(至少是大部分应用),看来多核大内存的利用率有待提高呀。还有mtu按最小的走,大了没有,traceroute 来获取最小mtu,长见识而。如果有人翻译一下,又是一个经典技术贴呀!!!

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: Network Tuning and Performance Guide

帖子 leo » 2012-01-09 2:55

关于这条:
"you can not expect to reach gigabit speeds using slow hardware or an unoptimized firewall rule set. "
有一些不同的看法,在老机器上同样安装windows和OpenBSD的ftp服务器,千兆网卡的传输速度基本上一致(25MB/s左右),也可能是受总线速度的限制。

hyaska
铜 Cu
帖子: 311
注册时间: 2010-12-10 16:11

回复: Network Tuning and Performance Guide

帖子 hyaska » 2012-01-09 8:55

这个应当跟总线无关,跟网络有关,千兆传输应该开启jumpbo 以获得较高的性能。中间有交换机的话,交换机也要支持才行。

xjw8025
铝 Al
帖子: 12
注册时间: 2010-10-04 20:12

回复: Network Tuning and Performance Guide

帖子 xjw8025 » 2012-01-31 20:56

汗被和谐了 你们怎么看的

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: Network Tuning and Performance Guide

帖子 acheng » 2012-02-04 13:29

没有啊,上海ADSL,浏览没问题

none
铁 Fe
帖子: 67
注册时间: 2012-02-29 11:41

回复: Network Tuning and Performance Guide

帖子 none » 2012-03-14 3:38

PF能不能用多核和大内存不清楚,实在没什么条件测试,我的PIII 550 CPU 256MB路由器带一百多用户都才用到30%资源,实在很难评估。但其他应用没问题呢,象数据库和中间件,我跑过16c 16GB的刀片,用得满满当当的啊,各个CPU都在动,目前还没有OB对SMP支持不好的忧虑。兄弟们有其他smp和大内存的经验么?

none
铁 Fe
帖子: 67
注册时间: 2012-02-29 11:41

回复: Network Tuning and Performance Guide

帖子 none » 2012-03-14 3:58

独立的好网卡能降低CPU占用,这点是非常深有体会啊。特别是PCI-E网卡,几乎能跑满1000兆,只要硬盘读取速度跟得上。

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: Network Tuning and Performance Guide

帖子 acheng » 2012-03-14 10:31

多核对PF没有什么帮助。大内存应该是有所帮助的,不过这一点不是完全肯定。

none
铁 Fe
帖子: 67
注册时间: 2012-02-29 11:41

回复: Network Tuning and Performance Guide

帖子 none » 2012-03-14 12:05

能否通过加参数编译内核或小改一下PF来实现多核支持呢?

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 6 访客