From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 14 11:11:55 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC2761065676 for ; Mon, 14 Jun 2010 11:11:55 +0000 (UTC) (envelope-from dmitryluhtionov@gmail.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 703308FC0A for ; Mon, 14 Jun 2010 11:11:55 +0000 (UTC) Received: by wwb22 with SMTP id 22so4461212wwb.13 for ; Mon, 14 Jun 2010 04:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=XFFp+sT9HPL5ywSMTMXbAnQO5YMjbU4HM9KwRU4BX5k=; b=GovsCM6pgzI/LN7tD8U7sCQFyKwLV4kzTIcOBUpgMImQ3a6xl1XLmdLlNazosKcLCx vEHFRiSmOV8C2cGykAs2Rly2FjGJN+fE7y5iJQVk1OwzQBgn4PCY3ca7L90TBA+BR+Lh b5iDYmj46R2xQz6iDWWGkYYKslbQ7EAMqbGZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=suKsbp3/2wm8T3gAC4UYpm/cbhyJQiC9wG5UkSmyaTSD3z6/8ZFM8rDRExLCSSLKhu /oqY2tLjhJTv8qwZsdZtYNGjW/hCKVBN59LVNx/Rm3NqWOWCaT1DBZGHBIe4VZXKGsol y058K3WG6Hr3QicKYAraKnKvBVJ2CQgvrVz7A= MIME-Version: 1.0 Received: by 10.216.86.3 with SMTP id v3mr2057213wee.12.1276513914325; Mon, 14 Jun 2010 04:11:54 -0700 (PDT) Received: by 10.216.48.203 with HTTP; Mon, 14 Jun 2010 04:11:54 -0700 (PDT) Date: Mon, 14 Jun 2010 14:11:54 +0300 Message-ID: From: Dmitry Luhtionov To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: GEOM_DEBUG kernel option X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 11:11:56 -0000 I introduce new kernel option GEOM_DEBUG Its enabled on default, but disable it reduce runtime kernel size and slightly improve performance by disabling debug stuff in compile time On my amd64 machine compiling modules without GEOM_DEBUG option reduce size geom_mirror.ko from 130 to 77 kilobytes geom_label.ko from 44.5 to 33 kilobytes http://193.34.20.243/geom.20100611.patch