Linux command – Stressful Application Test (Network)

Loading

前面有使用過 Stressful Application Test (Stressapptest) https://benjr.tw/96740 這邊針對他的網路測試來做說明.

測試環境為 Ubuntu16.04 64bits

Net Copy

Stressapptest 也可以透過網路來進行測試,需要使用兩台機器,並使用下面兩個參數.

  • -n ipaddr : add a network thread connecting to system at ‘ipaddr’.
  • –listen : run a thread to listen for and respond to network threads.

-n 為待測端要指定 listen 的 IP.另外一台使用 –list 等待資料傳輸.

IP – 172.16.15.130

root@ubuntu:~# stressapptest -s 100 -M 500 --listen

IP – 172.16.15.135

root@ubuntu:~# stressapptest -s 60 -M 500 -n 172.16.15.130 
Log: Commandline - stressapptest -s 60 -M 500 -n 172.16.15.130
Stats: SAT revision 1.0.6_autoconf, 64 bit binary
Log: buildd @ kapok on Wed Jan 21 17:09:35 UTC 2015 from open source release
Log: 1 nodes, 1 cpus.
Log: Defaulting to 1 copy threads
Log: Prefer plain malloc memory allocation.
Log: Using memaligned allocation at 0x7ff109a25000.
Stats: Starting SAT, 500M, 60 seconds
Log: Region mask: 0x1
Log: Seconds remaining: 50
Log: Seconds remaining: 40
Log: Seconds remaining: 30
Log: Seconds remaining: 20
Log: Seconds remaining: 10
Stats: Found 0 hardware incidents
Stats: Completed: 189336.00M in 60.02s 3154.53MB/s, with 0 hardware incidents, 0 errors
Stats: Memory Copy: 184596.00M at 3075.88MB/s
Stats: File Copy: 0.00M at 0.00MB/s
Stats: Net Copy: 4740.00M at 78.98MB/s
Stats: Data Check: 0.00M at 0.00MB/s
Stats: Invert Data: 0.00M at 0.00MB/s
Stats: Disk: 0.00M at 0.00MB/s

Status: PASS - please verify no corrected errors

可以觀察到 Memory 與 Net 皆有傳輸量.

Stats: Completed: 189336.00M in 60.02s 3154.53MB/s, with 0 hardware incidents, 0 errors
Stats: Memory Copy: 184596.00M at 3075.88MB/s
Stats: Net Copy: 4740.00M at 78.98MB/s

我們也可以在單一台系統指定 loopback 127.0.0.1 + listen 為測試網路介面,這樣就不需要額外一台機器做網路測試,但只有傳輸沒有接收的封包,stressapptest 會有 Log: Net thread did not receive any data, exiting 的訊息.

root@ubuntu:~# stressapptest -s 60 -M 500 -n 127.0.0.1 --listen
Log: Commandline - stressapptest -s 60 -M 500 -n 127.0.0.1 --listen
Stats: SAT revision 1.0.6_autoconf, 64 bit binary
Log: buildd @ kapok on Wed Jan 21 17:09:35 UTC 2015 from open source release
Log: 1 nodes, 1 cpus.
Log: Defaulting to 1 copy threads
Log: Prefer plain malloc memory allocation.
Log: Using memaligned allocation at 0x7fc222778000.
Stats: Starting SAT, 500M, 60 seconds
Log: Region mask: 0x1
Log: Seconds remaining: 50
Log: Seconds remaining: 40
Log: Seconds remaining: 30
Log: Seconds remaining: 20
Log: Seconds remaining: 10
Log: Net thread did not receive any data, exiting.
Stats: Found 0 hardware incidents
Stats: Completed: 342930.00M in 60.04s 5711.86MB/s, with 0 hardware incidents, 0 errors
Stats: Memory Copy: 272066.00M at 4534.04MB/s
Stats: File Copy: 0.00M at 0.00MB/s
Stats: Net Copy: 70864.00M at 1180.62MB/s
Stats: Data Check: 0.00M at 0.00MB/s
Stats: Invert Data: 0.00M at 0.00MB/s
Stats: Disk: 0.00M at 0.00MB/s

Status: PASS - please verify no corrected errors
沒有解決問題,試試搜尋本站其他內容

One thought on “Linux command – Stressful Application Test (Network)

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料