Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2005 15:56:15 -0700 (PDT)
From:      Don Lewis <truckman@FreeBSD.org>
To:        PeterJeremy@optushome.com.au
Cc:        hselasky@c2i.net
Subject:   Re: problems with new the "contigmalloc" routine
Message-ID:  <200505202256.j4KMuFN9055802@gw.catspoiler.org>
In-Reply-To: <20050520224928.GI2129@cirb503493.alcatel.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505202256.j4KMuFN9055802>