[Poppler-bugs] [Bug 50992] library should be thread-safe

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 14 05:38:30 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=50992

--- Comment #77 from Thomas Freitag <Thomas.Freitag at alfa.de> ---
(In reply to comment #76)
> 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?

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!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20121114/9fa3f5d7/attachment.html>


More information about the Poppler-bugs mailing list