diff options
author | mav <mav@FreeBSD.org> | 2015-04-05 14:45:52 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-04-05 14:45:52 +0000 |
commit | e5f58186a5feb19a64dc329c83ea12cd3daa3dda (patch) | |
tree | ef980f4cef4191c078ed8a0d11f0a9a188464c8f | |
parent | 31390ca6751f5ea7382dfec6472bc3a13ed67e1b (diff) | |
download | FreeBSD-src-e5f58186a5feb19a64dc329c83ea12cd3daa3dda.zip FreeBSD-src-e5f58186a5feb19a64dc329c83ea12cd3daa3dda.tar.gz |
Add DTrace probe to the new ARC reclaim cause added in r281026.
MFC after: 1 month
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c index 4176dce..30ca7b9 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c @@ -2671,8 +2671,12 @@ arc_reclaim_needed(void) * Above limits know nothing about real level of KVA fragmentation. * Start aggressive reclamation if too little sequential KVA left. */ - if (vmem_size(heap_arena, VMEM_MAXFREE) < zfs_max_recordsize) + if (vmem_size(heap_arena, VMEM_MAXFREE) < zfs_max_recordsize) { + DTRACE_PROBE2(arc__reclaim_maxfree, uint64_t, + vmem_size(heap_arena, VMEM_MAXFREE), + uint64_t, zfs_max_recordsize); return (1); + } #else /* _KERNEL */ if (spa_get_random(100) == 0) |