From owner-freebsd-fs@FreeBSD.ORG Sun Dec 16 12:28:54 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 386E9BC for ; Sun, 16 Dec 2012 12:28:54 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 7F8B78FC16 for ; Sun, 16 Dec 2012 12:28:52 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA14025; Sun, 16 Dec 2012 14:28:50 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1TkDKr-00030i-L5; Sun, 16 Dec 2012 14:28:49 +0200 Message-ID: <50CDBE80.7080308@FreeBSD.org> Date: Sun, 16 Dec 2012 14:28:48 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Tom Subject: Re: zfs: is it possible to set metaslab_debug to 1? References: <50CCA8B8.7010808@bsdunix.ch> In-Reply-To: <50CCA8B8.7010808@bsdunix.ch> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Dec 2012 12:28:54 -0000 on 15/12/2012 18:43 Tom said the following: > Hi, > > Is it possible to set metaslab_debug to 1 on freebsd without recompiling: > usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c > > /* > * Metaslab debugging: when set, keeps all space maps in core to verify > frees. > */ > static int metaslab_debug = 0; > > Is this even possible on FreeBSD? It often helps with ZFS perfomance > issues on Solaris with lots of ram. kgdb -w set metaslab_debug=1 Were you looking for something like this? -- Andriy Gapon