From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id A30ABBB84 for ; Thu, 11 Sep 2008 17:43:27 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AooAAALZyEjRVYa7k2dsb2JhbACSJz4BAQEBCQMICREDnlSGUAEChAc X-IronPort-AV: E=Sophos;i="4.32,381,1217800800"; d="scan'208";a="16839645" Received: from mu-out-0910.google.com ([209.85.134.187]) by mail3-smtp-sop.national.inria.fr with ESMTP; 11 Sep 2008 17:43:27 +0200 Received: by mu-out-0910.google.com with SMTP id i2so267038mue.3 for ; Thu, 11 Sep 2008 08:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:cc:x-mailer; bh=0eV0EiwmpDrgEu8TMasyvYvpLM8TpajBN1IAdoX0Vpg=; b=RSf46bKfVCAeRrdL6DMOIp21mdnoVY2hkQxi+77gloaUApq2zjj01r5horhmKSdXR8 TczIQlxAylArGEEo0Y/FS7RXbwwGeH6KZlmeDZ5R1kmeVDB4PNbDI9xCcwLfhfpqicYJ 25QfLWH8BcPpgVapCRCG2n/sz3DzQMbp6aoMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:cc:x-mailer; b=jGQtG4SNaZhhuW/+2tECdsFP/ZHgSNdivpSc19CT6+ARRHp1oE39KIdCPmga+srKvq Hj5dqEwDQ6F9w0lHMxvlu4MHsQWns4qTtqBbMcczuoNw1I+xd2Bmy0C/Twe1I6MD8xDa mX/4BoMOQrQS5S80DUB+nPiQ+qTlx/BGstXIo= Received: by 10.180.212.1 with SMTP id k1mr2223750bkg.58.1221147806627; Thu, 11 Sep 2008 08:43:26 -0700 (PDT) Received: from ?10.10.30.6? ( [88.27.249.46]) by mx.google.com with ESMTPS id y15sm7996394fkd.17.2008.09.11.08.43.25 (version=SSLv3 cipher=RC4-MD5); Thu, 11 Sep 2008 08:43:26 -0700 (PDT) References: <01677251-3A8D-4DCA-9E39-7D17FAC92645@gmail.com> <20080911143735.EF7EC29B2A@kicki.hq.vtech> Message-Id: <43AB5EFE-44FF-47AB-818E-F27DD03823AE@gmail.com> From: Joel Reymont To: "Markus Mottl" In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: [Caml-list] ocamlnet and kernel poll Date: Thu, 11 Sep 2008 16:43:24 +0100 Cc: =?ISO-8859-1?Q?=22Mattias_Engdeg=E5rd=22?= , caml-list@yquem.inria.fr X-Mailer: Apple Mail (2.926) X-Spam: no; 0.00; ocamlnet:01 markus:01 mottl:01 threads:01 wrote:01 caml-list:01 suggesting:02 kernel:02 buffers:04 depends:04 sep:06 efficient:07 releasing:08 release:09 release:09 On Sep 11, 2008, at 4:32 PM, Markus Mottl wrote: > Use bigstrings as buffers and > perform I/O outside of the OCaml-lock if releasing it (depends on > I/O-size) is more efficient. Are you suggesting using multiple OS threads within a single process? When exactly do you release the lock and how do you perform IO outside of it? How do you determine whether to release the lock or not? Thanks, Joel -- wagerlabs.com