From owner-freebsd-current@FreeBSD.ORG Mon Nov 17 09:32:23 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 196D216A4CE for ; Mon, 17 Nov 2003 09:32:22 -0800 (PST) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A5F343F75 for ; Mon, 17 Nov 2003 09:32:22 -0800 (PST) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 1B88C72DB8; Mon, 17 Nov 2003 09:32:22 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 197A572DB5; Mon, 17 Nov 2003 09:32:22 -0800 (PST) Date: Mon, 17 Nov 2003 09:32:22 -0800 (PST) From: Doug White To: Matthew Dillon In-Reply-To: <200311160058.hAG0wf0U075135@apollo.backplane.com> Message-ID: <20031117092357.E21453@carver.gumbysoft.com> References: <200311121855.hACItAaG006605@beastie.mckusick.com> <3FB6BA40.6B7B2FD8@mindspring.com> <200311160058.hAG0wf0U075135@apollo.backplane.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: HEADS-UP new statfs structure condidered harmful X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.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: Mon, 17 Nov 2003 17:32:23 -0000 On Sat, 15 Nov 2003, Matthew Dillon wrote: > I don't understand the question. All that happens is that functions like > fstat() and statfs() become libc functions rather then direct syscalls. > The userland program doesn't know the difference, it uses fstat() and > statfs() just like it always has. Well, there's some glue there now, but its pretty slim. What you advocate would swap system call numbers for doing structure reloading per call, which would significantly incrase the cost of the call. Considering that *BSD system call overhead is pretty bad as is, I don't think I'd be putting structure recopies into the critical path of a syscall. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org