6de774f9f3463108f48d63878952976895c2c84d
Write /dev/urandom to memory first rather than directly to disk. This means we aren't testing the speed of /dev/urandom, we're testing the speed of the disk
Temperature monitoring and stress testing
Install
helm upgrade --install monitor ./helm
Temperature
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c glances -- watch -n1 sensors
CPU Throttling
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c glances -- watch -n1 lscpu
Stress
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c stress -- stress -c 48
Overclocking
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c stress -- bash time $(i=0; while (( i < 9999999 )); do (( i ++ )); done)
Stock
real 0m15.979s user 0m15.956s sys 0m0.000s
real 0m15.804s user 0m15.803s sys 0m0.000s
4.1@1.15v
real 0m16.364s user 0m16.363s sys 0m0.000s
real 0m16.441s user 0m16.439s sys 0m0.000s
Disk
Test command:
dd if=/dev/urandom of=/tmp/data bs=10M count=1024; dd if=/tmp/data of=$DISK/output; dd if=$DISK/output of=/dev/null; rm -f $DISK/output; rm -f /tmp/data
dd if=/dev/zero of=/tmp/data bs=10M count=1024; dd if=/tmp/data of=$DISK/output; dd if=$DISK/output of=/dev/null; rm -f $DISK/output; rm -f /tmp/data
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c disk -- bash
export DISK=/tmp/hdd/
export DISK=/tmp/nvme/
Mainframe
export DISK=/nvme
Freenas
export DISK=/mnt/enc0/kube
export DISK=/mnt/USB_SSD/kube
Mac
sudo rsync --progress -v ./test.data /Volumes/Backup/test.data
Description
Languages
Dockerfile
83.7%
Shell
16.3%