ocf/tests/functional/pyocf
Adam Rutkowski 17eddab094 pyocf: queue settle functionality
Queue settle is a mechanism to wait for all OCF processing
on a given queue to finish.

In some tests simply waiting for I/O to finish is not enough. Most
notably some statistics are potentially incremented after user triggered
I/O is finished. This is due to asynchronous nature of I/O operations
and OCF approach to statistics update, where only eventual consistency
is guaranteed without explicit mechanism available to query whether
the final state is reached yet. However it is fully in the adapter power
to determine this, as OCF executes in context of API calls from the
adapter (like I/O submission, ocf_queue_run, ocf_cleaner_run, management
operations) and I/O completion callbacks. Queue settle is a mechanism to
assure ocf_queue_run is not being executed by the thread associated with
a queue.

With queue settle mechanism it is straightforward for the adapter to
wait for cache statistics to reach fixed values:
1. wait for all I/O to OCF to finish
2. settle all I/O queues
3. make sure background cleaner is not active

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-02-24 14:56:09 +01:00
..
types pyocf: queue settle functionality 2022-02-24 14:56:09 +01:00
wrappers Add wrapper for cache_config_set_default 2022-02-24 12:27:10 +01:00
__init__.py Implement pyocf adapter with sample OCF test 2019-03-07 12:48:40 +01:00
ocf.py Fix license 2021-10-28 13:08:50 +02:00
rio.py Implement rio io tester for pyocf 2022-02-24 14:56:09 +01:00
utils.py Enable Size comparisons in pyocf 2022-02-24 14:56:09 +01:00