- 論壇徽章:
- 0
|
我編譯內(nèi)核加了:
options MSIZE=1024
options BRIDGE
options DEVICE_POLLING
options HZ=4000
編譯好后,測試包長為512字節(jié), 發(fā)現(xiàn)性能沒有絲毫提升。
下面是smartbit發(fā)包的時(shí)候,讀出來的系統(tǒng)數(shù)據(jù):
# 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 編輯 ] |
|