From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 0FE3BBBAF for ; Mon, 26 Jul 2010 19:23:09 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAOVgTUzVujhf/2dsb2JhbACfYHHDToU2BA X-IronPort-AV: E=Sophos;i="4.55,262,1278280800"; d="scan'208";a="64438102" Received: from witko.kerneis.info ([213.186.56.95]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 26 Jul 2010 19:23:08 +0200 Received: from alf94-4-82-224-79-17.fbx.proxad.net ([82.224.79.17] helo=hokahe.kerneis.info) by witko.kerneis.info with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1OdRNQ-0008M9-2c; Mon, 26 Jul 2010 19:22:08 +0200 Received: from gabriel by hokahe.kerneis.info with local (Exim 4.72) (envelope-from ) id 1OdRNA-0003NK-K1; Mon, 26 Jul 2010 19:21:52 +0200 Date: Mon, 26 Jul 2010 19:21:52 +0200 From: Gabriel Kerneis To: Sylvain Le Gall Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: scalable web apps Message-ID: <20100726172152.GC3092@kerneis.info> Mail-Followup-To: Sylvain Le Gall , caml-list@inria.fr References: <981136.2735.qm@web111515.mail.gq1.yahoo.com> <201007261850.30437.monnier.florent@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: 82.224.79.17 X-SA-Exim-Mail-From: gabriel@kerneis.info X-SA-Exim-Scanned: No (on witko.kerneis.info); SAEximRunCond expanded to false X-Spam: no; 0.00; scalable:01 26,:98 wrote:01 pps:01 caml-list:01 jussieu:01 caml:02 dbm:03 dbm:03 apps:04 concurrent:04 blocking:04 jul:05 problem:05 blocks:07 On Mon, Jul 26, 2010 at 05:10:01PM +0000, Sylvain Le Gall wrote: > > Both Dbm and Sqlite lock the entire files which blocks concurrent uses, > > isn't it a problem? > > For sqlite, at least, it uses Lwt_preemptive.detach and sqlite3 contains > the required caml_enter/leave_blocking_section(s). So Lwt should work > without problems with sqlite. > > I suppose it is the same for dbm. No. For dbm there is a separate daemon (ocsidbm) opening the file once and serializing requests sent from and back to Ocsigen through a pipe. Regards, -- Gabriel