*SOLVED* Squid, one of two pfsense machines browsing latency
-
Hello All,
EDIT/Solved-
The debacle i done on this pfsense machine was in dhcp config i had entered some windows domain controller dns server of previous windows versions from way back,i( the reason being trying to get client windows machines to see a 'home folder '/network drive , i'm sure) initial install of pfsense (that overrode the system dns settings). After removing these two entries in the dhcp config, web browsing is fine now on this pfsense. yes, shot myself in the foot once again.
pfsense-2.2.4-amd64 (x 2)
Info: Two school buildings with identical gigabyte fiber WAN connections from same provider , identical Dell 8 core/ 16G memory as pfsense hardware. Identical dns settings set in the general config. Packages added to each, Squid, SquidGuard,Lightsquid.
Problem: One site is fine web browsing, the second is showing diffinate latency getting each web page to load,both http & https ,once the web page starts to load it completes fairly fast though. It almost appears dns related but as stated above the dns is idenitcal on each pfsense.
To cut to the quick posting the squidclient results here and maybe someone will see what is wrong with a solution.
FFSENSE #1
Good pfsense browsingHTTP/1.0 200 OK
Server: squid/2.7.STABLE9
Date: Fri, 04 Aug 2017 11:16:07 GMT
Content-Type: text/plain
Expires: Fri, 04 Aug 2017 11:16:07 GMT
X-Cache: MISS from mail
X-Cache-Lookup: MISS from mail:8080
Via: 1.0 mail:8080 (squid/2.7.STABLE9)
Connection: closeSquid Object Cache: Version 2.7.STABLE9
Start Time: Wed, 19 Jul 2017 20:54:34 GMT
Current Time: Fri, 04 Aug 2017 11:16:07 GMT
Connection information for squid:
Number of clients accessing cache: 41
Number of HTTP requests received: 231489
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 10.3
Average ICP messages per minute since start: 0.0
Select loop called: 37989595 times, 35.475 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 0.0%, 60min: 50.0%
Byte Hit Ratios: 5min: -0.0%, 60min: 0.0%
Request Memory Hit Ratios: 5min: 0.0%, 60min: 0.0%
Request Disk Hit Ratios: 5min: 0.0%, 60min: 0.0%
Storage Swap size: 92156 KB
Storage Mem size: 5236 KB
Mean Object Size: 2.97 KB
Requests given to unlinkd: 18738
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.00000 0.00102
Cache Misses: 0.00000 0.14252
Cache Hits: 0.00000 0.00000
Near Hits: 0.00000 0.00000
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.00000 0.00000
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 1347692.466 seconds
CPU Time: 1193.498 seconds
CPU Usage: 0.09%
CPU Usage, 5 minute avg: 0.01%
CPU Usage, 60 minute avg: 0.02%
Process Data Segment Size via sbrk(): 0 KB
Maximum Resident Size: 40372 KB
Page faults with physical i/o: 22551
Memory accounted for:
Total accounted: 13970 KB
memPoolAlloc calls: 81537109
memPoolFree calls: 81436867
File descriptor usage for squid:
Maximum number of file descriptors: 470664
Largest file desc currently in use: 29
Number of file desc currently in use: 19
Files queued for open: 0
Available number of file descriptors: 470645
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: kqueue
Internal Data Structures:
31072 StoreEntries
1305 StoreEntries with MemObjects
1304 Hot Object Cache Items
30995 on-disk objects
–------------------------------------------------------------------
PFSENNSE #2
Slow pfsense browsingServer: squid/2.7.STABLE9
Date: Fri, 04 Aug 2017 11:13:20 GMT
Content-Type: text/plain
Expires: Fri, 04 Aug 2017 11:13:20 GMT
X-Cache: MISS from stronghurst
X-Cache-Lookup: MISS from stronghurst:8080
Via: 1.0 stronghurst:8080 (squid/2.7.STABLE9)
Connection: closeSquid Object Cache: Version 2.7.STABLE9
Start Time: Tue, 01 Aug 2017 15:05:55 GMT
Current Time: Fri, 04 Aug 2017 11:13:20 GMT
Connection information for squid:
Number of clients accessing cache: 15
Number of HTTP requests received: 15832
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 3.9
Average ICP messages per minute since start: 0.0
Select loop called: 1971635 times, 124.386 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 50.0%, 60min: 38.9%
Byte Hit Ratios: 5min: 66.7%, 60min: 75.0%
Request Memory Hit Ratios: 5min: 33.3%, 60min: 71.4%
Request Disk Hit Ratios: 5min: 0.0%, 60min: 0.0%
Storage Swap size: 25540 KB
Storage Mem size: 3440 KB
Mean Object Size: 5.46 KB
Requests given to unlinkd: 391
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.00000 0.00405
Cache Misses: 0.00307 0.01847
Cache Hits: 0.00000 0.00000
Near Hits: 0.00000 0.00000
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.00103 0.00094
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 245244.463 seconds
CPU Time: 51.796 seconds
CPU Usage: 0.02%
CPU Usage, 5 minute avg: 0.00%
CPU Usage, 60 minute avg: 0.00%
Process Data Segment Size via sbrk(): 0 KB
Maximum Resident Size: 34800 KB
Page faults with physical i/o: 1
Memory accounted for:
Total accounted: 8576 KB
memPoolAlloc calls: 4742425
memPoolFree calls: 4714197
File descriptor usage for squid:
Maximum number of file descriptors: 11095
Largest file desc currently in use: 27
Number of file desc currently in use: 17
Files queued for open: 0
Available number of file descriptors: 11078
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: kqueue
Internal Data Structures:
4721 StoreEntries
643 StoreEntries with MemObjects
642 Hot Object Cache Items
4677 on-disk objects
Thank You