Difference between revisions of "HFT: Setup and Optimization"

From Define Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
# Configure a noatime or OS parition
 
# Configure a noatime or OS parition
 
# Disable all unnecessary services using chkconfig command
 
# Disable all unnecessary services using chkconfig command
# Install CPUpower, tuned, tuna  
+
# Install CPUpower, tuned, tuna (<tt>yum install cpupowerutils tuned tuna </tt>)
 
# sysctl kernel.sched_wakeup_granularity_ns=3000000
 
# sysctl kernel.sched_wakeup_granularity_ns=3000000
 
  
 
=== System Tuning ===
 
=== System Tuning ===
  
# modprobe acpi-cpufreq
+
<syntaxhighlight>
# cpupower set-perf bias 0
+
  modprobe acpi-cpufreq
# cpupower frequency-set-governor performance
+
  cpupower set --perf-bias 0
# tuned-adm profile latency-performance
+
  cpupower frequency-set --governor performance
# tuna -S0 -i; tuna -S1 -i
+
  tuned-adm profile latency-performance
 +
  tuna -S0 -i; tuna -S1 -i
 
# Use taskset or numactl to bind application to specific CPU core
 
# Use taskset or numactl to bind application to specific CPU core
 +
</syntaxhighlight>

Latest revision as of 19:45, 14 July 2014

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