From owner-freebsd-current@FreeBSD.ORG Wed Oct 29 03:04:06 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9B96DA03; Wed, 29 Oct 2014 03:04:06 +0000 (UTC) Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [IPv6:2607:f8b0:4001:c03::229]) (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 51EA0C9; Wed, 29 Oct 2014 03:04:06 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id tr6so2157631ieb.14 for ; Tue, 28 Oct 2014 20:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=wkf4gY/p7y4ufhB4A4IY+pIDFC9V6ACG4N2dB8lPKmI=; b=Ghq65zv9wyKjuNv/v7z+89n7+raLbjffH1Fu5QO6bnhbF6aJL+QTZwWhgal6effRrZ LfB+8uyUDdvpquoEk7dB6fgjS4KypmfOdDgE/XYAOzc8M7f4xC+E0rOBXWT+xJngX952 fEYIlLJqFYLgdOHV5fDpNLNQQbPQYDruUppcpMCEX1gVuDpCvUlCRUqaPK3nSZCW2ls1 y2zUmnmtr7JHB+SqupI6R5xK70WM65rkAqNuA5lSZE8BUgz8Vgm0mC+ddkhmztGAXHk0 uefFOGNqPt/AVq+I+FBzsrvE4h6EyZNIviF3qM9R4gPLlVwCyB7+YWbcLs3eFfl9tkEB OY4A== MIME-Version: 1.0 X-Received: by 10.50.128.137 with SMTP id no9mr9420335igb.0.1414551845575; Tue, 28 Oct 2014 20:04:05 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.107.11.152 with HTTP; Tue, 28 Oct 2014 20:04:05 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 Oct 2014 20:04:05 -0700 X-Google-Sender-Auth: B_D5gsvQ51Ng7CweiU4WWMOGKfM Message-ID: Subject: Re: HEADS UP: Standalone kernel debug files moving out of /boot/kernel/ From: Kevin Oberman To: Ed Maste Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD 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: Wed, 29 Oct 2014 03:04:06 -0000 On Tue, Oct 28, 2014 at 5:20 PM, Ed Maste wrote: > I am preparing to move the standalone kernel debug data out of > /boot/kernel/ into /usr/lib/debug/boot/kernel/, mirroring the approach > used for userland debug data. This significantly reduces the boot > partition size requirement, and is a step towards supporting the > installation of kernel debug data ony when required. LLDB and GDB > automatically search for debug data under /usr/lib/debug/ so this > change should be transparent from an end-user perspective. > > The change can be reviewed in Phabricator at > https://reviews.freebsd.org/D1006 and can be fetched as a unified diff > from https://people.freebsd.org/~emaste/patches/D1006.diff > > This does not change any defaults or knobs: kernel debug files are > still built by default, and may be disabled by setting > WITHOUT_KERNEL_SYMBOLS=YES in /etc/src.conf. I hope to rationalize > this with userland debug in a later step. > > Note that the change renames the intermediate and debug data files to > be consistent with userland debug data: in the build directory the > kernel with debug data included is now named kernel.full, and and > kernel.debug is the standalone debug data file. > > I plan to merge this in a few days if there are no issues reported in > further review or testing. > > -Ed > Finally! This is great news. /usr/lib seems like an odd place, though. Does not seem to match the description in hier(7) (not that the man page can't be updated). Looks to me like it fits /var a bit better, though I'm not sure that much data is appropriate for many /var partitions. Still, wherever the symbol files end up, getting them out of root is something many people have wanted for a long time. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com