git: e36b028933b7 - main - systat: Chase 70ea484e3ec5, removing vdev_cache
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Jun 2023 18:36:12 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=e36b028933b72c1ad13144f32ff111b6d52f42df
commit e36b028933b72c1ad13144f32ff111b6d52f42df
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-06-23 05:01:25 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-06-27 18:34:29 +0000
systat: Chase 70ea484e3ec5, removing vdev_cache
As of 70ea484e3ec5 vdev_cache has been removed. Stop reporting on it.
Without this systat reports:
sysctl(kstat.zfs.misc.vdev_cache_stats.misses...) failed:
No such file or directory
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D40742
---
usr.bin/systat/zarc.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/usr.bin/systat/zarc.c b/usr.bin/systat/zarc.c
index 8eb3849a9172..abc5336a6cf7 100644
--- a/usr.bin/systat/zarc.c
+++ b/usr.bin/systat/zarc.c
@@ -48,7 +48,6 @@ struct zfield {
uint64_t arcstats_prefetch_metadata;
uint64_t zfetchstats;
uint64_t arcstats_l2;
- uint64_t vdev_cache_stats;
};
static struct zarcstats {
@@ -99,7 +98,6 @@ labelzarc(void)
L(arcstats.prefetch_metadata);
L(zfetchstats);
L(arcstats.l2);
- L(vdev_cache_stats);
#undef L
dslabel(12, 0, 18);
}
@@ -128,7 +126,6 @@ domode(struct zarcstats *delta, struct zarcrates *rate)
DO(arcstats_prefetch_metadata);
DO(zfetchstats);
DO(arcstats_l2);
- DO(vdev_cache_stats);
DO(arcstats);
DO(arcstats_demand_data);
DO(arcstats_demand_metadata);
@@ -136,7 +133,6 @@ domode(struct zarcstats *delta, struct zarcrates *rate)
DO(arcstats_prefetch_metadata);
DO(zfetchstats);
DO(arcstats_l2);
- DO(vdev_cache_stats);
#undef DO
}
@@ -165,7 +161,6 @@ showzarc(void)
E(arcstats_prefetch_metadata);
E(zfetchstats);
E(arcstats_l2);
- E(vdev_cache_stats);
#undef DO
#undef E
#undef MISSES
@@ -233,10 +228,6 @@ getinfo(struct zarcstats *ls)
ls->hits.arcstats_l2);
GETSYSCTL("kstat.zfs.misc.arcstats.l2_misses",
ls->misses.arcstats_l2);
- GETSYSCTL("kstat.zfs.misc.vdev_cache_stats.hits",
- ls->hits.vdev_cache_stats);
- GETSYSCTL("kstat.zfs.misc.vdev_cache_stats.misses",
- ls->misses.vdev_cache_stats);
}
void