From owner-freebsd-current@FreeBSD.ORG Wed Nov 5 00:59:06 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 476F616A4CE for ; Wed, 5 Nov 2003 00:59:06 -0800 (PST) Received: from exchhz01.viatech.com.cn (ip-167-164-97-218.anlai.com [218.97.164.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 319CE43F3F for ; Wed, 5 Nov 2003 00:59:00 -0800 (PST) (envelope-from davidxu@viatech.com.cn) Received: from viatech.com.cn (ip-240-1-168-192.rev.dyxnet.com [192.168.1.240]) by exchhz01.viatech.com.cn with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id TZ2GYMJ5; Wed, 5 Nov 2003 16:39:15 +0800 Message-ID: <3FA8BD16.2080705@viatech.com.cn> Date: Wed, 05 Nov 2003 17:04:22 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jun Su References: <200311050744.hA57i60Z083898@m-net.arbornet.org> In-Reply-To: <200311050744.hA57i60Z083898@m-net.arbornet.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: current@freebsd.org Subject: Re: SYSENTER in FreeBSD 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: Wed, 05 Nov 2003 08:59:06 -0000 Jun Su wrote: >I noticed that Jeff Roberson implement this already. Is whi will be commit? >http://kerneltrap.org/node/view/1531 > >I google this because I found this feature is listed in the list of Kernel Improvement of WindowsXP. :-) > >Thanks, >Jun Su > > > I have almost done this experiment about 10 months ago. http://people.freebsd.org/~davidxu/fastsyscall/ The patch is out of date and still not complete. Also it can give you some performance improve, but I think too many things need to be changed, and this really makes user ret code very dirty, some syscalls, for example, pipe() can not use this fast syscall, becaues pipe() seems using two registers to return file handle, the performance gain is immediately lost when the assemble code becomes more complex. I don't think this hack is worth to do on IA32, I heard AMD has different way to support fast syscall, that may already in FreeBSD AMD 64 branch. David Xu