From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 5D3187EE7A for ; Wed, 27 Mar 2013 23:49:44 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=pra; client-ip=212.227.126.187; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=mailfrom; client-ip=212.227.126.187; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@moutng.kundenserver.de designates 212.227.126.187 as permitted sender) identity=helo; client-ip=212.227.126.187; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="postmaster@moutng.kundenserver.de"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4AADV3U1HU4367jWdsb2JhbABDgzqsVZILfxYOAQEBAQcLCwkSBSWCHwEBBAFsAggDBR4GBBNdCQQOBhMJCYdwAwkKCLU4A4llFYkBhVwmB4NAA44ZhQiEZZJ0 X-IPAS-Result: Av4AADV3U1HU4367jWdsb2JhbABDgzqsVZILfxYOAQEBAQcLCwkSBSWCHwEBBAFsAggDBR4GBBNdCQQOBhMJCYdwAwkKCLU4A4llFYkBhVwmB4NAA44ZhQiEZZJ0 X-IronPort-AV: E=Sophos;i="4.84,922,1355094000"; d="scan'208";a="10756903" Received: from moutng.kundenserver.de ([212.227.126.187]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 27 Mar 2013 23:49:32 +0100 Received: from office1.lan.sumadev.de (dslb-094-219-220-119.pools.arcor-ip.net [94.219.220.119]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0M95x7-1UWmJt1FnR-00CDuQ; Wed, 27 Mar 2013 23:49:32 +0100 Received: from samsung (ip-5-146-55-186.unitymediagroup.de [5.146.55.186]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id D90CFC00CF; Wed, 27 Mar 2013 23:49:31 +0100 (CET) Date: Wed, 27 Mar 2013 23:49:31 +0100 From: Gerd Stolpmann Reply-To: Gerd Stolpmann To: Denis Berthod Cc: Philippe Veber , caml users In-Reply-To: <24E57FC8-F2E0-4E4F-9D6B-B8891972A47B@gmail.com> X-Mailer: Balsa 2.4.11 Message-Id: <1364424571.14693.1@samsung> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Provags-ID: V02:K0:2YdWpsPTbixPC9lN1we0z0MkHWOp/uGzIYwbPEcRFwJ mcjRLY2zZk8yXrrzuFvhZCdqqFU4FaxCPUMMr0MBeur0YMxDe6 voYTxHsyzQGO4DeI2SXphi2oIyIL4VA1xgs+zuzcaEftcFzoCk xgiMY1w7r5tc2pm+beSusT7MVrWb0pMVbyhxheEMROTd6cUtXQ shzXfXD08ofZT98YAEPbdRCndMwsJI3kWO8yOOtBAYErGaiyLK IbjDoFVYT34Nv32mTexzOIiimkZu6F4fV00D7nsYt7m+3V9I/U ZiIZRCAIPbx1Wm16vxbIny4TLrGpn16qPJ0h2/K2SAzgZwU6fH jfI5hGp0hzNnVSnM7qaeRjPklgHNul9kEv5BFcDen Subject: AW: [Caml-list] Master-slave architecture behind an ocsigen server. Am 27.03.2013 23:42:14 schrieb(en) Denis Berthod: > Hello, >=20 > Isn't the Lwt_preemptive module exactly what you want? >=20 > http://ocsigen.org/lwt/api/Lwt_preemptive >=20 > But maybe, you want to use real processes and not threads. In OCaml, only one thread may access runtime functions at a time, and=20=20 because of this, only one thread at a time can run OCaml code. So you=20=20 exploit only one core with a multi-threaded program. I guess this does=20= =20 not meet Philippe's scalability requirement, and he wants to use=20=20 processes instead. Gerd > Cheers, >=20 > Denis >=20 > Le 26 mars 2013 =E0 15:29, Philippe Veber a =E9crit : >=20 > > Dear all, > > > > I'm developping an ocsigen website doing some scientific=20=20 > calculations. Up to now, the calculations were done in the same=20=20 > process that runs the server. In order to gain in scalability (and=20=20 > maybe stability too), I would like to run those calculations in a=20=20 > separate (pool of) process(es). As this is a pretty typical setup, I=20= =20 > guess quite a few people have already done that. So I'd like to hear=20= =20 > some suggestions on what library to use in this particular context.=20=20 > It seems to me that the release library [1] should do the job and is=20= =20 > lwt-friendly, but there are maybe other good options? > > > > Thanks for any hint, cheers! > > > > Philippe. > > > > [1] https://github.com/andrenth/release >=20 >=20 > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs --=20 ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de Creator of GODI and camlcity.org. Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------=