[Haskell-cafe] Threading and Mullticore Computation

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Mar 3 12:39:05 EST 2009


Hello mwinter,

Tuesday, March 3, 2009, 8:31:12 PM, you wrote:

not same :)  when you perform two computations at the same time,
you have 2x more memory allocated that means that each GC will need
more time. and don't forget that GC is single-threaded

> In both runs the same computations are done (sequentially resp.
> parallel), so the gc should be the same. But still using 2 cores is
> much slower than using 1 core (same program - no communication).

> On 3 Mar 2009 at 20:21, Bulat Ziganshin wrote:

>> Hello mwinter,
>> 
>> Tuesday, March 3, 2009, 8:09:21 PM, you wrote:
>> 
>> >    anybody give me an idea what I am doing wrong?
>> 
>> 1. add -O2 to compile command
>> 2. add +RTS -s to run commands
>> 
>> your program execution time may be dominated by GCs
>> 
>> 
>> -- 
>> Best regards,
>>  Bulat                            mailto:Bulat.Ziganshin at gmail.com


> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list