-
Notifications
You must be signed in to change notification settings - Fork 107
Description
For distributed storage, there has to be a way for pbench-fio to drop cache on storage servers prior to a performance test. Otherwise read performance data will not be valid.
Part of the problem is that pbench-fio is intended to run multiple test types in sequence with the -t option. That's great functionality, but it means that there is no opportunity for the user to drop cache on storage servers prior to running a read test. For example, if the pbench-fio user specifies -t write,read (a common and reasonable test sequence), the cache has to be dropped after the write but before the read.
A possible solution to this is to add a "--cache-drop-cmd" option that specifies a call-out to an external script. For example:
--cache-drop-cmd='ansible -i ceph-hosts -m shell -a /usr/local/bin/drop-cache.sh osds'
This does not require pbench to know anything about the underlying storage architecture - all that is handled in the call-out command. But it is vital for Ceph, Gluster, NFS, SMB, and iSCSI performance testing for example.
If there are no objections to this proposal I'll submit a pull request.
Unless there are objections to this