Squid: Worth it for me to use?
-
Hi,
Just installed Squid on my router. (3Ghz coreDuo E6850 , 4 GB ram, large HD, desktop pc for now).
For my ISP I have 2 x 1.5 Mbps DSL lines bonded using MLPPP, on a good day it gives me 2.3 Mbps down, normal days is 0.9 Mbps down (Oversold Centurylink DSLAM).A small household, handful of PCs, android phones, netflix boxes.
What the hit% that you think its worth while having squid enabled?
I think it might help with Android App updates on multiple devices, if it uses the http port?
Most of the time with powerd enabled, the cpu shows:
Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz
Current: 249 MHz, Max: 2997 MHzthanks
-
For a small household, the % hit rate will probably be pretty small (unless you all visit the same websites).
You'd also need to tune Squid appropriately, or you might find that the overall responsiveness of your network gets worse not better (due to squid downloading stuff in the background that you have already cancelled in your browser)
-
Thanks
I'm seeing about 10% hit rate, I think I'll leave it running. I increased the HD cache to 10GB, and ram to 512 MB, Maximum object size 1024KB, Maximum object size in RAM 10240 KB.
When I tested downloading a file via http, of about 24MB in size. When I downloaded it a 2nd time, it didn't get it from the proxy cache, not sure why. -
@JoeMcJoe:
When I tested downloading a file via http, of about 24MB in size. When I downloaded it a 2nd time, it didn't get it from the proxy cache, not sure why.
check Proxy Server > Local Cache Maximum object size
-
@JoeMcJoe:
Thanks
I'm seeing about 10% hit rate, I think I'll leave it running. I increased the HD cache to 10GB, and ram to 512 MB, Maximum object size 1024KB, Maximum object size in RAM 10240 KB.
When I tested downloading a file via http, of about 24MB in size. When I downloaded it a 2nd time, it didn't get it from the proxy cache, not sure why.You answered your question yourself. Maximum_object_size is 1MB but you downloaded 24MB. So squid will not cache this file ;-)
What you can do without problems is:- HDD cache size 20GB
- RAM 1GB
- maximum object size 100MB
So this will allow you to cache windows updates so you just have to download them one time.
Probably the same for Android updates.Are you running squid2 or squid3? squid3 offers options for caching windows updates by using the GUI. For squid2 you hneed to add custom options in the "custom options" field. This will give you some intentions what to do:
http://doc.pfsense.org/index.php/Squid_Package_Tuning#Random_Tips.2FTricks -
Thanks, I changed these settings, now larger files are cached, works great.
Hard disk cache size: 20000 MB
Memory cache size: 1024 MB
Minimum object size: 0 KB
Maximum object size: 131070 KB
Maximum object size in RAM: 131072 KBFor the 'Level 1 subdirectories' settings, I have it set to 32 right now. Think I should increase that to make disk access faster?
Using Squid, '2.7.9 pkg v.4.3.1'. Not the Squid3 package listed as a beta version.
-
Probably no need to do much changes on subdirectories for such a "small" cache but you can try. But recreating the cache will cost some time and CPU power until it is done.
Further: The maximum file size in RAM - I would not set it so high. try with 4MB. RAM should be used for small files so there isn't so much disk access needed. Larger files can be loaded from disk and still will be much faster than from the internet.
As Memory replacement policy I am using LRU
This holds newest objects in RAM and old ones will be deleted.As Cache replacement policy I am using Heap LFUDA
This holds big objects in HDD cache -
great, thanks