Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The default config for ATS supports up to 2 CPU cores. I have 4 and decided to update the config to reflect that.
One could actually increase this setting higher, but I'm not a huge fan of Hyperthreading so I didn't bother, but discovered over time that using all of them
causes problems with iTunes, and World of Warcraft. In the hopes of avoiding problems like that, I decided to
configure my ATS to use just one core where possible.

Code Block
CONFIG proxy.config.exec_thread.limit INT 41

HTTP Chunking

The default config for ATS specifies that the proxy itself use data "chunks" of 4KB each. Being that I'm on a
high-speed Internet link at home, I decided to increase this. I originally went with 128KB, only to find my
Internet Radio seemed to be having problems. 16KB should remedy that.

...

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 256MB 128MB of RAM cache, with objects of unlimited size,
to be managed using LRU. During normal use, RAM utilization will rise and rise
until all 256MB 128MB 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 256M128M
CONFIG proxy.config.cache.ram_cache_cutoff INT 0
CONFIG proxy.config.cache.ram_cache.algorithm INT 1
CONFIG proxy.config.cache.ram_cache.use_seen_filter INT 0

...

Average Internet Object Size: 32KB
Disk Cache Size: 1GB2GB
Disk Cache Size In Bytes: 1073741824 2147483648 (1 2 * 1024 * 1024 * 1024)
Average Internet Object Size In Bytes: 32768 (32 * 1024)
Disk Cache Object Capacity: 32768 65536 (1073741824 2147483648 / 32768)

Code Block
CONFIG proxy.config.cache.min_average_object_size INT 32K64K

NOTE: This setting should be sized relative to the size of your disk cache.
Also, it requires clearing the disk cache and restarting ATS to properly take effect.

...

Code Block
CONFIG proxy.config.cache.threads_per_disk INT 41

Cache Disk Write Lock Delay

...

Code Block
CONFIG proxy.config.net.sock_send_buffer_size_in INT 0
CONFIG proxy.config.net.sock_recv_buffer_size_in INT 0
CONFIG proxy.config.net.sock_send_buffer_size_out INT 0
CONFIG proxy.config.net.sock_recv_buffer_size_out INT 128K

Miscellaneous Task Threads

Similar to the first setting in this document, the default config for ATS supports up to 2 CPU cores.
I have 4 and decided to update the config to reflect that. One could actually increase this setting higher,
but I'm not a huge fan of Hyperthreading so I didn't bother.

Code Block

CONFIG proxy.config.task_threads INT 4

Step 3 – Secure

Maximum Inbound Concurrent Connections

...