From owner-cvs-all Wed Jun 21 13:55:20 2000 Delivered-To: cvs-all@freebsd.org Received: from alcanet.com.au (mail.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id 038A137C07D; Wed, 21 Jun 2000 13:55:11 -0700 (PDT) (envelope-from jeremyp@pc0640.alcatel.com.au) Received: by border.alcanet.com.au id <115212>; Thu, 22 Jun 2000 06:55:02 +1000 Date: Wed, 21 Jun 2000 19:13:26 +1000 From: Peter Jeremy Subject: Re: cvs commit: src/sys/kern uipc_socket.c uipc_socket2.c src/sy In-reply-to: <200006160506.XAA28743@nomad.yogotech.com>; from nate@yogotech.com on Fri, Jun 16, 2000 at 03:10:07PM +1000 To: Nate Williams Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, Alfred Perlstein Message-Id: <00Jun22.065502est.115212@border.alcanet.com.au> MIME-version: 1.0 X-Mailer: Mutt 1.0i Content-type: text/plain; charset=us-ascii References: <39499E16.9FE731F7@newsguy.com> <200006160506.XAA28743@nomad.yogotech.com> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jun 16, 2000 at 03:10:07PM +1000, Nate Williams wrote: >Correct. If we want performance, how about removing the difference >between kernel and userland. Why have the overhead of the kernel >vs. userland change, since it causes us to take a big performance hit. Agreed. If you want absolute maximum performance, you should build the server from the ground up, not build it on top of a general-purpose OS. And I'm not sure that hacking up the kernel is the best approch here. For example, UFS is an excellent general purpose filesystem. If you're only interested in finding the content associated with URLs I suspect you could do a lot better with something that hashed a URL directly to a (starting block, file-length) - rather than searching a directory tree. Other areas: - You don't want your webserver paging or swapping - so most of the VM subsystem can be thrown away. - Since all processes are the server, most of the uid-based security mechanisms can be thrown out. - Dropping the distinction between userspace and kernel space removes the need to support ring-transitions (which are quite expensive). Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message