From d3d06b90f848318cf24e3f62169836011607948b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 27 Dec 2018 12:43:58 -0800 Subject: [PATCH] modules/console: Update aio info cmd. --- modules/console.cc | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/modules/console.cc b/modules/console.cc index 69cc540af..7e1f5164d 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -831,8 +831,16 @@ console_cmd__aio(opt &out, const string_view &line) << " " << pretty(iec(s.bytes_requests - s.bytes_complete)) << std::endl; + out << std::setw(12) << std::left << "requests que" + << std::setw(9) << std::right << s.cur_queued + << std::endl; + + out << std::setw(12) << std::left << "requests out" + << std::setw(9) << std::right << s.cur_submits + << std::endl; + out << std::setw(12) << std::left << "requests avg" - << std::setw(9) << std::right << " " + << std::setw(9) << std::right << "-" << " " << pretty(iec(s.bytes_requests / s.requests)) << std::endl; @@ -850,7 +858,7 @@ console_cmd__aio(opt &out, const string_view &line) << std::endl; out << std::setw(12) << std::left << "reads avg" - << std::setw(9) << std::right << " " + << std::setw(9) << std::right << "-" << " " << pretty(iec(s.bytes_read / s.reads)) << std::endl; @@ -869,7 +877,7 @@ console_cmd__aio(opt &out, const string_view &line) << std::endl; out << std::setw(12) << std::left << "writes avg" - << std::setw(9) << std::right << " " + << std::setw(9) << std::right << "-" << " " << pretty(iec(s.bytes_write / s.writes)) << std::endl; @@ -903,6 +911,14 @@ console_cmd__aio(opt &out, const string_view &line) << std::setw(9) << std::right << s.maxed_submits << std::endl; + out << std::setw(12) << std::left << "submits one" + << std::setw(9) << std::right << s.single_submits + << std::endl; + + out << std::setw(12) << std::left << "submits chs" + << std::setw(9) << std::right << s.chased_submits + << std::endl; + return true; }