Skip to content

pbench-fio: needs a --cache-drop feature #381

@bengland2

Description

@bengland2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions