Skip to content

Instantly share code, notes, and snippets.

@alwaysR9
Last active January 19, 2020 15:45
Show Gist options
  • Save alwaysR9/e2bd933b6eaaf347e03a714e82ef5d2e to your computer and use it in GitHub Desktop.
Save alwaysR9/e2bd933b6eaaf347e03a714e82ef5d2e to your computer and use it in GitHub Desktop.
test disk io with two read process
echo 1 > /proc/sys/vm/drop_caches
#dd if=data/cache.block.1 bs=4096k count=3000000 of=/dev/null iflag=direct &
#dd if=data/cache.block.2 bs=4096k count=3000000 of=/dev/null iflag=direct &
dd if=data/cache.block.1 bs=4096k count=3000000 of=/dev/null &
dd if=data/cache.block.2 bs=4096k count=3000000 of=/dev/null &
echo 1 > /proc/sys/vm/drop_caches
fio -filename=data/cache.block.1 -direct=0 -iodepth 1 -rw=read -ioengine=psync -bs=16M -size=30G -numjobs=1 -runtime=1000 -group_reporting -name=fio_1 &
fio -filename=data/cache.block.2 -direct=0 -iodepth 1 -rw=read -ioengine=psync -bs=16M -size=30G -numjobs=1 -runtime=1000 -group_reporting -name=fio_2 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment