Re: [squid-users] Re: is there any thing wrong from cache manager logs ?!!

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Thu, 07 Nov 2013 12:27:51 -0700

On 11/07/2013 10:38 AM, Dr.x wrote:

> here is cpu and memory when squid is off :
> top command :
>
> top - 12:31:32 up 1 day, 3:47, 2 users, load average: 0.02, 0.02, 0.05
> Tasks: 155 total, 1 running, 154 sleeping, 0 stopped, 0 zombie
> Cpu0 : 0.3%us, 0.0%sy, 0.0%ni, 93.7%id, 6.0%wa, 0.0%hi, 0.0%si, 0.0%st
> Cpu1 : 0.3%us, 0.3%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
> Cpu2 : 0.0%us, 0.0%sy, 0.0%ni, 99.7%id, 0.3%wa, 0.0%hi, 0.0%si, 0.0%st
> Cpu3 : 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
> Cpu4 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
> Cpu5 : 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
> Cpu6 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
> Cpu7 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
> Mem: 8182336k total, 7340332k used, 842004k free, 168252k buffers
> Swap: 0k total, 0k used, 0k free, 6706284k cached
> ============================================================
> [root_at_squid ~]# free -m
> total used free shared buffers cached
> Mem: 7990 7069 921 0 164 6549
> -/+ buffers/cache: 355 7635
> Swap: 0 0 0
> ====================================================
> [root_at_squid ~]# free
> total used free shared buffers cached
> Mem: 8182336 7238932 943404 0 168472 6706540
> -/+ buffers/cache: 363920 7818416
> Swap: 0 0 0
> ------------------------------------------------
> is there memory swapping running ??

I do not think your system is swapping -- you do not even have swap
configured, it seems. All your free memory is probably spent on the file
system cache ("cached" number in top and "cached" column in free). That
is normal.

> i wish to say that my machine of squid also work as dns server , and squid
> dns is pointed to the machine ip
>
> i mean that it is squid+dns of squid in the same time .
>
> i doubt that this issue may play in degradation

Agreed. If DNS server is competing with Squid for CPU cycles, you will
see that in top when running your "busy slow Squid" test.

> anyway , i will run squid and monitor cpus and rams and will provide cache
> manager info before and after the slow and degradation.

Sounds good, but please do not forget to provide "top" snapshot(s)
_during_ performance degradation.

One more hint: Configure your top to add a "last CPU core used" column.
This will tell you whether Squid processes are jumping from core to core
AND may tell you which other processes they are competing on those cores
with.

> anyway , i wish to make sure that my system status is not bade before
> running squid .

FWIW, I did not notice any problems.

Good luck,

Alex.
Received on Thu Nov 07 2013 - 19:28:18 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 08 2013 - 12:00:20 MST