From owner-freebsd-current@FreeBSD.ORG Fri Sep 5 00:02:58 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76921975; Fri, 5 Sep 2014 00:02:58 +0000 (UTC) Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [IPv6:2a00:1450:4010:c03::22a]) (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 CD002199B; Fri, 5 Sep 2014 00:02:57 +0000 (UTC) Received: by mail-la0-f42.google.com with SMTP id mc6so12982278lab.15 for ; Thu, 04 Sep 2014 17:02:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=bnF2K/LR36DG+i+6vB/o48eN9eztSMwQV7POCsYKdHA=; b=djorMaxch0UUfuDkm6tKjT5KS1ln7q0MTs3szOa0RrX1eJnK2v5qGKPdSC78rBR7/5 hHjyaYKOot9yyfhNgLkxDPqI1Nud+6WX9Cmt3AcrY7fjBcblYLWM+upNzSWmtgbA0e/I K2tRX7z2mZO7frag+TRfaQ8RucZW5aA83QHP1uESPLqD535FBwX26w34RLqepZRnqgU+ VZI44xAZ76gtLDoVhZngXO3chzjQxkWJ5dY7DY2WGlB94/w/g7FyBnbbC6oafq7HMKeE +SWznO61wbcxGnRngR1VWtaBDfSH25yZxcvc5ZDXFkl/gBOjlZDlfa+2B8CCStZ9hRut mqyA== MIME-Version: 1.0 X-Received: by 10.112.138.201 with SMTP id qs9mr4489941lbb.41.1409875375479; Thu, 04 Sep 2014 17:02:55 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.22.72 with HTTP; Thu, 4 Sep 2014 17:02:55 -0700 (PDT) Date: Thu, 4 Sep 2014 17:02:55 -0700 X-Google-Sender-Auth: kuyxh1m2FMcGa97qU9PX3-RaUpY Message-ID: Subject: ddb_enable="YES" by default? From: Craig Rodrigues To: Brooks Davis Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Fri, 05 Sep 2014 00:02:58 -0000 Brooks, In r178450, you set the default of ddb_enable to NO: ------------------------------------------------------------------------ r178450 | brooks | 2008-04-23 15:40:59 -0700 (Wed, 23 Apr 2008) | 4 lines Changed paths: M /head/etc/defaults/rc.conf Revert rev 1.332 and keep ddb scripts off by default for now. Minidumps are more flexable and much text-dump like output can be produced from them so there's a good argument they are a better default. Index: head/etc/defaults/rc.conf =================================================================== --- head/etc/defaults/rc.conf (revision 178449) +++ head/etc/defaults/rc.conf (revision 178450) @@ -33,7 +33,7 @@ apm_enable="NO" # Set to YES to enable APM BIOS functions (or NO). apmd_enable="NO" # Run apmd to handle APM event from userland. apmd_flags="" # Flags to apmd (if enabled). -ddb_enable="YES" # Load ddb scripts at boot. +ddb_enable="NO" # Set to YES to load ddb scripts at boot. ddb_config="/etc/ddb.conf" # ddb(8) config file. devd_enable="YES" # Run devd, to trigger programs on device tree changes. devd_flags="" # Additional flags for devd(8). Do you think this is OK to enable by default now? Developers who know what they are doing can turn it off in /etc/rc.conf. For the average end-user, this is super useful, because it loads the ddb rules in /etc/ddb.conf, which do useful things like enable textdumps, show all the locks, show all the locked vnodes, and reboots the box. This will allow end-users who have a problem in the field with FreeBSD, and are not kernel debugging experts, to get a lot of useful diagnostic info that can be reported back to developers on the mailing lists. Right now, a lot of times, people take camera pictures of their screen at the ddb prompt. That's pretty painful. :) -- Craig