pfsense:squid:options_which_affect_the_cache
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pfsense:squid:options_which_affect_the_cache [2020/03/30 11:01] – [Memory Cache Size (cache_mem)] peter | pfsense:squid:options_which_affect_the_cache [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 22: | Line 22: | ||
---- | ---- | ||
- | ===== Low-Water Mark in % ===== | + | ===== Low-Water Mark in % (cache_swap_low) |
The low-water mark for AUFS/ | The low-water mark for AUFS/ | ||
* Default: **90**. | * Default: **90**. | ||
- | |||
This defines when the replacement should take place. | This defines when the replacement should take place. | ||
Line 37: | Line 36: | ||
If utilization is close to the low-water mark less replacement is done each time. | If utilization is close to the low-water mark less replacement is done each time. | ||
- | Defaults are 90% and 95%. If you have a large cache, 5% could be hundreds of MB. If this is the case you may wish to set these numbers | + | <WRAP important> |
+ | **WARNING: | ||
+ | </ | ||
---- | ---- | ||
- | ===== High-Water Mark in % ===== | + | ===== High-Water Mark in % (cache_swap_high) |
The high-water mark for AUFS/ | The high-water mark for AUFS/ | ||
Line 55: | Line 57: | ||
If utilization is close to the low-water mark less replacement is done each time. | If utilization is close to the low-water mark less replacement is done each time. | ||
- | Defaults are 90% and 95%. If you have a large cache, 5% could be hundreds of MB. If this is the case you may wish to set these numbers closer together. | + | <WRAP important> |
+ | **WARNING: | ||
+ | </ | ||
---- | ---- | ||
Line 140: | Line 145: | ||
|In-transit objects or current requests|These are the objects related to the current requests and they have the highest priority to be kept in the cache space in RAM. These objects must be kept in RAM and if there is a situation where the incoming request rate is quite high and we are about to overflow the cache space in RAM, Squid will try to keep the served part (the part which has already been sent to the client) on the disk to create free space in RAM.| | |In-transit objects or current requests|These are the objects related to the current requests and they have the highest priority to be kept in the cache space in RAM. These objects must be kept in RAM and if there is a situation where the incoming request rate is quite high and we are about to overflow the cache space in RAM, Squid will try to keep the served part (the part which has already been sent to the client) on the disk to create free space in RAM.| | ||
|Hot or popular objects|These objects or web documents are popular and are requested quite frequently compared to others. | |Hot or popular objects|These objects or web documents are popular and are requested quite frequently compared to others. | ||
- | |Negatively cached objects|Negatively cached objects are error messages which Squid has encountered while fetching a page or web document on behalf of a client. | + | |Negatively cached objects|Negatively cached objects are error messages which Squid has encountered while fetching a page or web document on behalf of a client. |
- | Negatively cached objects have the same priority as hot or popular objects and they can be pushed to disk at any time in favor of in-transit objects.| | ||
- | < | + | |
- | **NOTE:** This tag does not specify the maximum process size. | + | < |
+ | **WARNING:** This tag does not specify the maximum process size. | ||
It places a limit on one aspect of squid' | It places a limit on one aspect of squid' | ||
Line 153: | Line 158: | ||
Process will probably become twice or three times bigger than the value put here. | Process will probably become twice or three times bigger than the value put here. | ||
+ | |||
+ | While deciding the RAM space for caching, we should be neither greedy nor paranoid. | ||
</ | </ | ||
pfsense/squid/options_which_affect_the_cache.1585566081.txt.gz · Last modified: 2020/07/15 09:30 (external edit)