From owner-svn-src-head@FreeBSD.ORG Sun Apr 5 14:45:54 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F18F5CC2; Sun, 5 Apr 2015 14:45:53 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBBC434D; Sun, 5 Apr 2015 14:45:53 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t35Ejrmt068405; Sun, 5 Apr 2015 14:45:53 GMT (envelope-from mav@FreeBSD.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t35Ejr4X068404; Sun, 5 Apr 2015 14:45:53 GMT (envelope-from mav@FreeBSD.org) Message-Id: <201504051445.t35Ejr4X068404@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: mav set sender to mav@FreeBSD.org using -f From: Alexander Motin Date: Sun, 5 Apr 2015 14:45:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281109 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2015 14:45:54 -0000 Author: mav Date: Sun Apr 5 14:45:52 2015 New Revision: 281109 URL: https://svnweb.freebsd.org/changeset/base/281109 Log: Add DTrace probe to the new ARC reclaim cause added in r281026. MFC after: 1 month Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c ============================================================================== --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Sun Apr 5 14:17:26 2015 (r281108) +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Sun Apr 5 14:45:52 2015 (r281109) @@ -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)