From owner-cvs-src@FreeBSD.ORG Thu Oct 30 15:13:45 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7AC116A4CE; Thu, 30 Oct 2003 15:13:45 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5396643F75; Thu, 30 Oct 2003 15:13:45 -0800 (PST) (envelope-from davidxu@freebsd.org) Received: from freebsd.org (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9UNDhFY067021; Thu, 30 Oct 2003 15:13:44 -0800 (PST) (envelope-from davidxu@freebsd.org) Message-ID: <3FA19DBD.2050407@freebsd.org> Date: Fri, 31 Oct 2003 07:24:45 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031025 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Baldwin References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/i386/i386 trap.c src/sys/kern kern_sig.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 23:13:46 -0000 John Baldwin wrote: >On 30-Oct-2003 David Xu wrote: > > >>davidxu 2003/10/29 18:55:43 PST >> >> FreeBSD src repository >> >> Modified files: >> sys/i386/i386 trap.c >> sys/kern kern_sig.c >> Log: >> Try to fetch thread mailbox address in page fault trap, so when thread >> blocks in page fault hanlder, and upcall thread can be scheduled. It is >> useful if process is doing lots of mmap based I/O. >> >> > >Does this need to be ported to other arch's? > > > Yes, I think if other arch's want same performance as ia32. Peter has already ported it to amd64. But because I don't know other arch's page fault behavior, for example, is it safe to access a faulting page again in page fault trap if the page is the one includes kse mailbox ? is it possible the arch write half of word in a page fault if the faulting address crosses page boundary ? I need to avoid fetching a not fully written mailbox address, current I do not check the address range on ia32, I think I needn't to do so. David Xu