- 論壇徽章:
- 0
|
2010.04.26 21:52 續(xù):
今天中午又蹦出來一個(gè)……雖然是T級(jí)別的,但仍然不行。
見下圖
bad_graph2.png (12.52 KB, 下載次數(shù): 13)
下載附件
2010-04-28 14:08 上傳
考慮到目前我們單臺(tái)Server流量不會(huì)超過2Gbps,臨時(shí)修改了部分代碼(ganglia-3.1.7)
- diff metrics.c metrics.c.ori
- 219d218
- < //TODO add log "%index %dev RxB TxB %dev RxB TxB"
- 231,232c230
- < //debug_msg("update_ifdata(%s) - Overflow in rbi: %lu -> %lu",caller,ns->rbi,rbi);
- < err_msg("update_ifdata(%s) - Overflow in rbi: %lu -> %lu",caller,ns->rbi,rbi);
- ---
- > debug_msg("update_ifdata(%s) - Overflow in rbi: %lu -> %lu",caller,ns->rbi,rbi);
- 241,242c239
- < //debug_msg("updata_ifdata(%s) - Overflow in rpi: %lu -> %lu",caller,ns->rpi,rpi);
- < err_msg("updata_ifdata(%s) - Overflow in rpi: %lu -> %lu",caller,ns->rpi,rpi);
- ---
- > debug_msg("updata_ifdata(%s) - Overflow in rpi: %lu -> %lu",caller,ns->rpi,rpi);
- 255,256c252
- < //debug_msg("update_ifdata(%s) - Overflow in rbo: %lu -> %lu",caller,ns->rbo,rbo);
- < err_msg("update_ifdata(%s) - Overflow in rbo: %lu -> %lu",caller,ns->rbo,rbo);
- ---
- > debug_msg("update_ifdata(%s) - Overflow in rbo: %lu -> %lu",caller,ns->rbo,rbo);
- 265,266c261
- < //debug_msg("update_ifdata(%s) - Overflow in rpo: %lu -> %lu",caller,ns->rpo,rpo);
- < err_msg("update_ifdata(%s) - Overflow in rpo: %lu -> %lu",caller,ns->rpo,rpo);
- ---
- > debug_msg("update_ifdata(%s) - Overflow in rpo: %lu -> %lu",caller,ns->rpo,rpo);
- 297,298c292
- < // if ((l_bin > 1.0e13) || (l_bout > 1.0e13) ||
- < if ((l_bin > 2.5e8) || (l_bout > 2.5e8) ||
- ---
- > if ((l_bin > 1.0e13) || (l_bout > 1.0e13) ||
- 300,304c294
- < err_msg("update_ifdata(%s): %lu %g, %lu %g, %lu %g, %lu %g / %g", caller,
- < l_bytes_in, l_bin,
- < l_bytes_out, l_bout,
- < l_pkts_in, l_pin,
- < l_pkts_in, l_pout,t);
- ---
- > err_msg("update_ifdata(%s): %g %g %g %g / %g",caller,l_bin,l_bout,l_pin,l_pout,t);
復(fù)制代碼 本來想每次統(tǒng)計(jì)時(shí)都計(jì)算一次當(dāng)前機(jī)器的激活的網(wǎng)卡數(shù)量來做一個(gè)上限(例如2塊千M網(wǎng)卡,一塊全速,另一塊接了百M(fèi)線,總量是1.1Gbps),特意從 ethtool的源代碼中抽取出一部分做了一個(gè)測試,但發(fā)現(xiàn)這種方式需要root權(quán)限。root權(quán)限是一定不會(huì)用的,另開一個(gè)進(jìn)程反而增加了整個(gè)方案的復(fù)雜度只能放棄這個(gè)誘人的打算 
單靠丟棄不合理數(shù)據(jù)不是個(gè)根本的解決辦法,應(yīng)該弄清楚錯(cuò)誤數(shù)據(jù)是怎么產(chǎn)生的。繼續(xù)觀察,明天有時(shí)間再修改一下,把所有日志都加進(jìn)去。 |
|