Update README with better dd command
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
This commit is contained in:
@@ -54,14 +54,13 @@ sys 0m0.000s
|
|||||||
Test command:
|
Test command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dd if=/dev/urandom of=$DISK/output bs=1M count=1024; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
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=$DISK/output bs=1M count=1024; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c disk -- bash
|
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c disk -- bash
|
||||||
export DISK=/tmp/hdd/
|
export DISK=/tmp/hdd/
|
||||||
export DISK=/tmp/usbssd/
|
|
||||||
export DISK=/tmp/nvme/
|
export DISK=/tmp/nvme/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user