From owner-cvs-src@FreeBSD.ORG Fri Apr 8 17:26:20 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CE3216A4F8; Fri, 8 Apr 2005 17:26:20 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id E60F243D1F; Fri, 8 Apr 2005 17:26:19 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] (sam@[66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j38HQJms055975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Apr 2005 10:26:19 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <4256BF44.2000100@errno.com> Date: Fri, 08 Apr 2005 10:28:36 -0700 From: Sam Leffler User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050327) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Poul-Henning Kamp References: <19677.1112980993@critter.freebsd.dk> In-Reply-To: <19677.1112980993@critter.freebsd.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: cvs-src@FreeBSD.org cc: Gleb Smirnoff cc: cvs-all@FreeBSD.org cc: Bruce Evans cc: src-committers@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_mutex.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 17:26:20 -0000 Poul-Henning Kamp wrote: > In message <4256B3EF.5090702@errno.com>, Sam Leffler writes: > > >>I agree with bde. One major distinction I've noticed between Linux and >>BSD systems is that Linux uses sysctls (aka /proc) in lieu of user-mode >>tools that retrieve and format data. While this is a reasonable >>approach when you're distributing only a kernel that's not the case >>here. For debug info I can buy doing it (e.g. single user and no apps > >>from src/tools), but otherwise we're just adding stuff to the kernel > >>that belongs in apps. > > > The reason I disagree is that the amount of code it takes to convert > the data to an export format and the overhead of having a program in > userspace format it into text is ridiculous compared to just formatting > things in the kernel to begin with. My experience is the opposite. > > And besides, a formatted sysctl has no binary compatibility issues at > all. I like that too. > Sure, that's the downside; you need to design binary protocols with care (this is a protocol after all). Sam