software:linux:squid
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
software:linux:squid [2016/01/29 17:35] – created superwizard | software:linux:squid [2016/11/13 19:11] (current) – superwizard | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Routing DNS Through Squid ====== | ||
+ | |||
+ | From: http:// | ||
+ | |||
+ | < | ||
+ | / | ||
+ | # | ||
+ | # DNS OPTIONS | ||
+ | # ========== | ||
+ | # | ||
+ | dns_timeout 10 seconds | ||
+ | dns_nameservers 192.168.1.1 8.8.8.8 8.8.4.4 # DNS Server | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | |||
+ | From: | ||
+ | |||
+ | |||
+ | < | ||
+ | grep -v " | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Firefox Proxy settings === | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | ====== Squid Package Tuning ====== | ||
+ | |||
+ | From: https:// | ||
+ | |||
+ | < | ||
+ | So that would be my suggestion: | ||
+ | |||
+ | Hard disk cache size 15GB | ||
+ | Hard disk cache system aufs or ufs (increase vfs.read like you did already) Test which | ||
+ | performs better | ||
+ | Memory cache size 32MB | ||
+ | Minimum object size 16KB (I set it to 64 KB because I do not want that so many small | ||
+ | files will be cached. This increases HDD read/write and my WAN bandwidth allows that | ||
+ | to download such small files directly from the web and not from squid) | ||
+ | Maximum object size 1GB ( ServicePacks do have sizeses until 1GB. If you do not want | ||
+ | to cache all kind of service packs than probably a size of 256MB will be enough to get | ||
+ | most of the available updates in cache) | ||
+ | Maximum object size in RAM 2MB (In RAM I would like to have only small files which could | ||
+ | be served very fast. I do not want to have a 100MB file in RAM which wastes much space | ||
+ | and could be served fast enough even from HDD) | ||
+ | Memory replacement policy LRU (RAM should cache actual objects) | ||
+ | Cache replacement policy Heap LFUDA (what to cache servicepacks and big files on HDD) | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== How much memory do I need in my Squid server? ====== | ||
+ | |||
+ | From: http:// | ||
+ | |||
+ | < | ||
+ | As a rule of thumb on Squid uses approximately 10 MB of RAM per GB of the total of all cache_dirs | ||
+ | (more on 64 bit servers such as Alpha), plus your cache_mem setting and about an additional 10-20MB. | ||
+ | It is recommended to have at least twice this amount of physical RAM available on your Squid server. | ||
+ | </ | ||
+ | |||
====== curl-loader ====== | ====== curl-loader ====== | ||
software/linux/squid.1454088948.txt.gz · Last modified: 2016/01/29 17:35 by superwizard