mirror of
https://github.com/schoebel/mars
synced 2024-12-23 15:12:28 +00:00
aio: report total_submit_count
This commit is contained in:
parent
71fab6b8c0
commit
3f0b1aa918
@ -321,6 +321,8 @@ static int aio_submit(struct aio_output *output, struct aio_mref_aspect *mref_a,
|
|||||||
|
|
||||||
threshold_check(&aio_submit_threshold, latency);
|
threshold_check(&aio_submit_threshold, latency);
|
||||||
|
|
||||||
|
atomic_inc(&output->total_submit_count);
|
||||||
|
|
||||||
if (likely(res >= 0)) {
|
if (likely(res >= 0)) {
|
||||||
atomic_inc(&output->submit_count);
|
atomic_inc(&output->submit_count);
|
||||||
} else if (unlikely(res != -EAGAIN)) {
|
} else if (unlikely(res != -EAGAIN)) {
|
||||||
@ -887,6 +889,7 @@ char *aio_statistics(struct aio_brick *brick, int verbose)
|
|||||||
"reads = %d "
|
"reads = %d "
|
||||||
"writes = %d "
|
"writes = %d "
|
||||||
"allocs = %d "
|
"allocs = %d "
|
||||||
|
"submits = %d "
|
||||||
"delays = %d "
|
"delays = %d "
|
||||||
"msleeps = %d "
|
"msleeps = %d "
|
||||||
"fdsyncs = %d "
|
"fdsyncs = %d "
|
||||||
@ -910,6 +913,7 @@ char *aio_statistics(struct aio_brick *brick, int verbose)
|
|||||||
atomic_read(&output->total_read_count),
|
atomic_read(&output->total_read_count),
|
||||||
atomic_read(&output->total_write_count),
|
atomic_read(&output->total_write_count),
|
||||||
atomic_read(&output->total_alloc_count),
|
atomic_read(&output->total_alloc_count),
|
||||||
|
atomic_read(&output->total_submit_count),
|
||||||
atomic_read(&output->total_delay_count),
|
atomic_read(&output->total_delay_count),
|
||||||
atomic_read(&output->total_msleep_count),
|
atomic_read(&output->total_msleep_count),
|
||||||
atomic_read(&output->total_fdsync_count),
|
atomic_read(&output->total_fdsync_count),
|
||||||
@ -944,6 +948,7 @@ void aio_reset_statistics(struct aio_brick *brick)
|
|||||||
atomic_set(&output->total_read_count, 0);
|
atomic_set(&output->total_read_count, 0);
|
||||||
atomic_set(&output->total_write_count, 0);
|
atomic_set(&output->total_write_count, 0);
|
||||||
atomic_set(&output->total_alloc_count, 0);
|
atomic_set(&output->total_alloc_count, 0);
|
||||||
|
atomic_set(&output->total_submit_count, 0);
|
||||||
atomic_set(&output->total_delay_count, 0);
|
atomic_set(&output->total_delay_count, 0);
|
||||||
atomic_set(&output->total_msleep_count, 0);
|
atomic_set(&output->total_msleep_count, 0);
|
||||||
atomic_set(&output->total_fdsync_count, 0);
|
atomic_set(&output->total_fdsync_count, 0);
|
||||||
|
@ -84,6 +84,7 @@ struct aio_output {
|
|||||||
atomic_t total_read_count;
|
atomic_t total_read_count;
|
||||||
atomic_t total_write_count;
|
atomic_t total_write_count;
|
||||||
atomic_t total_alloc_count;
|
atomic_t total_alloc_count;
|
||||||
|
atomic_t total_submit_count;
|
||||||
atomic_t total_delay_count;
|
atomic_t total_delay_count;
|
||||||
atomic_t total_msleep_count;
|
atomic_t total_msleep_count;
|
||||||
atomic_t total_fdsync_count;
|
atomic_t total_fdsync_count;
|
||||||
|
Loading…
Reference in New Issue
Block a user