Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jun 2014 12:25:55 -0400
From:      Julio Merino <jmmv@freebsd.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Turning TESTS on by default
Message-ID:  <CAFY7cWDWSUSYQ01ycnW4Tj4pvDJuBO62Zt_LOJnK66NaJQt_%2BQ@mail.gmail.com>
In-Reply-To: <20140607033334.GO3991@kib.kiev.ua>
References:  <CAFY7cWB=BOKWh4gK=wwgvhnAoVUuVBOEqk08nXeo7eWwMguZzw@mail.gmail.com> <20140607033334.GO3991@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 6, 2014 at 11:33 PM, Konstantin Belousov
<kostikbel@gmail.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFY7cWDWSUSYQ01ycnW4Tj4pvDJuBO62Zt_LOJnK66NaJQt_%2BQ>