Search squid archive

Re: squid cpu problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Dear Amos
returning to our problem CPU Spikes on squid 3.1.19 or 2.7.9 i see this bug in gdb
       while ((t_off + p.len) < offset)

and other while loops like  ( while L )  and hanging
and some errors like : 0x00007f4e932c8103 in epoll_wait () from /lib64/libc.so.6

this errors rises CPU to 100% for random time and comes down back to the normal value i dont think there is a hardware issue because the problem occurs in any time even when squid is not loaded

as a notice i have 4 servers one of them is having such problem . the only difference that the server with the issue has new kernel

Linux proxy4 3.10.25-gentoo SMP
gcc version 4.5.4 (Gentoo 4.5.4 p1.2, pie-0.4.7)

while the other servers have
Linux proxy91 3.4.9-gentoo
gcc version 4.5.4 (Gentoo 4.5.4 p1.0, pie-0.4.7)


i had compile errors on proxy 4 for squid 3.1 so i added this to configure CC=x86_64-pc-linux-gnu-gcc CFLAGS=-O2 -pipe -m64 -mtune=generic LDFLAGS=-Wl,-O1 -Wl,--as-needed CXXFLAGS= --cache-file=/dev/null --srcdir=.

does these cause these C loops


Thanks Amos



On 02/07/2014 03:29 PM, Ayham Abou Afach wrote:
On 02/03/2014 10:37 PM, Amos Jeffries wrote:
On 2014-02-04 00:00, Ayham Abou Afach wrote:
Dear All
i have problem with squid
CPU spikes for 100% some times for random times from seconds to
minutes . in this time traffic goes down and squid seems to be hanging
and after this every thing become normal and the process continue
working without shutdown and even any change in PID ..

i tried squid 3.1 , 2.7 with the same problem i have solid state disks for small objects , and the same config is used on three other servers

could be a hardware issue ( i don't see any error in syslog )

Best regards
Ayham

Are you sure it is Squid and not something else in the system?
there is nothing on system but squid and named and what is clear in top command that squid is taking 100% CPU some times and when try to strace to this process while it's hanging the strace hangs without going into process
(eg. memory swapping, kernel loading/unloading something big from RAM, SSD controllers recovering broken sectors with blocking I/O operations, schtuff like that...)
vmstat shows wa ( CPU wait )  less than 2 ( using ssd disks )
how can i monitor the other things like disk controllers or other things

Does it still occur with the latest stable Squid? (3.4.3 today).
i didn't try squid 3.4 yet

Amos







[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux