Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Why systhreads?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-11-26 (06:49)
From: Sven Luther <luther@d...>
Subject: Re: [Caml-list] Why systhreads?
On Mon, Nov 25, 2002 at 02:20:11PM -0800, Chris Hecker wrote:
> >If you want your application to parallelize well, the winning design 
> >pattern seems to be message passing between distributed memory processes.
> I was going to let it drop after the "lecture" (which should be put in a 
> faq or something), but come on, this is a silly generalization.  I have 
> colleagues who have gotten very large speedups from hyperthreading on 
> commercial applications, not demos.  The point is, it's "free" for Intel to 
> put it in, and your app is waiting on cache misses and pipeline stalls 
> anyway, so you might as well do something with those cycles.  Now you can 
> get extra work done during those times in C, but you won't be able to in 
> caml, and that's a bummer.  It's not a showstopper, since you can always 
> call out to C, but it is yet another thing in the list of features that 
> aren't natively exploitable in caml.  Of course there's a cost to enabling 
> this in caml, and it may be that there's no good way to do it or that it's 
> not worth it cost/benefit-wise, but saying "you don't want to do it anyway" 
> is just apologist.
> Xavier saying 1.5x is not worth it is really strange to me; most 
> performance sensitive programmers I know would kill their mother to get 
> 1.5x.  I wonder what factor would be worth it for Xavier?

I think he said that the 1.5x would not cover the cost of adding smp
support in the first place. Apart from the fact that the added cost will
also be incurred by the single processor people, and, well HT technology
is all fine, but there will be some time before it is widely available.
Maybe then this issue will come up again, and another response will be


Sven Luther
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: