Count deferred requests as full miss
Otherwise, it may increase the number of hits, while the overall performance has not been improved. This way, the hit rate is more correlated with the performance changes. Signed-off-by: Michael Lyulko <michael.lyulko@huawei.com> Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
committed by
Michal Mielewczyk
parent
35bf43b2e5
commit
470204ac70
@@ -582,7 +582,8 @@ void ocf_engine_update_block_stats(struct ocf_request *req)
|
||||
void ocf_engine_update_request_stats(struct ocf_request *req)
|
||||
{
|
||||
ocf_core_stats_request_update(req->core, req->part_id, req->rw,
|
||||
req->info.hit_no, req->core_line_count);
|
||||
req->is_deferred ? 0 : req->info.hit_no,
|
||||
req->core_line_count);
|
||||
}
|
||||
|
||||
void inc_fallback_pt_error_counter(ocf_cache_t cache)
|
||||
|
||||
Reference in New Issue
Block a user