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

  modprobe acpi-cpufreq
  cpupower set --perf-bias 0
  cpupower frequency-set --governor performance
  tuned-adm profile latency-performance
  tuna -S0 -i; tuna -S1 -i
# Use taskset or numactl to bind application to specific CPU core