Re: [squid-users] High cpu usage by re_search_internal

2014-10-06 Thread Marcus Kool
> I don't know i am correct or not but in /etc/init/squid3.conf i see > following > lines > env CONFIG="/etc/squid3/squid.conf" > env SQUID_ARGS="-YC" > > so i have added following line > env LANG=C > > correct ? does not need double qotation mark ? That should do it. Marcus > > > -- > View this

Re: [squid-users] High cpu usage by re_search_internal

2014-10-06 Thread Omid Kosari
I don't know i am correct or not but in /etc/init/squid3.conf i see following lines env CONFIG="/etc/squid3/squid.conf" env SQUID_ARGS="-YC" so i have added following line env LANG=C correct ? does not need double qotation mark ? -- View this message in context: http://squid-web-proxy-cache.1

Re: [squid-users] High cpu usage by re_search_internal

2014-10-06 Thread Omid Kosari
Thanks for the tip . 1. Is there any way to detect that what is current LANG without need to restart squid ? 2. Is there any way to put that string inside /etc/init/squid.conf ? how ? Thanks again . -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/High-cpu-us

Re: [squid-users] High cpu usage by re_search_internal

2014-10-06 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/10/2014 9:01 p.m., Omid Kosari wrote: > Dear Amos > > What's your idea about Marcus comment ? > It was a new solution to me. I think I understand the details behind it (unicode charset size) and agree it is worth doing if you can. Amos -

Re: [squid-users] High cpu usage by re_search_internal

2014-10-06 Thread Omid Kosari
Dear Amos What's your idea about Marcus comment ? -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/High-cpu-usage-by-re-search-internal-tp4667550p4667689.html Sent from the Squid - Users mailing list archive at Nabble.com.

Re: [squid-users] High cpu usage by re_search_internal

2014-10-04 Thread Marcus Kool
I suspect that the language setting is causing it. If $LANG is different from "C" it may have a huge impact on the performance of regular expression evaluation (not only in Squid but also awk, sed etc.) Try this: LANG=C /etc/init.d/squid start and see if Squid improves. Marcus > Hi, > > I have

Re: [squid-users] High cpu usage by re_search_internal

2014-10-04 Thread Omid Kosari
Thanks a lot . The latest file with your helps is here http://pastebin.com/8yytTWqA Any other tricks appreciated . -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/High-cpu-usage-by-re-search-internal-tp4667550p4667661.html Sent from the Squid - Users mailin

Re: [squid-users] High cpu usage by re_search_internal

2014-10-04 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/10/2014 4:12 a.m., Amos Jeffries wrote: > On 5/10/2014 3:34 a.m., Omid Kosari wrote: >> Mehdi Sarmadi wrote >>> Hey >>> >>> Alright. About refresh pattern you have a very excessive list >>> IMHO. I don't know about your hardware but generally fo

Re: [squid-users] High cpu usage by re_search_internal

2014-10-04 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/10/2014 3:34 a.m., Omid Kosari wrote: > Mehdi Sarmadi wrote >> Hey >> >> Alright. About refresh pattern you have a very excessive list >> IMHO. I don't know about your hardware but generally for a >> typical general purpose SMB server hardware, t

Re: [squid-users] High cpu usage by re_search_internal

2014-10-04 Thread Omid Kosari
Mehdi Sarmadi wrote > Hey > > Alright. About refresh pattern you have a very excessive list IMHO. I > don't know about your hardware but generally for a typical general purpose > SMB server hardware, that's too much. If you want to stick with it and > can't reduce the list. > Check, how many core

Re: [squid-users] High cpu usage by re_search_internal

2014-10-04 Thread Omid Kosari
Thanks . I did it . When all refresh_pattern lines commented except following default ones refresh_pattern ^ftp: 144020% 10080 refresh_pattern ^gopher:14400% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4

Re: [squid-users] High cpu usage by re_search_internal

2014-10-04 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/10/2014 1:04 a.m., Omid Kosari wrote: > Hi, > > I have 2 squid boxes . Same version,OS and almost same > config,hardware . Both have same problem also . normally cpu usage > by squid is very high . I have tried this guide > http://wiki.squid-cach

Re: [squid-users] High cpu usage by re_search_internal

2014-10-04 Thread Omid Kosari
Hi, I have 2 squid boxes . Same version,OS and almost same config,hardware . Both have same problem also . normally cpu usage by squid is very high . I have tried this guide http://wiki.squid-cache.org/SquidFaq/SquidProfiling and found more than 85% of cpu usage is by re_search_internal symbol na