Skip to content

Latest commit

 

History

History
94 lines (55 loc) · 2.22 KB

README.md

File metadata and controls

94 lines (55 loc) · 2.22 KB

No Web Required

2020-04-28-122156_613x242_scrot.png

Performance monitoring from the terminal.
Currently only XEN (as with xentop) is supported.
To be executed on every single node.

Requirements

Make sure you have XEN up and running

xl info
xentop -b -i1 | head

Make sure all your guests have TMEM enabled. Otherwise disable RAM from the graphs by setting showram=0 in the configuration.

Make sure you've got KSH93 available on your dom0 (floating point capable).

Get ready for sparkles. Note there's spark.bash as an alternative (untested).

wget https://git.zx2c4.com/spark/plain/spark.c
gcc -o spark spark.c -lm
cp -i spark /usr/local/bin/

Setup

CPU power, MAXMEM and NIC speed is evaluated dynamically. However DISK speed is tricky to determine (in sectors of 512 bytes per second). Some testing is advised to correctly define max values for disk performance.

domU

hdparm -t /dev/xvda1

dom0

cp nwr.conf /etc/
vi /etc/nwr.conf

Usage

We want to use system's memory instead of expansive disk i/o. Assuming /tmp/ is on tmpfs already

mount | grep tmpfs

otherwise

mkdir /tmp/fastio/
#mount -t tmpfs -o size=2G tmpfs /tmp/fastio/
vi /etc/fstab

tmpfs /tmp/fastio tmpfs nosuid,nodev,noexec,async,noatime,nodiratime,size=2097152k 0 0

mount /mnt/fastio/

Start the TUI

screen -S NWR

cd ~/nwr/
./nwr.ksh

and when finished

rm -rf /tmp/fastio/
#umount /tmp/fastio/

Acceptance testing

on some guest

CPU - https://pub.nethence.com/benchmarks/bench-cpu

RAM - https://pub.nethence.com/benchmarks/bench-ram

DISK I/O - https://pub.nethence.com/benchmarks/bench-io

TX/RX - https://pub.nethence.com/benchmarks/bench-nic

Troubleshooting

SIOCGMIIPHY on 'guestbr0' failed: Operation not supported

==> point to the underlying interface, not the bridge itself.