HFT: Setup and Optimization

From Define Wiki
Jump to navigation Jump to search

Supermicro HFT Low Latency / Jitter OS Optimization

This set up was designed for the SYS-6027AX-72RF/TRF-HFT3, however it will help all othe HFT systems.

System Setup

  1. Fresh Minimal Install fof SL / RHEL 6.4
  2. OS Boot parameters: intel_idle.max_cstate0= processor.max_cstate=0 idle=poll pcie_aspm=performance mce=ignore_ce, isolcpus=2,3,4
  3. Configure a noatime or OS parition
  4. Disable all unnecessary services using chkconfig command
  5. Install CPUpower, tuned, tuna (yum install cpupowerutils tuned tuna )
  6. sysctl kernel.sched_wakeup_granularity_ns=3000000

System Tuning

  1. modprobe acpi-cpufreq
  2. cpupower set-perf bias 0
  3. cpupower frequency-set-governor performance
  4. tuned-adm profile latency-performance
  5. tuna -S0 -i; tuna -S1 -i
  6. Use taskset or numactl to bind application to specific CPU core