亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
樓主: xfsoul
打印 上一主題 下一主題

[FreeBSD] 精通polling參數(shù)調(diào)優(yōu)的進(jìn)來幫幫忙吧 [復(fù)制鏈接]

論壇徽章:
0
31 [報(bào)告]
發(fā)表于 2006-05-25 08:53 |只看該作者
原帖由 xfsoul 于 2006-5-25 08:41 發(fā)表
樓上的大哥,您太強(qiáng)了!
不過有三個(gè)MSIZE的定義,而且值還不一樣,到底要怎么改呢?
-bash-2.05b# cd /usr/src/sys
-bash-2.05b# grep -r "#define MSIZE" *
compile/NTD/machine/param.h:#define  ...



改這個(gè)里面的:
/usr/src/sys/sys/param.h

論壇徽章:
0
32 [報(bào)告]
發(fā)表于 2006-05-25 08:54 |只看該作者
Before you modify the value, use sysctl -a |grep mbuf to check the mbuf utilization. According to TCP/IP Illustrated Vol.2, bigger packets uses not only mbuf, but also mbufclusters.

論壇徽章:
0
33 [報(bào)告]
發(fā)表于 2006-05-25 08:56 |只看該作者
原帖由 雨絲風(fēng)片 于 2006-5-25 08:53 發(fā)表



改這個(gè)里面的:
/usr/src/sys/sys/param.h

I think modify the source file is finding trouble.
Simply recompile the kernel with this

  1. options MSIZE=512
復(fù)制代碼

in your kernel configuration file.

論壇徽章:
0
34 [報(bào)告]
發(fā)表于 2006-05-25 09:05 |只看該作者
# 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,   2176,      6,     2176
mbuf:            256,        0,   2178,    132,     6933
mbuf_packet:     256,        0,   1024,   1286, 176098214

論壇徽章:
0
35 [報(bào)告]
發(fā)表于 2006-05-25 09:08 |只看該作者
原帖由 antijp 于 2006-5-25 08:54 發(fā)表
Before you modify the value, use sysctl -a |grep mbuf to check the mbuf utilization. According to TCP/IP Illustrated Vol.2, bigger packets uses not only mbuf, but also mbufclusters.


樓主測試的數(shù)據(jù)包大小是確定的,改這個(gè)值就是想盡量避免使用cluster,看看從對純mbuf的處理和對cluster的處理流程上是否能找到一些線索。但我感覺應(yīng)該不只是處理流程的區(qū)別,很可能和內(nèi)存的分配、緩存、復(fù)用也有關(guān)系。多試無妨。

論壇徽章:
0
36 [報(bào)告]
發(fā)表于 2006-05-25 09:14 |只看該作者
xfsoul:等你的消息,我想看看到底是不是m_devget的問題
另:antijp的方法很好.我對使用FB不太熟悉

[ 本帖最后由 xie_minix 于 2006-5-25 09:16 編輯 ]

論壇徽章:
0
37 [報(bào)告]
發(fā)表于 2006-05-25 09:36 |只看該作者
原帖由 雨絲風(fēng)片 于 2006-5-25 09:08 發(fā)表


樓主測試的數(shù)據(jù)包大小是確定的,改這個(gè)值就是想盡量避免使用cluster,看看從對純mbuf的處理和對cluster的處理流程上是否能找到一些線索。但我感覺應(yīng)該不只是處理流程的區(qū)別,很可能和內(nèi)存的分配、緩存、復(fù)用也 ...

According to the statistics posted out, the mbufclusters must have been used. But I doubt that this statistics was not gathered when running the benchmark, so perhaps it's not very useful.

[ 本帖最后由 antijp 于 2006-5-25 09:46 編輯 ]

論壇徽章:
0
38 [報(bào)告]
發(fā)表于 2006-05-25 09:47 |只看該作者
原帖由 antijp 于 2006-5-25 09:36 發(fā)表

According to the statistics posted out, the mbufclusters must have been used. But I doubt that this statistics was not gathered when running the benchmark, so perhaps it't not very useful.


從樓主的數(shù)據(jù)長度即可判斷出測試的時(shí)候肯定會使用cluster了:
If the amount of data is greater than or equal to 208 (MINCLBYTES), one or more clusters are used.

當(dāng)然,由于mbuf頭結(jié)構(gòu)的修改,目前的門限數(shù)值比208還要小,F(xiàn)在就是想先看看它不用cluster的時(shí)候的測試性能如何。

論壇徽章:
0
39 [報(bào)告]
發(fā)表于 2006-05-25 09:50 |只看該作者
我編譯內(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 編輯 ]

論壇徽章:
0
40 [報(bào)告]
發(fā)表于 2006-05-25 09:54 |只看該作者
kern.polling.burst_max: 300
kern.polling.burst: 300
這兩個(gè)值一樣,似乎burst不夠用了,繼續(xù)調(diào)大些試試看??
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP