From owner-freebsd-fs@FreeBSD.ORG Tue Sep 25 20:08:55 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADF71106566B; Tue, 25 Sep 2012 20:08:55 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 659028FC1F; Tue, 25 Sep 2012 20:08:55 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 476CD28426; Tue, 25 Sep 2012 22:02:57 +0200 (CEST) Received: from [192.168.1.2] (static-84-242-120-26.net.upcbroadband.cz [84.242.120.26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 6B45E28423; Tue, 25 Sep 2012 22:02:56 +0200 (CEST) Message-ID: <50620DEF.404@quip.cz> Date: Tue, 25 Sep 2012 22:02:55 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20120923195357.GO1454@garage.freebsd.pl> <20120924002041.GA1303@glenbarber.us> <20120925162453.GA1391@garage.freebsd.pl> In-Reply-To: <20120925162453.GA1391@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org, Glen Barber , freebsd-current@FreeBSD.org Subject: Re: ZFS TRIM support committed to HEAD. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2012 20:08:55 -0000 Pawel Jakub Dawidek wrote: > On Sun, Sep 23, 2012 at 08:20:41PM -0400, Glen Barber wrote: >> Hi Pawel, [...] >> Great! Thanks for this. >> >> Any chance you can document the following sysctls? > > None od the kstat sysctls are documented, they emulate kstat framework > from Solaris. We would need to modify a lot of vendor code to document > those in 'sysctl -d' output. It still would be good to have them > documented even elsewhere, eventhough most are rather self-explanatory. There were some "sysctl documentation" project on the net (maybe som GSoC, I am not sure). Most sysctl's are self-explanatory - unfortunately only for knowledgeable developers or authors of the code. And sometimes even a short description (sysctl -d) is not enough. It explains meaning of some counter, but not the condition where / by what this counter is triggered. I think some public page on FreeBSD Wiki bould be good starting place for documenting all useful sysctls, their meaning, tips for tuning, what one can gain or lose by changing them etc. >> root@kaos:/root # sysctl -d kstat.zfs.misc.zio_trim >> kstat.zfs.misc.zio_trim: >> kstat.zfs.misc.zio_trim.zio_trim_bytes: >> kstat.zfs.misc.zio_trim.zio_trim_success: >> kstat.zfs.misc.zio_trim.zio_trim_unsupported: >> kstat.zfs.misc.zio_trim.zio_trim_failed: Miroslav Lachman