...
Code Block |
---|
CONFIG proxy.config.http.cache.fuzz.min_time INT -10 |
Step 2 – Optimize
File Access Memory
The default config for ATS specifies this at 2MB. I found that by increasing it, most of my disk write contention
problems disappeared.
Code Block |
---|
CONFIG proxy.config.system.mmap_max INT 8M
|
CPU Cores (also multiple CPUs)
...
While the default ATS options for this may be optimal under heavy load,
I found using the simpler LRU algorithm much faster and more useful.
The following specifies 384MB 256MB of RAM cache, with objects of up to 96MB in unlimited size,
to be managed using LRU. During normal use, RAM utilization will rise and rise
until all 384MB 256MB is used, then the LRU algorithm should kick in. Also,
figure on at least 100MB of general RAM overhead for ATS in addition to this.
Code Block |
---|
CONFIG proxy.config.cache.ram_cache.size INT 384M256M CONFIG proxy.config.cache.ram_cache_cutoff INT 96M0 CONFIG proxy.config.cache.ram_cache.algorithm INT 1 CONFIG proxy.config.cache.ram_cache.use_seen_filter INT 0 |
...