leonroy
Explorer
- Joined
- Jun 15, 2012
- Messages
- 77
After spending a few days playing with dd, sysbench and iozone it's clear that iozone shows a more comprehensive overview of the file system as block and file size varies.
Two items I'm not 100% clear on when using iozone are when to use the -c and the -e option.
From what I gather:
-c
Includes close() in the timing calculations. Commit time for NFS V3 is included in the measurements by including file closure times (“-c”).
-e
Include flush (fsync,fflush) in the timing calculations. This will reduce the NFS V3 client side effects due to caches. This is particularly useful when comparing different platforms, if one wishes to eliminate cache effects and concentrate on other platform differences.
So basically:
If I'm trying to test performance of my whole disk system by running iozone locally ie. gauging cache, memory and the various sub levels before hitting spinning disks I don't want -c or -e. Using those options will simply produce a relatively flat graph.
However if I want to test network performance I will want to use -c and -e to simulate say VMDKs over NFS which forces sync on every write.
Is that correct?
Two items I'm not 100% clear on when using iozone are when to use the -c and the -e option.
From what I gather:
-c
Includes close() in the timing calculations. Commit time for NFS V3 is included in the measurements by including file closure times (“-c”).
-e
Include flush (fsync,fflush) in the timing calculations. This will reduce the NFS V3 client side effects due to caches. This is particularly useful when comparing different platforms, if one wishes to eliminate cache effects and concentrate on other platform differences.
So basically:
If I'm trying to test performance of my whole disk system by running iozone locally ie. gauging cache, memory and the various sub levels before hitting spinning disks I don't want -c or -e. Using those options will simply produce a relatively flat graph.
However if I want to test network performance I will want to use -c and -e to simulate say VMDKs over NFS which forces sync on every write.
Is that correct?