From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 14 08:25:16 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 B06E7106564A for ; Mon, 14 Jun 2010 08:25:16 +0000 (UTC) (envelope-from dmitryluhtionov@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4518F8FC19 for ; Mon, 14 Jun 2010 08:25:16 +0000 (UTC) Received: by wyb33 with SMTP id 33so4302413wyb.13 for ; Mon, 14 Jun 2010 01:25:15 -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=78Xx1ctOpMWDANBgKHFH4Jtt3hDMV5K6SOc1iORxAy0=; b=xTqdrYOyB8tfbbmFthgxx5AwyCRubS73hlqhDLCke4+Bd0WvDGmUu5Ow5TILnaNQNK tv3xGke7HI6j4M8bE98OulO7qD9JKZuMqSMMektg+3zv6d6+6VWnu7B886IPyStHF/Ea kPfz327o6dF2gHY+5uMnWNVunwLn3GIFBwr0E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=tWVv+XT4EDdBNz5paNxPu7cpq+TqaBrS+7fXUWDeDHNgF6TZmQsshHK2PCwdXZ+2lD AvO5L14DfXYhUaP55vKlPF+rFFWBbrlLf1QVQzHBjWE5ZT2uzDGe+YCaeH5reoy/eVQe Q/FIxPRlE/2n47aniLBECTWoQQkBJWCzUUdv8= MIME-Version: 1.0 Received: by 10.216.156.79 with SMTP id l57mr1852469wek.46.1276502154313; Mon, 14 Jun 2010 00:55:54 -0700 (PDT) Received: by 10.216.48.203 with HTTP; Mon, 14 Jun 2010 00:55:54 -0700 (PDT) Date: Mon, 14 Jun 2010 10:55:54 +0300 Message-ID: From: Dmitry Luhtionov To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Mon, 14 Jun 2010 11:17:54 +0000 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 08:25:16 -0000 I introduce new kernel option GEOM_DEBUG Its enabled on default, but disable it reduce runtime kernel size and slightly improve perfomance 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