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

Volker Zipfel maillist at fotoalbum2000.de
Thu Oct 14 14:07:32 CEST 2010


Am 14.10.2010 11:29, schrieb Michael Van Canneyt:
>
>
> On Thu, 14 Oct 2010, Henry Vermaak wrote:
>
>> On 14/10/10 10:20, Michael Van Canneyt wrote:
>>>
>>>
>>> On Thu, 14 Oct 2010, Henry Vermaak wrote:
>>>
>>>> On 14/10/10 03:15, Andrew Brunner wrote:
>>>>>
>>>>> I would say let's try to obtain source to pthreads or something. I'd
>>>>> bet we can just do a straight shoot into something from there. If
>>>>> it's open source i'd bet we can bother them perhaps for a newer
>>>>> version more high-scale friendly.
>>>>
>>>> NPTL source is in glibc.
>>>>
>>>>> I presently can create 1,500 threads in 2 min 27seconds. That's 2 1/2
>>>>> threads per second... 25min! Pathetic...
>>>>
>>>> Ingo Molnar have started and stopped 100,000 threads in less than 2
>>>> seconds on a dual P4 machine in some of the early NPTL tests.
>>>
>>> One after the other ? That is not a meaningful test in this case ?
>>> You should know how many threads existed in parallel.
>>
>> No, parallel:
>>
>> http://lwn.net/Articles/10740/
>
> Impressive. So the FPC implementation on top of this obviously does
> something on top of this which causes it to slow down.
>

When running the attached test program without a debugger, the FPC 
performance won't be that bad either.

Volker



More information about the fpc-pascal mailing list