From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id CB566BBAF for ; Tue, 27 Jul 2010 08:55:27 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAGcfTkzVuiYS/2dsb2JhbACfZXHBOA2FKQQ X-IronPort-AV: E=Sophos;i="4.55,266,1278280800"; d="scan'208";a="56168255" Received: from solaria.dimino.org ([213.186.38.18]) by mail2-smtp-roc.national.inria.fr with ESMTP; 27 Jul 2010 08:55:27 +0200 Received: from aurora (localhost.localdomain [127.0.0.1]) by solaria.dimino.org (Postfix) with ESMTP id 36B3F80048; Tue, 27 Jul 2010 08:55:27 +0200 (CEST) Received: by aurora (Postfix, from userid 1000) id 0F9153FF1D; Tue, 27 Jul 2010 08:55:32 +0200 (CEST) Date: Tue, 27 Jul 2010 08:55:32 +0200 From: =?iso-8859-1?Q?J=E9r=E9mie?= Dimino To: Jake Donham Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] scalable web apps Message-ID: <20100727065531.GB17396@aurora> References: <914B9960-EBC8-439B-B7F8-A852859B522F@gmail.com> <407966.39005.qm@web111512.mail.gq1.yahoo.com> <20100726102904.10ed4768@deb0> <20100726075901.GA5561@aurora> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam: no; 0.00; scalable:01 byte:01 mmaped:01 26,:98 wrote:01 caml-list:01 cached:02 btw:03 asynchronous:03 apps:04 negligible:04 blocking:04 jul:05 thread:06 thread:06 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