From a448a2557ec4938ed6944c7766fe0b8e6e5f6456 Mon Sep 17 00:00:00 2001 From: Serapheim Dimitropoulos Date: Mon, 20 Aug 2018 09:52:37 -0700 Subject: Introduce read/write kstats per dataset The following patch introduces a few statistics on reads and writes grouped by dataset. These statistics are implemented as kstats (backed by aggregate sums for performance) and can be retrieved by using the dataset objset ID number. The motivation for this change is to provide some preliminary analytics on dataset usage/performance. Reviewed-by: Richard Elling Reviewed-by: Brian Behlendorf Reviewed by: Matthew Ahrens Signed-off-by: Serapheim Dimitropoulos Closes #7705 --- module/zfs/spa.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'module/zfs/spa.c') diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 0d0cb556c..39f329bea 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -306,6 +306,8 @@ spa_prop_get_config(spa_t *spa, nvlist_t **nvp) spa_prop_add_list(*nvp, ZPOOL_PROP_VERSION, NULL, version, ZPROP_SRC_LOCAL); } + spa_prop_add_list(*nvp, ZPOOL_PROP_LOAD_GUID, + NULL, spa_load_guid(spa), src); } if (pool != NULL) { -- cgit v1.2.3