From owner-freebsd-fs@FreeBSD.ORG Sun Dec 16 14:47:37 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 74C5029E; Sun, 16 Dec 2012 14:47:37 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from conversation.bsdunix.ch (ns1.bsdunix.ch [82.220.1.90]) by mx1.freebsd.org (Postfix) with ESMTP id 26CDD8FC0A; Sun, 16 Dec 2012 14:47:36 +0000 (UTC) Received: from conversation.bsdunix.ch (localhost [127.0.0.1]) by conversation.bsdunix.ch (Postfix) with ESMTP id 7DE3714BBC; Sun, 16 Dec 2012 14:47:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new at mail.bsdunix.ch Received: from conversation.bsdunix.ch ([127.0.0.1]) by conversation.bsdunix.ch (conversation.bsdunix.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1FPFniepm5gi; Sun, 16 Dec 2012 14:47:35 +0000 (UTC) Received: from toms-saftbook.home (177-185.107-92.cust.bluewin.ch [92.107.185.177]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by conversation.bsdunix.ch (Postfix) with ESMTPSA id CB73314BB9; Sun, 16 Dec 2012 14:47:34 +0000 (UTC) Message-ID: <50CDDF06.2030309@bsdunix.ch> Date: Sun, 16 Dec 2012 15:47:34 +0100 From: Tom User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Andriy Gapon Subject: Re: zfs: is it possible to set metaslab_debug to 1? References: <50CCA8B8.7010808@bsdunix.ch> <50CDBE80.7080308@FreeBSD.org> In-Reply-To: <50CDBE80.7080308@FreeBSD.org> 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 14:47:37 -0000 Am 16.12.12 13:28, schrieb Andriy Gapon: > 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? > > Yes, exactly Thank you. Regards, Tom