From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p3GCD5Ie017992 for ; Sat, 16 Apr 2011 14:13:05 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhwCADGHqU1KfVK2kGdsb2JhbACETqE6CBQBAQEBCQkNBxQEIadbijGCXwEFjhIBBIEpg056l2c6 X-IronPort-AV: E=Sophos;i="4.64,223,1301868000"; d="scan'208";a="97325709" Received: from mail-wy0-f182.google.com ([74.125.82.182]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 16 Apr 2011 14:13:00 +0200 Received: by wyf23 with SMTP id 23so5208130wyf.27 for ; Sat, 16 Apr 2011 05:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:cc:references:in-reply-to:subject:date :organization:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; bh=WdVpZ2SQyV77x6Ux61fESNcpi48B0Pt0zI09klZXekA=; b=QGrD8kSTq78M87O61k/nxRlZozxOGkMom3qzh7DYE8OQvG1+jHbF4b0RTsZtFco9ad XAKj5U1ftfrnC7Z8dh+nDTaJX3LJ4xh1p+eoDwCg6n8tg7qJotqzF6qG9INoJf98KBn1 IGADSArHL6OjSGhUcijE6VEHrnDbIAVLTWjjk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:organization :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:content-language; b=RVxxGA3LWnSF4BpiPFyb7ZY03C4su+N8rFCa9Uc+xB7mSpetYDp+sF2KEi323tldsM RW5o1m5zx2AhXyYCacUEAULAQ0yZHvbdQaUiLZdN4I69JONdwQEj9CzbDODENQR8P/bh cpngHc0zIEtlDAFJz8GY+J9Y5agdrS8V+PQcM= Received: by 10.216.168.67 with SMTP id j45mr8489783wel.101.1302955979988; Sat, 16 Apr 2011 05:12:59 -0700 (PDT) Received: from WinEight ([80.229.123.248]) by mx.google.com with ESMTPS id f52sm1714371wes.35.2011.04.16.05.12.56 (version=SSLv3 cipher=OTHER); Sat, 16 Apr 2011 05:12:57 -0700 (PDT) From: Jon Harrop To: "'Gerd Stolpmann'" Cc: References: <2054357367.219171.1300974318806.JavaMail.root@zmbs4.inria.fr> <4D8BD02D.1010505@inria.fr> <1396338209.232813.1301046980856.JavaMail.root@zmbs4.inria.fr> <4D8C6D10.2020205@inria.fr> <1301054875.8429.298.camel@thinkpad> In-Reply-To: <1301054875.8429.298.camel@thinkpad> Date: Sat, 16 Apr 2011 13:12:29 +0100 Organization: Flying Frog Consultancy Message-ID: <00a601cbfc2f$8fbef4f0$af3cded0$@ffconsultancy.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQFhMASujb2QG2h3N2h7/lJjoQ23OAIYQRkZAkpOsC8BcEZJNgHrk/MOlPgIdpA= Content-Language: en-gb Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p3GCD5Ie017992 Subject: RE: [Caml-list] Efficient OCaml multicore -- roadmap? Gerd wrote: > AFAIK TLS is not costless but relatively cheap. Actually TLS is very expensive in this context because thread-local data is accessed so frequently. When I hoisted the use of TLS by carrying pointers to thread-local data around (altering the calling convention) in HLVM it resulted in 1.5-2x speedups on all benchmarks and the result was then only 17% slower than serial code. Cheers, Jon.