Monitoring - Dashboard - Squid Proxy - Squid Statistics Question

543 views
Skip to first unread message

david_...@gdocs.lakeheadschools.ca

unread,
Jun 8, 2017, 4:51:14 PM6/8/17
to Diladele Web Safety
If the Squid Statistics CPU graph is high, but the servers CPU usage is low?????



the graph for the day:


rafael....@diladele.com

unread,
Jun 8, 2017, 5:56:47 PM6/8/17
to Diladele Web Safety
Hello David,

For Squid we parse out the "ps aux" output  and take the bigger one (in non SMP mode (default) Squid has one master process that does nothing and one worker process, CPU from which we parse out).
I do not know where the graph you have gets its data and how it calculates it. :(

Raf

david_...@gdocs.lakeheadschools.ca

unread,
Jun 9, 2017, 10:43:18 AM6/9/17
to Diladele Web Safety
The second graph is my monitor graph for the CPU utilization for the pfSense server.

I see in further reading that squid only launches a single CPU thread.  Mine is hitting 100% usage regularly, so I am looking into how to use the "workers" directive correctly.  So far no luck.


Our Programmer here found the solution:

Add the following to pfSense System - Advanced - System Tunables

net.local.dgram.recvspace: 262144
net.local.dgram.maxdgram: 16384


Then in the the Squid - Advanced - Before Auth add

works 3


This launches 3 squid worker threads and 1 squid coordinator thread.

david_...@gdocs.lakeheadschools.ca

unread,
Jun 9, 2017, 10:46:10 AM6/9/17
to Diladele Web Safety
Opps spelling mistake....should be 

workers 3
Reply all
Reply to author
Forward
0 new messages