Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm kind of new to squid. I've looked at the proxy server using squidclient and am getting
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.15048 0.15048
Cache Misses: 0.23230 0.19742
Cache Hits: 0.00000 0.00000
Near Hits: 0.00000 0.00000
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.04639 0.03223
ICP Queries: 0.00000 0.00000
Seems like a lot of cache misses is this normal?
I know there is stuff in the cache
Internal Data Structures:
546 StoreEntries
72 StoreEntries with MemObjects
71 Hot Object Cache Items
518 on-disk objects
It's wierd because misses looks like more than requests.
I don't know if I'm reading this right.This is just a proxy on a home network with about 6 clients connected.
I'm not really aware of the format of the squidclient output (is it normalised in some way?), but if you have zero cache hits, squid isn't doing much for you, and may be making matters worse. Of course, if you never get any hits, misses will be rather high.
Of course, it is possible that requests and hits/misses count different types of things; maybe one request implies the fetch of several objects.
Below is a copy of the full output. Looks like I'm getting hits under "Cache information for squid" but it's showing up differently under "Median Service Time". I mainly use squid for content filtering with a redirector and a few blocklists, but I've been looking at the cache lately, to see if it's actually doing anything. I'm guessing from what I've been reading that this can be normal due to the webserver specifying not to cache the page.
Squid Object Cache: Version 3.1.10
Start Time: Mon, 24 Jan 2011 08:07:43 GMT
Current Time: Tue, 25 Jan 2011 07:18:33 GMT
Connection information for squid:
Number of clients accessing cache: 3
Number of HTTP requests received: 7252
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: 5.2
Average ICP messages per minute since start: 0.0
Select loop called: 5941652 times, 14.045 ms avg
Cache information for squid:
Hits as % of all requests: 5min: 0.0%, 60min: 2.3%
Hits as % of bytes sent: 5min: 22.7%, 60min: 0.7%
Memory hits as % of hit requests: 5min: 0.0%, 60min: 0.0%
Disk hits as % of hit requests: 5min: 0.0%, 60min: 0.0%
Storage Swap size: 12936 KB
Storage Swap capacity: 2.5% used, 97.5% free
Storage Mem size: 8692 KB
Storage Mem capacity: 13.3% used, 86.7% free
Mean Object Size: 13.52 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.02742 0.19742
Cache Misses: 0.28853 0.24524
Cache Hits: 0.00000 0.00000
Near Hits: 0.00000 0.20843
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.06963 0.14261
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 83449.844 seconds
CPU Time: 240.355 seconds
CPU Usage: 0.29%
CPU Usage, 5 minute avg: 0.29%
CPU Usage, 60 minute avg: 0.40%
Process Data Segment Size via sbrk(): 82652 KB
Maximum Resident Size: 0 KB
Page faults with physical i/o: 2
Memory usage for squid via mallinfo():
Total space in arena: 82784 KB
Ordinary blocks: 82507 KB 233 blks
Small blocks: 0 KB 0 blks
Holding blocks: 548 KB 2 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 276 KB
Total in use: 83055 KB 100%
Total free: 276 KB 0%
Total size: 83332 KB
Memory accounted for:
Total accounted: 11770 KB 14%
memPool accounted: 11770 KB 14%
memPool unaccounted: 71561 KB 86%
memPoolAlloc calls: 1592400
memPoolFree calls: 1621796
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 62
Number of file desc currently in use: 41
Files queued for open: 0
Available number of file descriptors: 983
Reserved number of file descriptors: 100
Store Disk files open: 0
Internal Data Structures:
983 StoreEntries
952 StoreEntries with MemObjects
951 Hot Object Cache Items
957 on-disk objects
Distribution: Red hat, Solaris, AIX, HP-UX, FreeBSD
Posts: 15
Rep:
What you look first was not the hit/ratio !!!
was the median service time (time that squid takes to complete a request ) (averaged for 5 and 60 minutes)
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.15048 0.15048
Cache Misses: 0.23230 0.19742
Cache Hits: 0.00000 0.00000
Near Hits: 0.00000 0.00000
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.04639 0.03223
ICP Queries: 0.00000 0.00000
this is your hit/ratio
Hits as % of all requests: 5min: 0.0%, 60min: 2.3%
Hits as % of bytes sent: 5min: 22.7%, 60min: 0.7%
and its a very low rate. but it depends on the browsing behaviour of your clients .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.