stressapptest交叉編譯到arm的方法

 

測試可以採用 sdk 下的google開源工具 external/stressapptest
也可以採用 開源的memtester。

(1)stressapptest 其是:Stressful Application Test (stressapptest) 的簡稱
Stressful Application Test試圖讓來自處理器和I/O到內存的數據儘量隨機化,以創造出模擬現實的環境來測試現在的硬件設備是否穩定,Google就在使用它.其大概如下:
stressapptest may be used for various purposes:
Stress test: as described here.           
Hardware qualification and debugging.
Memory interface test: see theTheory behind this.
Disk testing. 
據谷歌的介紹,這個軟件會生產線程來拷貝和直接對磁盤進行讀取和寫入。目標則是儘可能地載入系統內存,以便更加有效地進行測試。該軟件更多的時候測試的是內存控制器和總線接口,而不是存儲單元的功能。谷歌稱,與其他內存診斷程序的比較,五分之一的內存模塊相關的系統誤差只能通過stressapptest發現。 
參數介紹:
e.g. MemFree indicates that there are 1140234 kB memory left. You can use the following command to start the stress test:      
./stressapptest -s 86400 -m 4 -i 4 -c 4 -C 4 -M xxx      
It is to stress test memory copy, invert, crc check for 1hour with 900Mb memory.       
-s: number of second to run the application  測試時間      
-m: number of memory copy threads to run  複製線程數  (Memory Copy)    
-i: number of memory invert threads to run  反轉線程數 (Invert Copy)   
-c: CRC check  CRC校驗                                 (Data Check)
-C: number of memory CPU stress threads to run    CPU壓力線程數      
-M: Megabytes of ram to run  儘可能測試最大的可用存儲空間,(設置超過了memfree,就會被kill)  


(2)Memtester主要是捕獲內存錯誤和一直處於很高或者很低的壞位, 其測試的主要項目有隨機值,異或比較,減法,乘法,除法,與或運算等等. 通過給定測試內存的大小和次數, 可以對系統現有的內存進行上面項目的測試。 
參數介紹:
memtester [-p PHYSADDR] <MEMORY> [ITERATIONS]
MEMORY 申請測試內存的數量,單位默認是megabytes(兆),也可以是B K M G
ITERATIONS 測試的次數,默認是無限
 

./configure --host=armv7a-none-linux-gnueabi  --with-static
make

 

 

參考:https://blog.csdn.net/morixinguan/article/details/54133592

github地址:https://github.com/stressapptest/stressapptest

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章