summaryrefslogtreecommitdiffstats
path: root/sbin/hastctl
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2013-10-26 08:38:21 +0000
committertrociny <trociny@FreeBSD.org>2013-10-26 08:38:21 +0000
commit0395c06061d8fe11a1d236233a3ab67fe2ef9610 (patch)
tree5dd698fe27c250542cf190e8f372eb9d1afcc679 /sbin/hastctl
parenta482904d30b8e2d155b83f21f311686e81f8452d (diff)
downloadFreeBSD-src-0395c06061d8fe11a1d236233a3ab67fe2ef9610.zip
FreeBSD-src-0395c06061d8fe11a1d236233a3ab67fe2ef9610.tar.gz
Make hastctl list command output current queue sizes.
Reviewed by: pjd MFC after: 1 month
Diffstat (limited to 'sbin/hastctl')
-rw-r--r--sbin/hastctl/hastctl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/hastctl/hastctl.c b/sbin/hastctl/hastctl.c
index 11b5b8d..474f1b2 100644
--- a/sbin/hastctl/hastctl.c
+++ b/sbin/hastctl/hastctl.c
@@ -355,6 +355,13 @@ control_list(struct nv *nv)
(uintmax_t)nv_get_uint64(nv, "stat_write_error%u", ii),
(uintmax_t)nv_get_uint64(nv, "stat_delete_error%u", ii),
(uintmax_t)nv_get_uint64(nv, "stat_flush_error%u", ii));
+ printf(" queues: "
+ "local: %ju, send: %ju, recv: %ju, done: %ju, idle: %ju\n",
+ (uintmax_t)nv_get_uint64(nv, "local_queue_size%u", ii),
+ (uintmax_t)nv_get_uint64(nv, "send_queue_size%u", ii),
+ (uintmax_t)nv_get_uint64(nv, "recv_queue_size%u", ii),
+ (uintmax_t)nv_get_uint64(nv, "done_queue_size%u", ii),
+ (uintmax_t)nv_get_uint64(nv, "idle_queue_size%u", ii));
}
return (ret);
}
OpenPOWER on IntegriCloud