From owner-freebsd-questions@FreeBSD.ORG Thu Feb 18 18:24:51 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 847C110656A3 for ; Thu, 18 Feb 2010 18:24:51 +0000 (UTC) (envelope-from widawsky@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 445838FC19 for ; Thu, 18 Feb 2010 18:24:51 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 8so1391196qwh.7 for ; Thu, 18 Feb 2010 10:24:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=+HNPk1FtXhyzb8/+cQXnu2eheMnr/JPG/aLomEFmxSg=; b=O+lJG6smXRUXff/aYonStO7tHSG3Ciwi6ONUmbGwO/t4jzqf0YVYFamcc4jEOnctqg vnI6oSCHMlRyRhb8bBOcQstvilSITsnlgcNlSyXNL679xkTIlA0JfERNLTStQgQ4uNrk uG0p+p7dxO7LshdCjvSbMtIamGOSLbKeqHlt8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ec0udpsbNQZpjYkHFev/FS1jkKXout+DM2r+zEtmYLOudxT7/ZulVib4MKjy0Q9QHX zUnVy0EEeA/BR7d+a5cZ0TafLpGwgMNdcunykJ5uKIgLYYy7IEwJUCxlbpir9iUjAucV 5+0urKkLXsFa7GHGuu/Ar/Rqs/hcgim5Ir/Pc= MIME-Version: 1.0 Received: by 10.224.96.7 with SMTP id f7mr2713095qan.241.1266515901223; Thu, 18 Feb 2010 09:58:21 -0800 (PST) Date: Thu, 18 Feb 2010 09:58:21 -0800 Message-ID: <121e074a1002180958i6e79ff29u4fdc657e6a56b3b@mail.gmail.com> From: Ben Widawsky To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: to KASSERT || !KASSERT X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 18:24:51 -0000 I'm trying to decide whether or not to leave invariants turned on for a production system. The target system will be an embedded device where performance is already at a premium. I would have a mechanism to remotely obtain panic information after an assertion failed. I'm primarily interested in performance implications (has anyone done any benchmarks?), and are invariants worth the cost? Opinions on whether or not invariants should ever be left in production code are also welcome. Ben