Version française
Home     About     Download     Resources     Contact us    
Browse thread
scalable web apps
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jérémie Dimino <jeremie@d...>
Subject: Re: [Caml-list] scalable web apps
On Mon, Jul 26, 2010 at 12:57:55PM -0700, Jake Donham wrote:
> > BTW it is planed to add some kind of asynchronous file I/O support in
> > Lwt by using mmap and mincore.
> 
> How would this work? Is it possible to be notified when the page comes
> into core (mincore appears to support only polling)? Is it possible to
> request a page without blocking (by reading from it)? Just curious.

In case a page is not cached, the time required to launch a thread is
negligible compared to the time needed to retrieve the page from the
disk, so we can for example launch a thread which will try to access the
first byte of the mmaped page.

Best,

-- 
Jérémie