- 论坛徽章:
- 0
|
我编译内核加了:
options MSIZE=1024
options BRIDGE
options DEVICE_POLLING
options HZ=4000
编译好后,测试包长为512字节, 发现性能没有丝毫提升。
下面是smartbit发包的时候,读出来的系统数据:
# sysctl kern.polling
kern.polling.idlepoll_sleeping: 1
kern.polling.stalled: 66
kern.polling.suspect: 6042
kern.polling.phase: 0
kern.polling.enable: 1
kern.polling.handlers: 4
kern.polling.residual_burst: 0
kern.polling.pending_polls: 0
kern.polling.lost_polls: 6762
kern.polling.short_ticks: 1178
kern.polling.reg_frac: 20
kern.polling.user_frac: 30
kern.polling.idle_poll: 0
kern.polling.each_burst: 100
kern.polling.burst_max: 300
kern.polling.burst: 300
# sysctl -a | grep mbuf
mbuf_tag 0 0K - 2 32
mbuf_jumbo_1: 16384, 0, 0, 0, 0
mbuf_jumbo_9: 9216, 0, 0, 0, 0
mbuf_jumbo_p: 4096, 0, 0, 0, 0
mbuf_cluster: 2048, 16960, 1920, 6, 1920
mbuf: 1024, 0, 1922, 126, 1245
mbuf_packet: 1024, 0, 1990, 58, 15962674
[ 本帖最后由 xfsoul 于 2006-5-25 09:52 编辑 ] |
|