Browse Source

Add details on dropping caches before benchmarks

pull/959/head
Antonio SJ Musumeci 3 years ago
parent
commit
f598d3bc38
  1. 9
      README.md
  2. 13
      man/mergerfs.1

9
README.md

@ -925,6 +925,15 @@ $ dd if=/dev/zero of=/mnt/mergerfs/1GB.file bs=1M count=1024 oflag=nocache conv=
$ dd if=/mnt/mergerfs/1GB.file of=/dev/null bs=1M count=1024 iflag=nocache conv=fdatasync status=progress
```
### other benchmarks
If you are attempting to benchmark other behaviors you must ensure you clear kernel caches before runs. In fact it would be a good deal to run before the read and write benchmarks as well just in case.
```
sync
echo 3 | sudo tee /proc/sys/vm/drop_caches
```
# TIPS / NOTES

13
man/mergerfs.1

@ -1979,6 +1979,19 @@ $\ dd\ if=/dev/zero\ of=/mnt/mergerfs/1GB.file\ bs=1M\ count=1024\ oflag=nocache
$\ dd\ if=/mnt/mergerfs/1GB.file\ of=/dev/null\ bs=1M\ count=1024\ iflag=nocache\ conv=fdatasync\ status=progress
\f[]
.fi
.SS other benchmarks
.PP
If you are attempting to benchmark other behaviors you must ensure you
clear kernel caches before runs.
In fact it would be a good deal to run before the read and write
benchmarks as well just in case.
.IP
.nf
\f[C]
sync
echo\ 3\ |\ sudo\ tee\ /proc/sys/vm/drop_caches
\f[]
.fi
.SH TIPS / NOTES
.IP \[bu] 2
This document is very literal and thorough.

Loading…
Cancel
Save