Some benchmark sripts and configs of TiFS. There is the result tested by my personal PC with following requirements.
| CPU | Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz |
| Memory | 2 x 16GB DDR4 2666 |
| Disk | PM981 512GB M.2 NVME |
First at all, you need a tikv cluster to store data of tifs. It's recommended to install TiUP and use our deploy.sh:
./deploy.sh <config file> <replicas>You can pick a config file between tikv-template.yaml and titan.yaml. For example, if you want to deploy a tikv cluster with 3 replicas and titan enabled, you should execute ./deploy.sh titan.yaml 3.
When you have a tikv cluster, you can mount it by TiFS. It's recommended to install TiFS by docker. You can use our mount.sh with docker installed:
./mount.sh <mount point> <block size>The mount point is a directory in your local filesystem, and you can pick a block size in 4k, 64k and 1m.
Just umount <mount point> and mount again.
NOTICE
You should restart tikv cluster before you remount with different block size, and all the data will be cleaned after restart.
We test the read/write speed by dd and test the random read/write speed by fio. You can use our dd.sh and fio.sh with dd and fio installed:
dd <dir> <blksize>
fio <dir> <blksize>The dir can be any sub directory of mount point and the blksize is the workload block size. You can pick block size in in 4k, 64k, 1M, 4M for dd and pick it in 4k, 64k, 1m for fio.