aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastctl
diff options
context:
space:
mode:
authorMikolaj Golub <trociny@FreeBSD.org>2013-10-26 08:38:21 +0000
committerMikolaj Golub <trociny@FreeBSD.org>2013-10-26 08:38:21 +0000
commit6b66c350a7fe8a2e29a86e8898fc1f27cb84f3e6 (patch)
tree5dd698fe27c250542cf190e8f372eb9d1afcc679 /sbin/hastctl
parentd03a08e5e6f5ba513b3b2724d9f5e98c7c085cb7 (diff)
downloadsrc-6b66c350a7fe8a2e29a86e8898fc1f27cb84f3e6.tar.gz
src-6b66c350a7fe8a2e29a86e8898fc1f27cb84f3e6.zip
Make hastctl list command output current queue sizes.
Reviewed by: pjd MFC after: 1 month
Notes
Notes: svn path=/head/; revision=257155
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 11b5b8d87229..474f1b24cea0 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);
}