Python

Multiple Linux Hosts System Performance Test Script

Brief Multiple Linux Hosts System Performance Test Script Let me say this in Chinese, since I'm running out of words. It's just a script for batch performance t

Brief

Multiple Linux Hosts System Performance Test Script
Let me say this in Chinese, since I'm running out of words. It's just a script for batch performance testing on a Xinchuang (domestic substitution) project. I don't know how to write a setup.py, so I patched it together by hand.

Management-side environment:

  • RHEL 7.9 and above (other versions not tested; whether they're supported is not my concern)
  • Python 3.6.8 and above
  • Paramiko 2.x and its dependencies

Supported Managed Host Versions:

  • RHEL7/8
  • UOS20 (x86_64 & arm)
  • KylinV10 (x86_64 & arm)

Supported Testing Tools

  • lmbench
  • iozone3
  • LTP
  • netperf
  • stream
  • unixbench

Usage

Usage: ./remoteconsole.pyanyone in the know will understand at a glance

Main Menu

--------------------------------M A I N M E N U--------------------------------

  1. List and select host group [None selected means all hosts]
  2. Ping test for multiple host[s]
  3. Init remote ssh console for host[s] specified (once group changed)
  4. YUM setup for host[s] initiated
  5. Install necessary package[s]
  6. Put package[s] to remote machine
  7. Sub Menu for system bench test
  8. Inactive mode (Send command manually)

3.14 --Remove the whole directory '/tmp/sysperftest'

Submenu

--------------------------------------------------------------------------------- FIO (I/O) -- # todo IOZONE3 (Filesystem I/O) -- STREAM Benchmark (Memory) -- NETPERF (Network Performance) -- LMBENCH (FULL, Processor/Memory/File/Bandwidth)

UNIXBENCH (FULL) -- <system bench test passed, get run state FAILED.> Stress-ng (POC)

LTP (POC)

--------------------------------------------------------------------------------------- l. List and select script[s] running background r. Running state of script [True: running | False: finished] c. Clean last results. <rm -rf /tmp/sysperftest/sysperftest_*> f. Fetch results exist (All files those names starts with 'sysperftest_')

R. Read 5 lines of log file '/tmp/sysperftest/log/remoteconsole.log' L. List directory '/tmp/sysperftest/'

A. Run all test and fetch the results

[None][None]>>>>

https://github.com/n0rvyn/sysperftest

N
norvyn

独立 iOS 开发者,写字的人。在一座有海的城市,慢慢地做一些小而确定的东西。An independent iOS developer and writer — slowly making small, certain things in a city by the sea.

评论Comments

加载中…Loading…

留下评论Leave a comment