免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 7014 | 回复: 23
打印 上一主题 下一主题

[FreeBSD] FreeBSD 做NAT interrupt很高 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-10 16:28 |只看该作者 |倒序浏览
last pid: 29240;  load averages:  2.05,  2.10,  1.92    up 3+05:39:34  16:29:01
26 processes:  1 running, 25 sleeping
CPU states:  0.1% user,  0.0% nice,  0.2% system, 98.4% interrupt,  1.3% idle
Mem: 11M Active, 152M Inact, 215M Wired, 111M Buf, 619M Free
Swap: 2023M Total, 2023M Free


                    /0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
     Load Average   ||||||||

      Interface           Traffic               Peak                Total


            lo0  in      0.018 KB/s          0.150 KB/s           35.811 MB
                 out     0.018 KB/s          0.150 KB/s           35.811 MB

            xl0  in      7.613 MB/s          8.028 MB/s            3.849 GB
                 out     3.744 MB/s          4.194 MB/s          474.184 MB

            em1  in      6.880 MB/s          7.699 MB/s            1.701 GB
                 out    18.106 MB/s         18.106 MB/s            3.385 GB

            em0  in     10.647 MB/s         10.647 MB/s          499.462 MB
                 out     3.095 MB/s          3.467 MB/s            2.778 GB






-bash2-2.05b# pfctl -si
Status: Enabled for 3 days 05:36:26           Debug: Urgent

Hostid: 0x42cdd666

State Table                          Total             Rate
  current entries                   121289
  searches                      5330470451        19079.2/s
  inserts                        100991769          361.5/s
  removals                       100870480          361.0/s
Counters
  match                          292706036         1047.7/s
  bad-offset                             0            0.0/s
  fragment                             120            0.0/s
  short                                  8            0.0/s
  normalize                              0            0.0/s
  memory                                 0            0.0/s
  bad-timestamp                          0            0.0/s
  congestion                             0            0.0/s
  ip-option                             38            0.0/s
  proto-cksum                            0            0.0/s
  state-mismatch                    285782            1.0/s
  state-insert                         394            0.0/s
  state-limit                            0            0.0/s
  src-limit                         141120            0.5/s
  synproxy                               0            0.0/s


大家看看有没什么好的建议或是优化方案?

论坛徽章:
0
2 [报告]
发表于 2007-10-10 16:30 |只看该作者
关于polling,试过。但是不好用,而且使用polling还不如不用。

论坛徽章:
0
3 [报告]
发表于 2007-10-10 16:32 |只看该作者
-bash2-2.05b# vmstat -i
interrupt                          total       rate
irq3: sio1                             3          0
irq4: sio0                             3          0
irq15: ata1                           48          0
irq16: xl0 uhci0              1190409684       4252
irq18: em1 uhci2              1002745261       3582
irq24: ahd0                       145080          0
irq25: ahd1                           15          0
irq48: em0                     944849299       3375
cpu0: timer                   2238630716       7996
cpu2: timer                   2238550168       7996
cpu1: timer                            2          0
cpu3: timer                            1          0
Total                         7615330280      27203



这是 vmstat -i 信息

论坛徽章:
0
4 [报告]
发表于 2007-10-10 17:37 |只看该作者
换INTEL的卡试试

论坛徽章:
0
5 [报告]
发表于 2007-10-10 17:39 |只看该作者
原帖由 macafee 于 2007-10-10 17:37 发表
换INTEL的卡试试



有机会可以试一下,INTEL的网卡为什么就能好些呢?

论坛徽章:
0
6 [报告]
发表于 2007-10-10 23:25 |只看该作者
xl是什么卡

论坛徽章:
0
7 [报告]
发表于 2007-10-10 23:53 |只看该作者
irq48: em0                     944849299       3375



谁说em不是Intel的网卡?

论坛徽章:
0
8 [报告]
发表于 2007-10-11 00:04 |只看该作者
$ cat /var/run/dmesg.boot | grep Inte
em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port 0x1040-0x107f mem 0x48060000-0x4807ffff,0x48040000-0x4805ffff irq 21 at device 0.0 on pci7
em1: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port 0x1000-0x103f mem 0x48020000-0x4803ffff,0x48000000-0x4801ffff irq 22 at device 1.0 on pci7

论坛徽章:
0
9 [报告]
发表于 2007-10-11 02:49 |只看该作者
有一块xl0 是3Com 3c905B-TX的。三块不全是INTEL的。

论坛徽章:
0
10 [报告]
发表于 2007-10-11 11:57 |只看该作者
运行这个命令:
cat /var/run/dmesg.boot | grep driver
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP