Skip to content

Read computes bandwidth using amount written, not read #3

@brettkettering

Description

@brettkettering

We have the following statement / question with regard to fs_test. Can you clarify for us?

Our benchmarker’s discovered what they believe is a bug while validating our benchmark results using fs_test.
Can you let us know if this is a bug and how you would want to handle this situation.

We noticed this comment at the start of fs_test.c:
TODO:
read should be affected by time limit also
pass min and max blocks when time limit used

Looking further, we noticed there is a “compute_amount_written”
function, but no corresponding function to compute the amount read.
It appears that all the bandwidth numbers printed in the read output
section are actually based on the amount of data written.

This is only accurate if all the data that was written gets read.
The command line options specified in the RFP cause fs_test to write and
read for the same amount of time. For a variety of reasons, the read test
may hit the time limit before all the data that was written gets read.
In that case, the actual read rate would be slower than the write rate,
but fs_test will report the Effective Bandwidth of the two tests to be essentially
the same since the max write and max read times will be nearly identical.

Is this the intended behavior, or should fs_test compute the actual amount of
data read during a fixed time test in order to print the accurate read bandwidth?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions