From owner-freebsd-current@FreeBSD.ORG Sat Oct 29 07:29:29 2005 Return-Path: X-Original-To: current@FreeBSD.ORG 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 6905416A41F; Sat, 29 Oct 2005 07:29:29 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from www.portaone.com (support.portaone.com [195.70.151.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id B86BB43D48; Sat, 29 Oct 2005 07:29:28 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from [192.168.1.2] (S0106000f3d63befd.vs.shawcable.net [70.71.19.119]) (authenticated bits=0) by www.portaone.com (8.12.11/8.12.11) with ESMTP id j9T7THjZ065746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 29 Oct 2005 09:29:19 +0200 (CEST) (envelope-from sobomax@portaone.com) Message-ID: <436324C6.5040107@portaone.com> Date: Sat, 29 Oct 2005 00:29:10 -0700 From: Maxim Sobolev Organization: Porta Software Ltd User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Poul-Henning Kamp References: <37497.1130570011@critter.freebsd.dk> In-Reply-To: <37497.1130570011@critter.freebsd.dk> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.86.2/1149/Thu Oct 27 22:20:09 2005 on www.portaone.com X-Virus-Status: Clean X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.0 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on www.portaone.com Cc: Pertti Kosunen , Robert Watson , David Xu , "Yuriy N. Shkandybin" , current@FreeBSD.ORG Subject: Re: Timers and timing, was: MySQL Performance 6.0rc1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maxim.Sobolev@portaone.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2005 07:29:29 -0000 Poul-Henning Kamp wrote: > In message <4362BA38.1090603@portaone.com>, Maxim Sobolev writes: > > >>You can solve most of those issues by exporting from kernel to userland >>not only page(s) with actual data, but also page(s) with code to handle >>that data. Then you can turn syscalls implementation in libc into plain >>function calls to addresses in that code page(s). This approach can >>potentially have other interesting applications, for example it will be >>possible to use processor-specific syscalls instructions without >>recompiling userland, move some of the ABI code into userland (i.e. >>freebsd32 layer on amd64) etc. > > > I'm not sure I see much difference between a shared library and this > solution, but I'm equally sure we'd love to se a prototype before > we judge it :-) Difference is that you won't have additional problems with userland and kernel versions mismatch and don't need any additional complexity associated with versioning/fallback logic. -Maxim