<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - library should be thread-safe"
href="https://bugs.freedesktop.org/show_bug.cgi?id=50992#c77">Comment # 77</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - library should be thread-safe"
href="https://bugs.freedesktop.org/show_bug.cgi?id=50992">bug 50992</a>
from <span class="vcard"><a class="email" href="mailto:Thomas.Freitag@alfa.de" title="Thomas Freitag <Thomas.Freitag@alfa.de>"> <span class="fn">Thomas Freitag</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=50992#c76">comment #76</a>)
<span class="quote">> Also there seems to be a huge lock-contention (at leat with your pdftoppm
> test), running the patched pdftoppm with USE_THREADS and MAX_THREADS of 8 i
> never got cpu usage over 100% (where 100% is one core used) of my 8 cores (i
> expected it to go close to 700% at least) and the number of pages per second
> also dropped, in a given PDF with lots of pages and 20 seconds of rendering
> it went down from around 250 to around 170 pages rendered when using
> multithreading.
>
> Any idea why that might be happening?</span >
Probably a problem of using sleep(), which has one second as minimal value when
all threads are used. Can You try to increase the MAX_THREADS? I used 5 for my
dual core during testing, and it became faster!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>