From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 29 05:20:16 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 237791065670 for ; Sun, 29 Mar 2009 05:20:16 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outO.internet-mail-service.net (outo.internet-mail-service.net [216.240.47.238]) by mx1.freebsd.org (Postfix) with ESMTP id 029318FC16 for ; Sun, 29 Mar 2009 05:20:15 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id A81CC39EC5; Sat, 28 Mar 2009 22:20:15 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id BB5042D6011; Sat, 28 Mar 2009 22:20:12 -0700 (PDT) Message-ID: <49CF0523.8020905@elischer.org> Date: Sat, 28 Mar 2009 22:20:35 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: David Xu References: <11609492.9579.1238167614335.JavaMail.root@vms070.mailsrvcs.net> <49CD0405.1060704@samsco.org> <49CD30E9.7030501@elischer.org> <49CEC261.4010803@freebsd.org> In-Reply-To: <49CEC261.4010803@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Scott Long , Sergey Babkin , freebsd-hackers@freebsd.org, attilio@freebsd.org, phk@phk.freebsd.dk, freebsd-current@freebsd.org, prashant.vaibhav@gmail.com Subject: Re: Improving the kernel/i386 timecounter performance (GSoC proposal) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2009 05:20:16 -0000 David Xu wrote: > Julian Elischer wrote: >> Scott Long wrote: >>> I've been talking about this for years. All I need is help with the >>> VM magic to create the page on fork. I also want two pages, one global >>> for gettimeofday (and any other global data we can think of) and one >>> per-process for static data like getpid/getgid. >> >> interestingly it is even feasible to have a per-thread page.. >> it requires that the scheduler change a page table entry tough. >> > > I will knock his door at midnight if he added such a heavy weight > task in the scheduler, TLB shutdown is horrible, and big code size > squeezing out data from CPU cache is not idea model. > scheduler should be as simple as just a context switching routine. > :-) > > David Xu depends on the hardware. anyhow I was only saying it was possible, not necessarily good or even useful.