Re: [squid-users] squid cache manager question and snmp with smp question

2014-03-10 Thread Nikolai Gorchilov
Reviving this topic from the dead as I made a discovery that others
may find useful :)

 i also revived some suspicious logs :

 2013/11/08 16:51:26 kid3| snmpHandleUdp: FD 20 recvfrom: (11) Resource
 temporarily unavailable

 We are still trying to figure this one out. It seems not to be harmful
 particularly, except a waste of effort somewhere.

I managed to suppress the SNMP-related  Resource temporarily
unavailable error in SMP mode by putting snmp_port in a
worker-specific section:

if ${process_number} = 1
snmp_port 3401
endif

HTH,
Niki


[squid-users] squid cache manager question and snmp with smp question

2013-11-12 Thread Dr.x
hi , 
from cache manager :
Cache information for squid:
Hits as % of all requests:  5min: 11.7%, 60min: 11.0%
Hits as % of bytes sent:5min: 0.6%, 60min: -0.3%
Memory hits as % of hit requests:   5min: 20.0%, 60min: 13.9%
Disk hits as % of hit requests: 5min: 11.6%, 60min: 9.5%
Storage Swap size:  28703904 KB
Storage Swap capacity:  70.1% used, 29.9% free
Storage Mem size:   1024000 KB
*Storage Mem capacity:  100.0% used,  0.0% free*
Mean Object Size:   32.00 KB
Requests given to unlinkd:  0

im asking about :
Storage Mem capacity:   100.0% used,  0.0% free
why it is 100 %

Q1-does that mean that squid dissipated 100% from cache_mem value configured

Q2- does the result in cache manager in general run time information is
calculated as total for all processes ???
==
Q3
 ABOUT snmp with smp
wt i need to configure in squid.conf ??

do i need to configure snmp for each instance ???

i want to say that i configured as below :
acl snmppublic snmp_community xxx
snmp_port 3401
snmp_access allow snmppublic localhost
snmp_access allow snmppublic all
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 0.0.0.0
###

i had results in my mrtg , but not sure of the results ,
i got squid mib file  and converted it to oidb file and  put it in m y mrtg
.

by here im using smp , not sure from the results 


i also revived some suspicious logs :

2013/11/08 16:51:26 kid3| snmpHandleUdp: FD 20 recvfrom: (11) Resource
temporarily unavailable
2013/11/08 16:51:26 kid1| snmpHandleUdp: FD 19 recvfrom: (11) Resource
temporarily unavailable
2013/11/08 16:51:26 kid3| snmpHandleUdp: FD 19 recvfrom: (11) Resource
temporarily unavailable
2013/11/08 16:51:51 kid2| snmpHandleUdp: FD 20 recvfrom: (11) Resource
temporarily unavailable
2013/11/08 16:51:51 kid3| snmpHandleUdp: FD 19 recvfrom: (11) Resource
temporarily unavailable
2013/11/08 16:51:51 kid1| snmpHandleUdp: FD 19 recvfrom: (11) Resource
temporarily unavailable
2013/11/08 16:51:51 kid3| snmpHandleUdp: FD 20 recvfrom: (11) Resource
temporarily unavailable
2013/11/08 16:51:51 kid1| snmpHandleUdp: FD 19 recvfrom: (11) Resource
temporarily unavailable
2013/11/08 16:51:51 kid3| snmpHandleUdp: FD 19 recvfrom: (11) Resource
temporarily unavailable
2013/11/08 16:51:51 kid1| snmpHandleUdp: FD 20 recvfrom: (11) Resource
temporarily unavailable

not sure if it is harmful !!!

regards




-
Dr.x
--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/squid-cache-manager-question-and-snmp-with-smp-question-tp4663233.html
Sent from the Squid - Users mailing list archive at Nabble.com.


Re: [squid-users] squid cache manager question and snmp with smp question

2013-11-12 Thread Amos Jeffries
On 12/11/2013 9:21 p.m., Dr.x wrote:
 hi , 
 from cache manager :
 Cache information for squid:
   Hits as % of all requests:  5min: 11.7%, 60min: 11.0%
   Hits as % of bytes sent:5min: 0.6%, 60min: -0.3%
   Memory hits as % of hit requests:   5min: 20.0%, 60min: 13.9%
   Disk hits as % of hit requests: 5min: 11.6%, 60min: 9.5%
   Storage Swap size:  28703904 KB
   Storage Swap capacity:  70.1% used, 29.9% free
   Storage Mem size:   1024000 KB
   *Storage Mem capacity:  100.0% used,  0.0% free*
   Mean Object Size:   32.00 KB
   Requests given to unlinkd:  0
 
 im asking about :
 Storage Mem capacity: 100.0% used,  0.0% free
 why it is 100 %
 

Because your cache is busy and using all the memory you gave it for
caching objects (cache_mem). This is normal for memory cache, there is
no reason to hold it lower than 100% since there is no delay in deleting
things when they need to be.


 Q1-does that mean that squid dissipated 100% from cache_mem value configured
 

dissipated? no, used.

 Q2- does the result in cache manager in general run time information is
 calculated as total for all processes ???

Um. Is cache_mem set to 1000 MB in on worker? or would that be the sum
for all the workers with cache_mem ?


 ==
 Q3
  ABOUT snmp with smp
 wt i need to configure in squid.conf ??

Squid must be built with --enable-snmp.

Also, snmp_port and snmp_access directives must be configured.

 
 do i need to configure snmp for each instance ???

http://wiki.squid-cache.org/Features/SmpScale#What_can_workers_share.3F

 
 i want to say that i configured as below :
 acl snmppublic snmp_community xxx
 snmp_port 3401
 snmp_access allow snmppublic localhost
 snmp_access allow snmppublic all
 snmp_incoming_address 0.0.0.0
 snmp_outgoing_address 0.0.0.0

Drop those last two lines about address. The first one is doing nothing
useful. The second one will cause failures.

From the config manual:

  NOTE, snmp_incoming_address and snmp_outgoing_address can not have
the same value since they both use the same port.


 ###
 
 i had results in my mrtg , but not sure of the results ,
 i got squid mib file  and converted it to oidb file and  put it in m y mrtg
 .
 
 by here im using smp , not sure from the results 
 
 
 i also revived some suspicious logs :
 
 2013/11/08 16:51:26 kid3| snmpHandleUdp: FD 20 recvfrom: (11) Resource
 temporarily unavailable


We are still trying to figure this one out. It seems not to be harmful
particularly, except a waste of effort somewhere.

Amos



Re: [squid-users] squid cache manager question and snmp with smp question

2013-11-12 Thread Alex Rousskov
On 11/12/2013 01:21 AM, Dr.x wrote:

 Q2- does the result in cache manager in general run time information is
 calculated as total for all processes ???

All mgr:info information is aggregated to represent a Squid instance
view, as documented at:

http://wiki.squid-cache.org/Features/CacheManager#SMP_considerations

Not all aggregated numbers are totals though. Some are, for example,
maximums. Each statistics uses its own aggregation method.


HTH,

Alex.