From owner-freebsd-current@FreeBSD.ORG Sun Jun 8 16:26:22 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 46C1A132 for ; Sun, 8 Jun 2014 16:26:22 +0000 (UTC) Received: from mail-qa0-f45.google.com (mail-qa0-f45.google.com [209.85.216.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0756523AC for ; Sun, 8 Jun 2014 16:26:21 +0000 (UTC) Received: by mail-qa0-f45.google.com with SMTP id hw13so6743925qab.4 for ; Sun, 08 Jun 2014 09:26:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=YYFWF69LyL9RE1cqy9lOoN426L4ZhHXbEwOqbVQw6O8=; b=ZoJBh8JbTZRyLKHWfXlYK/72WZUCorWSqKaPLOC0OngXBMq4sKHqwoiDxFDVM+YEuz jCyp8P3r0A6l5dAy8I6pObPz2FKQzUTy/btxNAfzb5Ff7d4uXEQupGmQpaVqF39X66V9 sAT6nUlcY8U1Tr+bTFoPazLKGmCYPGgIyqU/WdlekWW/QVvhxeq0WKz8TkzSczS8FWdC fiBoLo0g+DtGhm4NQXKktFqH0CUsyFrD4cMl6QTz7WA+A6VA4ELVUvVSDkiNnmgorL78 5LV7nwUwkVPeqxJeBDDM7p4UaX1QRskGbsNUUjCQGNM9uv5DcFTtF/YFUaAgSkTLm5QG xZwQ== X-Gm-Message-State: ALoCoQlQtkWXJykQ52/X+NmvC7V03JWAJRbapX1ne00cicggtmFRs/QetXFn25eSaCjXWJa4P9iz X-Received: by 10.140.30.161 with SMTP id d30mr24524979qgd.62.1402244775253; Sun, 08 Jun 2014 09:26:15 -0700 (PDT) MIME-Version: 1.0 Sender: jmmv@meroh.net Received: by 10.96.83.99 with HTTP; Sun, 8 Jun 2014 09:25:55 -0700 (PDT) X-Originating-IP: [89.101.236.178] In-Reply-To: <20140607033334.GO3991@kib.kiev.ua> References: <20140607033334.GO3991@kib.kiev.ua> From: Julio Merino Date: Sun, 8 Jun 2014 12:25:55 -0400 X-Google-Sender-Auth: H3tTDPBqhGyzmSYv8t7xOD5UMQ8 Message-ID: Subject: Re: Turning TESTS on by default To: Konstantin Belousov Content-Type: text/plain; charset=UTF-8 Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2014 16:26:22 -0000 On Fri, Jun 6, 2014 at 11:33 PM, Konstantin Belousov wrote: > It is the same as the debugging kernel. The INVARIANTS, WITNESS, DEBUG > and DIAGNOSTIC options are not enabled for the user consumption. No; this is not the same at all. All the options you mention introduce a performance penalty on the system at *run* time and the _only_ way to get rid of such penalty completely is to disable the options at *build* time (sysctl doesn't make the cut because the system would still need to check a boolean value). Because these toggles affect run-time performance, and because they are intended for developers only, they are not the default on release builds. Building the test suite has no impact whatsoever on the system at run-time. The test suite is just a bunch of files in a self-contained location. We ought to ship such files as tests.tgz to give users a very easy way of not installing them though.