[fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

Sven Barth pascaldragon at googlemail.com
Fri Oct 15 10:00:20 CEST 2010


Am 14.10.2010 20:09, schrieb Andrew Brunner:
>> What are the exact differences from this test to your last one? Would be
>> nice to know that... :)
>
> Every barrier causes a significant increase in time.  In high
> performance parallel computing time is something we minimize.  Big
> reductions in linear execution yield massive performance gains in the
> parallel environments.  So when I removed the FPC barrier that gave me
> a significant increase in performance.  I also used the parent's
> RTLEvent instead of creating one for each thread which added another
> boost.  Then i removed another barrier for adding elements to the
> watch list.  All together, that solved my problem.

Which FPC barrier did you remove?
What parent are you talking about?
Which other barrier did you remove?

Or to put it into a single question: what exactly (code) did you change 
in the RTL?

Regards,
Sven



More information about the fpc-pascal mailing list