Paul, while you are running your tests, could you please compare this both scenarios:<div><br></div><div>- <use_zebra_facets>1</<span style="font-size:13.1999998092651px">use_zebra_facets></span></div><div><span style="font-size:13.1999998092651px">- <use_zebra_facets>0</</span><span style="font-size:13.1999998092651px">use_zebra_facets></span><br><br>Thanks</div><div><br></div><div>PS: I have found that searchResults is too slow too.<br><br><div class="gmail_quote">El Fri Jan 30 2015 at 19:34:41, Paul A (<<a href="mailto:paul.a@navalmarinearchive.com">paul.a@navalmarinearchive.com</a>>) escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">At 04:53 PM 1/30/2015 -0500, Mark Tompsett wrote:<br>
>Greetings,<br>
><br>
>If there is no negative effect, and only positive effects, I'd be more<br>
>than willing to submit a patch to default with a -T. :)<br>
<br>
I'm looking for "negatives" right now. Give me another little while, and<br>
I'll do a bug/enhancement myself with all the numbers (a bit of a struggle,<br>
NYTProf doesn't appear to like multi-threading.)<br>
<br>
Best -- Paul<br>
<br>
<br>
>GPML,<br>
>Mark Tompsett<br>
><br>
>-----Original Message----- From: Paul A<br>
>Sent: Friday, January 30, 2015 3:19 PM<br>
>To: Fridolin SOMERS ; <a href="mailto:koha-devel@lists.koha-community.org" target="_blank">koha-devel@lists.koha-<u></u>community.org</a><br>
>Subject: Re: [Koha-devel] Search speed<br>
><br>
>At 05:40 PM 1/30/2015 +0100, Fridolin SOMERS wrote:<br>
>>You can launch Zebra multi-threaded using :<br>
>>zebrasrv -T<br>
><br>
>Fridolin - merci mille fois -- first impressions are most positive.  I'll<br>
>try and find time later today to quantify the results and put them in<br>
>context of my previous tests.<br>
><br>
>[vi /usr/share/koha/bin/koha-<u></u>zebra-ctl.sh line 40 to ZEBRAOPTIONS="-T -v<br>
>none,fatal,warn"]<br>
><br>
>J'aurais bien aimer trouver ça tout seul ... mais encore une fois avec mes<br>
>remerciments.<br>
><br>
>Meilleures amitiés et a+<br>
>Paul<br>
><br>
><br>
>>Le 30/01/2015 02:59, Robin Sheat a écrit :<br>
>>>Paul A schreef op do 29-01-2015 om 19:39 [-0500]:<br>
>>>>Facets appear to have a huge overhead in various components of Zebra,<br>
>>>>to<br>
>>>>the point where a single core of a multiple processor CPU gets<br>
>>>>overwhelmed,<br>
>>>>but does not share the load with other totally idle cores.<br>
>>><br>
>>>That's not how multiprocessor systems work.<br>
>>><br>
>>>They can only spread load amongst other cores if the software is<br>
>>>multithreaded/multiprocess, which I suspect zebra isn't, at least within<br>
>>>a single request. If it does all its work in a single thread, then it<br>
>>>can't spread across multiple cores.<br>
>>><br>
>>>>Intel tell me<br>
>>>>that this is not fixable through any hardware/BIOS config and they are<br>
>>>>not<br>
>>>>aware of a Linux "standard library" that deals with processor<br>
>>>>affinity.  I've searched around a little and found mentions for c and<br>
>>>>FORTRAN (marvelous old memories for me!) but so far nothing totally<br>
>>>>specific for Perl.<br>
>>><br>
>>>Zebra is not Perl, zebra is (I think) C. But still, unless it's written<br>
>>>with multithreading in mind, you can't do anything about it.<br>
>>>><br>
>>>>taskset and sched_setaffinity might be usable at system<br>
>>>>level<br>
>>><br>
>>>Unless you have very specific use cases (which you don't), these won't<br>
>>>help.<br>
>>>><br>
>>>>, and I might have a look at pthread_setaffinity_np.3.gz<br>
>>><br>
>>>That will only help if you plan on rewriting zebra to use pthreads.<br>
>>><br>
>>>I don't recommend rewriting zebra.<br>
>>><br>
>>><br>
>>><br>
>>>___________________________<u></u>____________________<br>
>>>Koha-devel mailing list<br>
>>><a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-<u></u>community.org</a><br>
>>><a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-<u></u>community.org/cgi-bin/mailman/<u></u>listinfo/koha-devel</a><br>
>>>website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
>>>git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
>>>bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.<u></u>org/</a><br>
>><br>
>>--<br>
>>Fridolin SOMERS<br>
>>Biblibre - Pôles support et système<br>
>><a href="mailto:fridolin.somers@biblibre.com" target="_blank">fridolin.somers@biblibre.com</a><br>
>>____________________________<u></u>___________________<br>
>>Koha-devel mailing list<br>
>><a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-<u></u>community.org</a><br>
>><a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.<u></u>org/cgi-bin/mailman/listinfo/<u></u>koha-devel</a><br>
>>website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
>>git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
>>bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.<u></u>org/</a><br>
><br>
>---<br>
>Maritime heritage and history, preservation and conservation,<br>
>research and education through the written word and the arts.<br>
><<a href="http://NavalMarineArchive.com" target="_blank">http://NavalMarineArchive.<u></u>com</a>> and <<a href="http://UltraMarine.ca" target="_blank">http://UltraMarine.ca</a>><br>
><br>
>_____________________________<u></u>__________________<br>
>Koha-devel mailing list<br>
><a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-<u></u>community.org</a><br>
><a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.<u></u>org/cgi-bin/mailman/listinfo/<u></u>koha-devel</a><br>
>website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
>git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
>bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.<u></u>org/</a><br>
<br>
---<br>
Maritime heritage and history, preservation and conservation,<br>
research and education through the written word and the arts.<br>
<<a href="http://NavalMarineArchive.com" target="_blank">http://NavalMarineArchive.com</a><u></u>> and <<a href="http://UltraMarine.ca" target="_blank">http://UltraMarine.ca</a>><br>
<br>
______________________________<u></u>_________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-<u></u>community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.<u></u>org/cgi-bin/mailman/listinfo/<u></u>koha-devel</a><br>
website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.<u></u>org/</a><br>
</blockquote></div></div>