Re: [squid-users] Squid Under High Load

2007-01-30 Thread Matt
On Mon, 29 Jan 2007, Matt wrote: > 48Gbyte. Going by the white paper at Swelltech that stated a general > rule of thumb of 8Gbyte per T1 of active bandwidth. Right now at one > location we have 4 almost overloaded T1's moving to 6-7 T1's shortly > and growing. Other location we are doing this

Re: [squid-users] squid.conf bug?

2007-01-30 Thread Adrian Chadd
On Wed, Jan 31, 2007, Michel Santos wrote: > but should have an aditional check because any other char !ALL should be > out here as well or not? bitch is certainly unacceptable :) the > debug_option are ints aren't they? You can do that check in the argument parsing routine and do the # check in

Re: [squid-users] squid.conf bug?

2007-01-30 Thread Michel Santos
Adrian Chadd disse na ultima mensagem: > What you want to do is find the code which parses the arguments (which is > debugArg() in debug.c) and the routine which parses the actual debug > options > list (which is _db_init() in debug.c) and teach them about the # > character. > Personally, I'd put

Re: [squid-users] squid.conf bug?

2007-01-30 Thread Adrian Chadd
On Wed, Jan 31, 2007, Michel Santos wrote: > well well > > seems debug_option is an eol type and read by xstrdup so anything goes in > here ... even icecream,00 and bitch,69 - I am not sure what squid does > with both because neither the bitch nor the icecream are logged at the end > :) still goo

Re: [squid-users] squid.conf bug?

2007-01-30 Thread Michel Santos
Adrian Chadd disse na ultima mensagem: > On Tue, Jan 30, 2007, Michel Santos wrote: >> >> Emilio Casbas disse na ultima mensagem: >> > I don't think is a bug, >> > from the squid.conf.default >> > >> > - >> > Lines beginning with an hash (#) character are comments.

Re: [squid-users] no Header information in 2.6Stable9

2007-01-30 Thread Adrian Chadd
On Tue, Jan 30, 2007, Emilio Casbas wrote: > Today We have updated from 2.5Stable.14 to 2.6.Stable9, all is working > fine, but we > have seen a strange behaviour with HEAD requests. The best thing for you to do is place this into Bugzilla - http://www.squid-cache.org/bugs/index.cgi That way it

Re: [squid-users] Small objects in memory only

2007-01-30 Thread Adrian Chadd
On Wed, Jan 31, 2007, Reinis Rozitis wrote: > So theoretically we have to check: > > /* Calculate the object size */ > objsize = objectLen(e); > > And in case it doesnt exceed some predefined size (lets say 3kb) break > imideatly without returning 'dirn'.. Just return -1 I believe :) (Hey, t

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Adrian Chadd
On Tue, Jan 30, 2007, Michel Santos wrote: > But if you don't switch to SCSI I believe you do not get lucky with any. > Dont forget most of disk io for IDE/Sata is done by the CPU, so may be > your machine get stucked here, the CPU tries and runs to death since the > disk can not handle it. Thats

Re: [squid-users] squid.conf bug?

2007-01-30 Thread Adrian Chadd
On Tue, Jan 30, 2007, Michel Santos wrote: > > Emilio Casbas disse na ultima mensagem: > > I don't think is a bug, > > from the squid.conf.default > > > > - > > Lines beginning with an hash (#) character are comments. > > - > > > > Yo

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Adrian Chadd
On Tue, Jan 30, 2007, Jason Taylor wrote: > Are you logging access_log to syslog? > I used to have "access_log syslog" in my squid.conf and just turned it off. > I saw my iowait drop from 46% to 1% within 10 seconds. This seems to be an artifact of Squid's synchronous logging code. (And, in your c

Re: [squid-users] Small objects in memory only

2007-01-30 Thread Reinis Rozitis
Look in store_dir.c for inspiration. You want to modify storeDirSelectSwapDirLeastLoad or storeDirSelectSwapDirRoundRobin depending on what you use. If I remember right the swapout selection is done at object creation time. If selection fails there it won't be swapped out at all. It'd be nice f

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Jason Taylor
Are you logging access_log to syslog? I used to have "access_log syslog" in my squid.conf and just turned it off. I saw my iowait drop from 46% to 1% within 10 seconds. /Jason Andrew Miehs wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 30/01/2007, at 8:51 PM, Robert wrote: My connecti

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Michel Santos
Robert disse na ultima mensagem: >> > My connection speed is 45 Mbit max, but real traffic is about 30-35 Mbit > including P2P. >> hey, now it is an interesting matter, so you may have 10-15Mb/s as http traffic here, may be some more sometimes doyou do NAt on this box? Or any fwd rules? or is it

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Michel Santos
Andrew Miehs disse na ultima mensagem: > > Top on linux/ (at least on debian) only shows one cpu (an average > over all 4 in this case). > I'll better be quiet because I really do not know much about Linux, but I believe redhat top also shows a CPU column like BSD, where you see the CPUID of each

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 30/01/2007, at 8:51 PM, Robert wrote: My connection speed is 45 Mbit max, but real traffic is about 30-35 Mbit including P2P. I am not really sure how high the interrupts are allowed to go... 20:33:10 CPU %user %nice%sys %iowait

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Robert
Andrew Miehs napisał(a): Hi Robert, This box seems to be running something a little MORE than squid - could this be a firewall perhaps? Yes it is iptables firewall, The huge number of interrupts then seem ok for this sort of a setup - How many Megabits/ second are you pushing through this bo

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Andrew Miehs
Hi Michel On 30/01/2007, at 8:06 PM, Michel Santos wrote: he said in an older msg that is a dual-xeon but the CPU column is not in top (the one he sent) so probably his OS is not SMP enabled I had read that - was just wondering due to the name he picked for his machine... Linux sunfir

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Michel Santos
Andrew Miehs disse na ultima mensagem: > > Is this box really an Intel box, or does it have Opterons installed? > (hostname name = sunfire) > he said in an older msg that is a dual-xeon but the CPU column is not in top (the one he sent) so probably his OS is not SMP enabled Michel ...

[squid-users] Cookie Rewrites?

2007-01-30 Thread Chris Nighswonger
Hi all, Is is possible to do cookie rewrites with squid? I.e. change all cookies to 'session-only.' Or is there a helper program to do this? Thanks, Chris -- Chris Nighswonger Network & Systems Director Foundations Bible College & Seminary www.foundations.edu www.fbcradio.org

[squid-users] Multiple Redirect Programs

2007-01-30 Thread Chris Nighswonger
Hi all, A search of the list archives shows only one post regarding this and that one received no answer. So How do I use more than one redirect program with squid? Inserting multiple redirect_program lines bungles squid. I need to run both adzapper and squirm. Chris -- Chris Nighswonger N

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Andrew Miehs
Hi Robert, This box seems to be running something a little MORE than squid - could this be a firewall perhaps? The huge number of interrupts then seem ok for this sort of a setup - How many Megabits/ second are you pushing through this box?! Sorry to be a pain - I have more quesions... Is

[squid-users] squid stable8 patch missing..

2007-01-30 Thread Dan Thomson
Hey, just wanted to know whomever is in charge of the squid website that the stable8 patch seems to be missing: The requested URL /Versions/v2/2.6/squid-2.6.STABLE8.patch.gz was not found on this server -- Dan Thomson Systems Engineer Peer1 Network 1000 555 West Hastings Vancouver, BC V6B 4N5 86

Re: [squid-users] ACL issues

2007-01-30 Thread Joao Ferreira
On Tue, 2007-01-30 at 11:40 -0600, Craig Van Tassle wrote: > I have been getting a lot of incorrect deny with my Squid system. I double > checked the ACL's that I am using and sites like belkin.com are not in any of > my > acl's however they are still getting blocked. Is there how would I go about

[squid-users] no Header information in 2.6Stable9

2007-01-30 Thread Emilio Casbas
Today We have updated from 2.5Stable.14 to 2.6.Stable9, all is working fine, but we have seen a strange behaviour with HEAD requests. In a 2.5Stable squid version this happens: --- [EMAIL PROTECTED] libexec]# telnet squid2.5 8080 Trying squid2.5... Co

[squid-users] ACL issues

2007-01-30 Thread Craig Van Tassle
I have been getting a lot of incorrect deny with my Squid system. I double checked the ACL's that I am using and sites like belkin.com are not in any of my acl's however they are still getting blocked. Is there how would I go about finding out what ACL is blocking access to these sites? Thanks Cra

Re: [squid-users] squid.conf bug?

2007-01-30 Thread Michel Santos
Emilio Casbas disse na ultima mensagem: > I don't think is a bug, > from the squid.conf.default > > - > Lines beginning with an hash (#) character are comments. > - > > You can have a more clear way to achieve this, > > debug_options

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Itzcak Pechtalt
cache_dir diskd /cache/cache1 1000 2 256 Q1=64 Q2=72 Your configuration for L1 in cache_dir is 2, it seems to be too low. By default it's 64, Henrik wrote in another mail here the following: - L1 value: cache_dir/416 (old post from Henrik) cache_dir/500 (other post read here) cache_dir/

[squid-users] Troubles with cachemgr.cgi

2007-01-30 Thread Roberto Navarro - Tusprofesionales, SL
I cannot acces cachemgr.cgi Whenever I try to access, i get the following error: ERROR Cache Access Denied While trying to retrieve the URL: cache_object://localhost/ The following error was encountered: * Acceso denegado al caché. Sorry, you are not currently allowed to request: ca

Re: [squid-users] squid.conf bug?

2007-01-30 Thread Emilio Casbas
I don't think is a bug, from the squid.conf.default - Lines beginning with an hash (#) character are comments. - You can have a more clear way to achieve this, debug_options ALL,1 #debug_options ALL,1 6,3 20,3 28,3 32,3 47,3 51,3 7

Re: [squid-users] upgrading squid to 2.6

2007-01-30 Thread Emilio Casbas
You can download the last source (2.6.Stable9) from http://www.squid-cache.org/Versions/v2/2.6/ 1. unpack it 2 # ./configure --help or you could try to install at same time with your current rpm squid in a different path and running it with a different port to test it. # ./configure --prefix=

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Robert, Could you provide output from: uname -a uptime cat /proc/stat I am not a big fan of top - as the output can be very confusing to read. How many processors are in this box? Hyperthreading? (We will see this in /proc/

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Robert
When top shows cpu usage between 70-99% command vmstat 5 shows: procs ---memory-- ---swap-- -io --system-- cpu r b swpd free buff cache si sobibo incs us sy id wa 3 0 2572 52232 200152 27469200 3 31 0 2 13 8

[squid-users] squid.conf bug?

2007-01-30 Thread Michel Santos
is this probably a bug? the following is one line and all options after the comment are used debug_options ALL,1 #6,3 20,3 28,3 32,3 47,3 51,3 79,3 81,3 so I need to break the line in order to disable the other options: debug_options ALL,1 #6,3 20,3 28,3 32,3 47,3 51,3 79,3 81,3 Michel ...

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Michel Santos
Adrian Chadd disse na ultima mensagem: > I've started to flesh out a "how to profile Squid" section in the Squid > FAQ: > > http://wiki.squid-cache.org/SquidFaq/SquidProfiling > > See if there's anything there that helps you out. Check for disk and CPU > usage, > consider running oprofile and iden

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Adrian Chadd
I've started to flesh out a "how to profile Squid" section in the Squid FAQ: http://wiki.squid-cache.org/SquidFaq/SquidProfiling See if there's anything there that helps you out. Check for disk and CPU usage, consider running oprofile and identify where all the CPU use is going. Thanks, Adrian

Re: [squid-users] High CPU usage problem on Squid 2.6 STABLE9

2007-01-30 Thread Robert
Adrian Chadd napisał(a): On Mon, Jan 29, 2007, Robert wrote: OK i recompiled squid with options: Squid Cache: Version 2.6.STABLE9 configure options: '--enable-storeio=diskd,aufs' '--enable-removal-policies=heap' '--disable-wccp' '--enable-arp-acl' '--enable-cache-digests' '--enable-default-