From owner-freebsd-hackers@FreeBSD.ORG Fri May 20 22:56:32 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6433D16A4CE for ; Fri, 20 May 2005 22:56:32 +0000 (GMT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id D493043D6D for ; Fri, 20 May 2005 22:56:31 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.1/8.13.1) with ESMTP id j4KMuFN9055802; Fri, 20 May 2005 15:56:19 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200505202256.j4KMuFN9055802@gw.catspoiler.org> Date: Fri, 20 May 2005 15:56:15 -0700 (PDT) From: Don Lewis To: PeterJeremy@optushome.com.au In-Reply-To: <20050520224928.GI2129@cirb503493.alcatel.com.au> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: hackers@FreeBSD.org cc: hselasky@c2i.net Subject: Re: problems with new the "contigmalloc" routine X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2005 22:56:32 -0000 On 21 May, Peter Jeremy wrote: > On Fri, 2005-May-20 21:51:34 +0200, Hans Petter Selasky wrote: >>Can anyone explain why "uiomove()" has to sleep, and why there is no >>non-blocking "uiomove()"? > > As far as I can see, uiomove() only sleeps if it is asked to do a > kernel<->userland move that takes more than twice a scheduler quantum. > As long as you don't uiomove() ridiculous amounts of data, it should > never sleep. It can also sleep if it stumbles across a userland page that isn't resident. When this happens, it will sleep until the page is retrieved from swap.