0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 15:00:51 +01:00

modules/console: Update aio info cmd.

This commit is contained in:
Jason Volk 2018-12-27 12:43:58 -08:00
parent 0c5ebde1fc
commit d3d06b90f8

View file

@ -831,8 +831,16 @@ console_cmd__aio(opt &out, const string_view &line)
<< " " << pretty(iec(s.bytes_requests - s.bytes_complete)) << " " << pretty(iec(s.bytes_requests - s.bytes_complete))
<< std::endl; << 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" 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)) << " " << pretty(iec(s.bytes_requests / s.requests))
<< std::endl; << std::endl;
@ -850,7 +858,7 @@ console_cmd__aio(opt &out, const string_view &line)
<< std::endl; << std::endl;
out << std::setw(12) << std::left << "reads avg" 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)) << " " << pretty(iec(s.bytes_read / s.reads))
<< std::endl; << std::endl;
@ -869,7 +877,7 @@ console_cmd__aio(opt &out, const string_view &line)
<< std::endl; << std::endl;
out << std::setw(12) << std::left << "writes avg" 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)) << " " << pretty(iec(s.bytes_write / s.writes))
<< std::endl; << std::endl;
@ -903,6 +911,14 @@ console_cmd__aio(opt &out, const string_view &line)
<< std::setw(9) << std::right << s.maxed_submits << std::setw(9) << std::right << s.maxed_submits
<< std::endl; << 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; return true;
} }