Squidclient -h 127.0.0.1 -p 3128 mgr:info -difference with "DNS Server Override"



  • My internet was getting slower. Browsing, loading characters in games etc..
    Squid problem ? or DNS problem ?

    I have learned that I should enter the closest and fastes DNS in here.. but.

    But after selecting this, changes looks better, dont you agree ?

    DNS Server Override

    Allow DNS server list to be overridden by DHCP/PPP on WAN
    If this option is set, pfSense will use DNS servers assigned by a DHCP/PPP server on WAN for its own purposes (including the DNS Forwarder/DNS Resolver). However, they will not be assigned to DHCP clients.
    
    

    squidclient -h 127.0.0.1 -p 3128 mgr:info

    Gives me this information. (for you with widescreen monitors ;))

    |
    HTTP/1.1 200 OK
    Server: squid/3.5.27
    Mime-Version: 1.0
    Date: Sat, 21 Apr 2018 16:56:50 GMT
    Content-Type: text/plain;charset=utf-8
    Expires: Sat, 21 Apr 2018 16:56:50 GMT
    Last-Modified: Sat, 21 Apr 2018 16:56:50 GMT
    X-Cache: MISS from localhost
    X-Cache-Lookup: MISS from localhost:3128
    Via: 1.1 localhost (squid/3.5.27)
    Connection: close

    Squid Object Cache: Version 3.5.27
    Build Info:
    Service Name: squid
    Start Time: Thu, 19 Apr 2018 20:20:56 GMT
    Current Time: Sat, 21 Apr 2018 16:56:50 GMT
    Connection information for squid:
    Number of clients accessing cache: 28
    Number of HTTP requests received: 34460
    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: 12.9
    Average ICP messages per minute since start: 0.0
    Select loop called: 4262348 times, 37.668 ms avg
    Cache information for squid:
    Hits as % of all requests: 5min: 1.7%, 60min: 5.5%
    Hits as % of bytes sent: 5min: 0.2%, 60min: 26.9%
    Memory hits as % of hit requests: 5min: 0.0%, 60min: 54.3%
    Disk hits as % of hit requests: 5min: 0.0%, 60min: 17.4%
    Storage Swap size: 559992 KB
    Storage Swap capacity: 5.5% used, 94.5% free
    Storage Mem size: 101756 KB
    Storage Mem capacity: 2.8% used, 97.2% free
    Mean Object Size: 85.93 KB
    Requests given to unlinkd: 909
    Median Service Times (seconds)  5 min    60 min:
    HTTP Requests (All):  0.30459  0.12106
    Cache Misses:          0.30459  0.12106
    Cache Hits:            0.00000  0.00000
    Near Hits:            0.00000  0.02742
    Not-Modified Replies:  0.00000  0.00000
    DNS Lookups:          0.49613  0.34765
    ICP Queries:          0.00000  0.00000
    Resource usage for squid:
    UP Time: 160554.294 seconds
    CPU Time: 56.182 seconds
    CPU Usage: 0.03%
    CPU Usage, 5 minute avg: 0.02%
    CPU Usage, 60 minute avg: 0.02%
    Maximum Resident Size: 826192 KB
    Page faults with physical i/o: 6
    Memory accounted for:
    Total accounted:      121666 KB
    memPoolAlloc calls:  11881145
    memPoolFree calls:  11978548
    File descriptor usage for squid:
    Maximum number of file descriptors:  231201
    Largest file desc currently in use:    56
    Number of file desc currently in use:  49
    Files queued for open:                  0
    Available number of file descriptors: 231152
    Reserved number of file descriptors:  100
    Store Disk files open:                  0
    Internal Data Structures:
      6570 StoreEntries
      5796 StoreEntries with MemObjects
      5794 Hot Object Cache Items
      6517 on-disk objects

    |
    HTTP/1.1 200 OK
    Server: squid/3.5.27
    Mime-Version: 1.0
    Date: Sat, 21 Apr 2018 17:00:25 GMT
    Content-Type: text/plain;charset=utf-8
    Expires: Sat, 21 Apr 2018 17:00:25 GMT
    Last-Modified: Sat, 21 Apr 2018 17:00:25 GMT
    X-Cache: MISS from localhost
    X-Cache-Lookup: MISS from localhost:3128
    Via: 1.1 localhost (squid/3.5.27)
    Connection: close

    Squid Object Cache: Version 3.5.27
    Build Info:
    Service Name: squid
    Start Time: Thu, 19 Apr 2018 20:20:56 GMT
    Current Time: Sat, 21 Apr 2018 17:00:25 GMT
    Connection information for squid:
    Number of clients accessing cache: 28
    Number of HTTP requests received: 34476
    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: 12.9
    Average ICP messages per minute since start: 0.0
    Select loop called: 4263053 times, 37.712 ms avg
    Cache information for squid:
    Hits as % of all requests: 5min: 4.5%, 60min: 5.4%
    Hits as % of bytes sent: 5min: 11.0%, 60min: 26.9%
    Memory hits as % of hit requests: 5min: 33.3%, 60min: 53.2%
    Disk hits as % of hit requests: 5min: 0.0%, 60min: 17.0%
    Storage Swap size: 559992 KB
    Storage Swap capacity: 5.5% used, 94.5% free
    Storage Mem size: 101756 KB
    Storage Mem capacity: 2.8% used, 97.2% free
    Mean Object Size: 85.93 KB
    Requests given to unlinkd: 910
    Median Service Times (seconds)  5 min    60 min:
    HTTP Requests (All):  0.27332  0.12783
    Cache Misses:          0.28853  0.12783
    Cache Hits:            0.00000  0.00000
    Near Hits:            0.04277  0.04277
    Not-Modified Replies:  0.00000  0.00000
    DNS Lookups:          0.02562  0.34765
    ICP Queries:          0.00000  0.00000
    Resource usage for squid:
    UP Time: 160769.361 seconds
    CPU Time: 56.202 seconds
    CPU Usage: 0.03%
    CPU Usage, 5 minute avg: 0.01%
    CPU Usage, 60 minute avg: 0.02%
    Maximum Resident Size: 826304 KB
    Page faults with physical i/o: 8
    Memory accounted for:
    Total accounted:      121668 KB
    memPoolAlloc calls:  11885423
    memPoolFree calls:  11982976
    File descriptor usage for squid:
    Maximum number of file descriptors:  231201
    Largest file desc currently in use:    28
    Number of file desc currently in use:  16
    Files queued for open:                  0
    Available number of file descriptors: 231185
    Reserved number of file descriptors:  100
    Store Disk files open:                  0
    Internal Data Structures:
      6570 StoreEntries
      5796 StoreEntries with MemObjects
      5794 Hot Object Cache Items
      6517 on-disk objects

    |



  • Yes, DNS lookups are faster in your second config.