Linux 内存性能检测工具
本文介紹關于Linux系統(tǒng)的內(nèi)存帶寬測試工具-mbw。內(nèi)存性能測試工具包括:
-
內(nèi)存帶寬測試工具——mbw;
-
內(nèi)存壓力測試工具——memtester;
-
內(nèi)存綜合性能測試工具——lmbench;
-
內(nèi)存申請(順序/隨機)與(讀/寫)速度測試工具——sysbench
?
?
?
?
Memtester——Linux內(nèi)存測試工具
一、Memtester簡單介紹
Memtester主要是捕獲內(nèi)存錯誤和一直處于很高或者很低的壞位, 其測試的主要項目有隨機值,異或比較,減法,乘法,除法,與或運算等等. 通過給定測試內(nèi)存的大小和次數(shù), 可以對系統(tǒng)現(xiàn)有的內(nèi)存進行上面項目的測試。
?
二、安裝
1. 在http://pyropus.ca/software/memtester/?下載memtester-4.3.0.tar.gz;
2. 執(zhí)行以下命令,安裝Memtester。
tar zxvf memtester-4.2.2.tar.gz
cd memtester-4.2.2
make && make install
三、 參數(shù)介紹
memtester [-p PHYSADDR] <MEMORY> [ITERATIONS]
參數(shù)說明:
- MEMORY 申請測試內(nèi)存的數(shù)量,單位默認是megabytes(兆),也可以是B K M G。
- ITERATIONS 測試的次數(shù),默認是無限。
四、測試實例
開始測試,申請28G內(nèi)存,測試一次。如下圖:
?
可使用free -h命令查看內(nèi)存使用情況。
?
lmbench的使用方法
一、引言
要評價一個系統(tǒng)的性能,通常有不同的指標,相應的會有不同的測試?方法和測試工具,一般來說為了確保測試結果的公平和權威性,會選用比較成熟的商業(yè)測試軟件。但在特定情形下,只是想要簡單比較不同系統(tǒng)或比較一些函數(shù)庫性能時,也能夠從開源世界里選用一些優(yōu)秀的工具來完成這個任務,本文就通過?lmbench?簡要介紹系統(tǒng)綜合性能測試。
二、測試軟件
Lmbench是一套簡易,可移植的,符合ANSI/C標準為UNIX/POSIX而制定的微型測評工具。一般來說,它衡量兩個關鍵特征:反應時間和帶寬。Lmbench旨在使系統(tǒng)開發(fā)者深入了解關鍵操作的基礎成本。
軟件說明:
lmbench是個用于評價系統(tǒng)綜合性能的多平臺開源benchmark,能夠測試包括文檔讀寫、內(nèi)存操作、進程創(chuàng)建銷毀開銷、網(wǎng)絡等性能,測試?方法簡單。
Lmbench是個多平臺軟件,因此能夠?qū)ν墑e的系統(tǒng)進行比較測試,反映不同系統(tǒng)的優(yōu)劣勢,通過選擇不同的庫函數(shù)我們就能夠比較庫函數(shù)的性能;更為重要的是,作為一個開源軟件,?lmbench提供一個測試框架,假如測試者對測試項目有更高的測試需要,能夠通過少量的修改源代碼達到目的(比如現(xiàn)在只能評測進程創(chuàng)建、終止的性能和進程轉(zhuǎn)換的開銷,通過修改部分代碼即可實現(xiàn)線程級別的性能測試)。
下載:
www.bitmover.com/?lmbench,最新版本3.0-a9
LMbench的主要功能:
*帶寬測評工具
?????????—讀取緩存文件
??????????—拷貝內(nèi)存
??????????—讀內(nèi)存
??????????—寫內(nèi)存
??????????—管道
??????????—TCP
??? *?反應時間測評工具
??????????—上下文切換
? ????????—網(wǎng)絡:?連接的建立,管道,TCP,UDP和RPC hot potato
??????????—文件系統(tǒng)的建立和刪除
??????????—進程創(chuàng)建
??????????—信號處理
??????????—上層的系統(tǒng)調(diào)用
??????????—內(nèi)存讀入反應時間
??? *?其他
??????????—處理器時鐘比率計算
?
LMbench的主要特性:
—對于操作系統(tǒng)的可移植性測試
評測工具是由?C語言編寫的,具有較好的可移植性(盡管它們更易于被?GCC編譯)。這對于產(chǎn)生系統(tǒng)間逐一明細的對比結果是有用的。
?
—自適應調(diào)整
Lmbench對于應激性行為是非常有用的。當遇到?BloatOS比所有競爭者慢?4倍的情況時,這個工具會將資源進行分配來修正這個問題。
?
—?數(shù)據(jù)庫計算結果
??數(shù)據(jù)庫的計算結果包括了從大多數(shù)主流的計算機工作站制造商上的運行結果。
?
—存儲器延遲計算結果
???存儲器延遲測試展示了所有系統(tǒng)(數(shù)據(jù))的緩存延遲,例如一級,二級和三級緩存,還有內(nèi)存和TLB表的未命中延遲。另外,緩存的大小可以被正確劃分成一些結果集并被讀出。硬件族與上面的描述相象。這種測評工具已經(jīng)找到了操作系統(tǒng)分頁策略的中的一些錯誤。
?
—上下文轉(zhuǎn)換計算結果
???很多人好象喜歡上下文轉(zhuǎn)換的數(shù)量。這種測評工具并不是特別注重僅僅引用“在緩存中”的數(shù)量。它時常在進程數(shù)量和大小間進行變化,并且在當前內(nèi)容不在緩存中的時候,將結果以一種對用戶可見的方式進行劃分。您也可以得到冷緩存上下文切換的實際開銷。
?
?—?回歸測試
?? Sun公司和SGI公司已經(jīng)使用這種測評工具以尋找和補救存在于性能上的問題。
? ?Intel公司在開發(fā)P6的過程中,使用了它們。
?? Linux在Linux的性能調(diào)整中使用了它們。
?
?
—?新的測評工具
???源代碼是比較小的,可讀并且容易擴展。它可以按常規(guī)組合成不同的形式以測試其他內(nèi)容。舉例來說,如包括處理連接建立的庫函數(shù)的網(wǎng)絡測量,服務器關閉等。
三、測試
在此次測試中我分兩種測試,一個是在我的pc機上測試的,一個是在SEP4020的?arm720t平臺上測試的:
(1)???? 在pc機上的測試
測試平臺:HP compoq,fedora 7 Linux 2.6.21
1、??確認安裝了C編譯器,假如沒有需要先安裝
2、??拷貝?lmbench源碼文檔?lmbench-3.0-a9.tgz到fedora的/root/test目錄下,解壓到當前目錄即可
3、??cd??lmbench-3.0-a9,在命令行鍵入make results即可開始編譯測試
4、??假如編譯沒有錯誤,會出現(xiàn)一些選擇提示以對測試進行一個配置并生成配置腳本,后續(xù)的測試將使用該配置腳本,在以后測試中也能夠直接使用同樣的配置多次測試。配置提示除了測試的內(nèi)存范圍(如“MB [default 371]”時,對內(nèi)存較大的應該避免選擇太大值,否則測試時間會很長)和是否Mail results外,基本上都能夠選擇缺省值。
5、???Lmbench根據(jù)配置文檔執(zhí)行任何測試項,在results目錄下根據(jù)系統(tǒng)類型、系統(tǒng)名和操作系統(tǒng)類型等生成一個子目錄,測試結果文檔(system name+序號)存放于該目錄下。
6、??測試完畢執(zhí)行make see可查看到測試結果報告,則可以將測試數(shù)據(jù)/results/i686-pc-linux-gnu/目錄下的文件導出為測試報告/results/summary.out文件,我們查看summary.out文件就可以看測試結果了。
(2)????在SEP4020上的測試
測試平臺:SEP4020 evb1.5, Linux 2.6.16
1、??確認宿主機上安裝了交叉編譯編譯器?arm-linux-gcc,假如沒有需要先安裝
2、??拷貝?lmbench源碼文檔?lmbench-3.0-a9.tgz到fedora的/root/test目錄下,解壓到當前目錄即可
3、??cd??lmbench-3.0-a9,在命令行鍵入make CC=?arm-linu-gcc OS=?arm-linux 即可開始編譯測試用例,編譯完成后,會在/root/test/?lmbench-3.0-a9/bin下出現(xiàn)一個?arm-linux目錄,在這個目錄下就是測試用例的目標文件。由于我們的目標平臺不支持make命令,所以我們必須另外寫一個運行腳本,腳步名為run_all.sh,放在scripts下面,內(nèi)容是:
#!/bin/sh
echo run the??lmbench?on sep4020??arm-linux
env OS=?arm-linux ./config-run
env OS=?arm-linux ./results
4、??然后將整個?lmbench-3.0-a9目錄拷貝到目標機的nfs根目錄下面,然后進入目標機的串口終端,在/?lmbench-3.0-a9/scripts下面輸入./run_all.sh
假如交叉編譯沒有錯誤,會出現(xiàn)一些選擇提示以對測試進行一個配置并生成配置腳本,后續(xù)的測試將使用該配置腳本,在以后測試中也能夠直接使用同樣的配置多次測試。配置提示除了測試的內(nèi)存范圍(如“MB [default 19]”時,對內(nèi)存較大的應該避免選擇太大值,否則測試時間會很長)和是否Mail results外,基本上都能夠選擇缺省值。
5、???Lmbench根據(jù)配置文檔執(zhí)行任何測試項,在results目錄下根據(jù)系統(tǒng)類型、系統(tǒng)名和操作系統(tǒng)類型等生成一個子目錄,測試結果文檔(system name+序號)存放于該目錄下。
6、??測試完畢執(zhí)行,在虛擬機fedora7中進入/nfs/?lmbench-3.0-a9 鍵入make see命令可生成測試結果報告,它可以將測試數(shù)據(jù)/results/i686-pc-linux-gnu/目錄下的文件導出為測試報告/results/summary.out文件,我們查看summary.out文件就可以看測試結果了。
?
四、關于測試結果及說明
make[1]: Entering directory `/nfs/lmbench-3.0-a9/results' ???????????????? L M B E N C H? 3 . 0?? S U M M A R Y------------------------------------(Alpha software, do not distribute) Basic system parameters ------------------------------------------------------------------------------ Host???????????????? OS Description????????????? Mhz? tlb? cache? mem?? scalpages line?? par?? loadbytes? --------- ------------- ----------------------- ---- ----- ----- ------ ---- 192.168.0? Linux 2.6.16?????????????? arm-linux?? 85??? 60???? 8 1.0000??? 1 192.168.0? Linux 2.6.27?????????????? arm-linux?? 86??? 63??? 16 1.0000??? 1 192.168.0? Linux 2.6.16?????????????? arm-linux?? 86??? 63??? 16 1.0000??? 1 192.168.0? Linux 2.6.16?????????????? arm-linux?? 86??? 63??? 16 1.0000??? 1 192.168.0? Linux 2.6.16?????????????? arm-linux?? 86??? 63??? 16 1.0000??? 1 localhost Linux 2.6.21-?????? i686-pc-linux-gnu 1817???? 8?? 128 1.3300??? 1 localhost Linux 2.6.21-?????? i686-pc-linux-gnu 1864???? 8?? 128 1.2900??? 1 Processor, Processes - times in microseconds - smaller is better ------------------------------------------------------------------------------ Host???????????????? OS? Mhz null null????? open slct sig? sig? fork exec sh? call? I/O stat clos TCP? inst hndl proc proc proc --------- ------------- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- 192.168.0? Linux 2.6.16?? 85 2.04 8.44 187. 2064????? 21.0 81.2 9655 42.K 63.K 192.168.0? Linux 2.6.27?? 86 2.69 8.44 266. 5338????? 20.7 94.7 10.K 44.K 73.K 192.168.0? Linux 2.6.16?? 86 2.03 8.34 185. 5100????? 20.7 85.9 9468 63.K 121K 192.168.0? Linux 2.6.16?? 86 2.03 8.72 185. 19.K????? 20.7 84.9 9556 53.K 72.K 192.168.0? Linux 2.6.16?? 86 2.04 8.33 185. 5321????? 20.7 80.5 9395 42.K 101K localhost Linux 2.6.21- 1817 1.11 1.26 3.08 5.17 10.2 1.70 2.85 674. 1922 5177 localhost Linux 2.6.21- 1864 1.09 1.26 2.98 5.05 8.94 1.48 3.27 1083 2086 6119 Basic integer operations - times in nanoseconds - smaller is better ------------------------------------------------------------------- Host???????????????? OS? intgr intgr? intgr? intgr? intgr? bit?? add??? mul??? div??? mod?? --------- ------------- ------ ------ ------ ------ ------ 192.168.0? Linux 2.6.16?? 11.6 8.6900?? 52.1 1489.3? 255.9 192.168.0? Linux 2.6.27?? 11.5 8.5800?? 52.2 1469.2? 252.6 192.168.0? Linux 2.6.16?? 11.5 8.5400?? 52.2 1472.0? 252.9 192.168.0? Linux 2.6.16?? 11.5 8.6200?? 52.0 1472.8? 251.9 192.168.0? Linux 2.6.16?? 11.5 8.6400?? 52.2 1472.5? 254.5 localhost Linux 2.6.21- 0.5600 0.2800 0.2000?? 20.6?? 10.9 localhost Linux 2.6.21- 0.6100 0.2700 0.1700?? 20.0 9.8600 Basic uint64 operations - times in nanoseconds - smaller is better ------------------------------------------------------------------ Host???????????????? OS int64? int64? int64? int64? int64? bit??? add??? mul??? div??? mod?? --------- ------------- ------ ------ ------ ------ ------ 192.168.0? Linux 2.6.16??? 23.???????? 691.6 4295.6 3895.0 192.168.0? Linux 2.6.27??? 23.???????? 685.4 4192.8 4074.3 192.168.0? Linux 2.6.16??? 23.???????? 683.0 4199.0 4082.1 192.168.0? Linux 2.6.16??? 23.???????? 680.7 4202.6 4082.9 192.168.0? Linux 2.6.16??? 23.???????? 686.9 4235.7 4080.3 localhost Linux 2.6.21-? 0.690??????? 0.6200?? 34.5?? 41.4 localhost Linux 2.6.21-? 0.660??????? 0.6100?? 36.8?? 40.2 Basic float operations - times in nanoseconds - smaller is better ----------------------------------------------------------------- Host???????????????? OS? float? float? float? floatadd??? mul??? div??? bogo --------- ------------- ------ ------ ------ ------ 192.168.0? Linux 2.6.16 6902.1 7781.9? 12.1K? 42.2K 192.168.0? Linux 2.6.27 6911.0 6568.4? 11.6K? 43.0K 192.168.0? Linux 2.6.16 6757.4 7578.5? 11.9K? 43.5K 192.168.0? Linux 2.6.16 6763.1 7611.3? 11.7K? 43.5K 192.168.0? Linux 2.6.16 6759.3 7640.4? 11.9K? 43.5K localhost Linux 2.6.21- 1.6600 2.7900?? 21.7?? 20.6 localhost Linux 2.6.21- 1.6300 2.7200?? 20.9?? 20.1 Basic double operations - times in nanoseconds - smaller is better ------------------------------------------------------------------ Host???????????????? OS? double double double doubleadd??? mul??? div??? bogo --------- ------------- ------? ------ ------ ------ 192.168.0? Linux 2.6.16 9955.5? 10.6K? 22.8K? 79.8K 192.168.0? Linux 2.6.27 9157.0 9909.4? 20.6K? 79.4K 192.168.0? Linux 2.6.16 9793.3? 10.3K? 22.4K? 79.8K 192.168.0? Linux 2.6.16 9703.9? 10.4K? 22.2K? 79.9K 192.168.0? Linux 2.6.16 9746.9? 10.3K? 22.3K? 79.7K localhost Linux 2.6.21- 1.6900 2.7900?? 21.2?? 20.6 localhost Linux 2.6.21- 1.6300 2.8800?? 21.0?? 20.2 Context switching - times in microseconds - smaller is better ------------------------------------------------------------------------- Host???????????????? OS? 2p/0K 2p/16K 2p/64K 8p/16K 8p/64K 16p/16K 16p/64Kctxsw? ctxsw? ctxsw ctxsw? ctxsw?? ctxsw?? ctxsw --------- ------------- ------ ------ ------ ------ ------ ------- ------- 192.168.0? Linux 2.6.16? 164.8? 120.0? 311.9? 165.3? 162.5?? 165.9?? 151.1 192.168.0? Linux 2.6.27? 247.5? 196.1? 198.4? 238.0? 254.9?? 262.9?? 291.2 192.168.0? Linux 2.6.16? 164.4? 118.5? 115.2? 161.1? 156.4?? 164.4?? 164.3 192.168.0? Linux 2.6.16? 167.2? 116.6? 119.6? 166.9? 161.9?? 171.3?? 158.1 192.168.0? Linux 2.6.16? 172.5? 117.4? 114.3? 161.3? 147.6?? 163.8?? 127.5 localhost Linux 2.6.21-?? 11.0?? 11.6?? 11.7?? 15.3?? 19.2??? 16.8??? 25.1 localhost Linux 2.6.21-?? 10.2?? 11.4?? 11.3?? 14.3?? 20.9??? 17.4??? 26.0 *Local* Communication latencies in microseconds - smaller is better --------------------------------------------------------------------- Host???????????????? OS 2p/0K? Pipe AF???? UDP? RPC/?? TCP? RPC/ TCPctxsw?????? UNIX???????? UDP???????? TCP conn --------- ------------- ----- ----- ---- ----- ----- ----- ----- ---- 192.168.0? Linux 2.6.16 164.8 482.3 925.???????????????????????????? 192.168.0? Linux 2.6.27 247.5 770.7 1069???????????????????????????? 192.168.0? Linux 2.6.16 164.4 477.4 917.???????????????????????????? 192.168.0? Linux 2.6.16 167.2 472.9 926.???????????????????????????? 192.168.0? Linux 2.6.16 172.5 474.9 913.???????????????????????????? localhost Linux 2.6.21-? 11.0? 28.3 50.8? 45.9? 55.2? 48.2? 59.8 126. localhost Linux 2.6.21-? 10.2? 32.1 55.7? 36.7? 49.2? 40.2? 53.1 113. *Remote* Communication latencies in microseconds - smaller is better --------------------------------------------------------------------- Host???????????????? OS?? UDP? RPC/? TCP?? RPC/ TCPUDP???????? TCP? conn --------- ------------- ----- ----- ----- ----- ---- 192.168.0? Linux 2.6.16???????????????????????????? 192.168.0? Linux 2.6.27???????????????????????????? 192.168.0? Linux 2.6.16???????????????????????????? 192.168.0? Linux 2.6.16???????????????????????????? 192.168.0? Linux 2.6.16???????????????????????????? localhost Linux 2.6.21-???????????????????????????? localhost Linux 2.6.21-???????????????????????????? File & VM system latencies in microseconds - smaller is better ------------------------------------------------------------------------------- Host???????????????? OS?? 0K File????? 10K File???? Mmap??? Prot?? Page?? 100fdCreate Delete Create Delete Latency Fault? Fault? selct --------- ------------- ------ ------ ------ ------ ------- ----- ------- ----- 192.168.0? Linux 2.6.16 6410.3 6135.0? 37.0K 6896.6? 5112.0 3.124??? 36.8 280.8 192.168.0? Linux 2.6.27? 18.9K? 71.4K? 55.6K? 28.6K?? 16.2K? 15.9??? 54.2 194.3 192.168.0? Linux 2.6.16? 22.7K? 15.4K 1000.K? 47.6K? 4926.0 5.213??? 37.1 284.2 192.168.0? Linux 2.6.16? 31.2K? 29.4K? 41.7K? 50.0K? 4907.0 1.087??? 36.0 277.1 192.168.0? Linux 2.6.16? 33.3K? 25.0K? 58.8K 9434.0? 5108.0 9.428??? 37.1 285.6 localhost Linux 2.6.21-? 112.0?? 12.4?? 88.5? 130.8? 7413.0 2.360 5.98870 4.635 localhost Linux 2.6.21-?? 36.1?? 19.0? 181.2? 138.4? 9006.0 2.134?? 482.1 4.148 *Local* Communication bandwidths in MB/s - bigger is better ----------------------------------------------------------------------------- Host??????????????? OS? Pipe AF??? TCP? File?? Mmap? Bcopy? Bcopy? Mem?? MemUNIX????? reread reread (libc) (hand) read write --------- ------------- ---- ---- ---- ------ ------ ------ ------ ---- ----- 192.168.0? Linux 2.6.16 10.2 11.2??????? 13.1?? 32.8?? 19.1?? 17.8 32.8? 72.9 192.168.0? Linux 2.6.27 8.96 11.4??????? 12.9?? 32.6?? 19.1?? 17.7 32.7? 71.2 192.168.0? Linux 2.6.16 10.2 11.2??????? 13.0?? 32.8?? 19.0?? 17.8 32.7? 71.2 192.168.0? Linux 2.6.16 10.2 11.2??????? 12.9?? 32.9?? 19.0?? 17.8 32.9? 71.6 192.168.0? Linux 2.6.16 10.2 11.2??????? 12.9?? 32.9?? 19.0?? 17.8 32.7? 71.6 localhost Linux 2.6.21- 1153 436. 640. 1742.8 3463.7 1239.0 1116.5 3502 1589. localhost Linux 2.6.21- 1194 451. 744. 1742.3 3443.5 1217.8 1159.0 3357 1555. Memory latencies in nanoseconds - smaller is better(WARNING - may not be correct, check graphs) ------------------------------------------------------------------------------ Host???????????????? OS?? Mhz?? L1 $?? L2 $??? Main mem??? Rand mem??? Guesses --------- -------------?? ---?? ----?? ----??? --------??? --------??? ------- 192.168.0? Linux 2.6.16??? 85?? 33.6? 293.4?????? 296.6?????? 856.8??? No L2 cache? 192.168.0? Linux 2.6.27??? 86?? 35.2? 293.8?????? 309.8?????? 863.1??? No L2 cache? 192.168.0? Linux 2.6.16??? 86?? 35.4? 293.7?????? 310.3?????? 861.4??? No L2 cache? 192.168.0? Linux 2.6.16??? 86?? 35.4? 293.7?????? 309.9?????? 863.6??? No L2 cache? 192.168.0? Linux 2.6.16??? 86?? 35.4? 293.6?????? 308.2?????? 860.2??? No L2 cache? localhost Linux 2.6.21-? 1817 1.6620 7.9160??????? 98.6?????? 191.7 localhost Linux 2.6.21-? 1864 1.7240 7.7130?????? 104.3?????? 205.4 make[1]: Leaving directory `/nfs/lmbench-3.0-a9/results'主要技術參數(shù)說明:
分類
其中host為localhost 說明是我用的虛擬機,而192.168.0則說明是用4020進行的測試
技術參數(shù)
參數(shù)說明
(1)Basic system parameters(系統(tǒng)基本參數(shù))
Tlb pages:TLB(Translation Lookaside Buffer)的頁面數(shù)
Cache line bytes?:(cache的行字節(jié)數(shù))
Mem par
memory hierarchy parallelism
Scal load:并行的lmbench數(shù)
(2)Processor, Processes(處理器、進程操作時間)
Null call:簡單系統(tǒng)調(diào)用(取進程號)
Null I/O:簡單IO操作(空讀寫的平均)
Stat:取文檔狀態(tài)的操作
Open clos:打開然后立即關閉關閉文檔操作
Slct tcp
Select:配置
Sig inst:配置信號
Sig hndl:捕獲處理信號
Fork proc?:Fork進程后直接退出
Exec proc:Fork后執(zhí)行execve調(diào)用再退出
Sh proc:Fork后執(zhí)行shell再退出
(3)Basic integer/float/double operations
略
(4)Context switching?上下文切換時間
2p/16K:?表示2個并行處理16K大小的數(shù)據(jù)
(5)*Local* Communication latencies(本地通信延時,通過不同通信方式發(fā)送后自己立即讀)
Pipe:管道通信
AF UNIX
Unix協(xié)議
UDP
UDP
RPC/UDP
TCP
RPC/TCP
TCP conn
TCP建立connect并關閉描述字
(6)File & VM system latencies(文檔、內(nèi)存延時)
File Create & Delete:創(chuàng)建并刪除文檔
MMap Latency:內(nèi)存映射
Prot Fault
Protect fault
Page Fault:缺頁
100fd selct:對100個文檔描述符配置select的時間
(7)*Local* Communication bandwidths(本地通信帶寬)
Pipe:管道操作
AF UNIX
Unix協(xié)議
TCP
TCP通信
File reread:文檔重復讀
MMap reread:內(nèi)存映射重復讀
Bcopy(libc):內(nèi)存拷貝
Bcopy(hand):內(nèi)存拷貝
Mem read:內(nèi)存讀
Mem write:內(nèi)存寫
(8)Memory latencies(內(nèi)存操作延時)
L1:緩存1
L2:緩存2
Main Mem:連續(xù)內(nèi)存
Rand Mem:內(nèi)存隨機訪問延時
Guesses
假如L1和L2近似,會顯示“No L1 cache?”
假如L2和Main Mem近似,會顯示“No L2 cache?”
sysbench測試工具:
https://blog.csdn.net/cy309173854/article/details/53112904?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-2.control&dist_request_id=1619769279534_96953&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-2.control
?
?
總結
以上是生活随笔為你收集整理的Linux 内存性能检测工具的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: android分析内存工具,Androi
- 下一篇: Linux:内存泄漏检测工具--Valg