Skip to content

Instantly share code, notes, and snippets.

@pablogsal
Created April 21, 2021 13:37
Show Gist options
  • Save pablogsal/fed3edf670a951350f027b984b1f5efc to your computer and use it in GitHub Desktop.
Save pablogsal/fed3edf670a951350f027b984b1f5efc to your computer and use it in GitHub Desktop.
Tune the system configuration to run benchmarks
Actions
=======
Perf event: Max sample rate set to 1 per second
CPU Frequency: Minimum frequency of CPU 17,35 set to the maximum frequency
Turbo Boost (MSR): Turbo Boost disabled on CPU 17: MSR 0x1a0 set to 0x4000850089
IRQ affinity: Set default affinity to CPU 0-16,18-34
IRQ affinity: Set affinity of IRQ 1,3-16,21,25-31,56-59,68-85,87,89-90,92-93,95-104 to CPU 0-16,18-34
System state
============
CPU: use 2 logical CPUs: 17,35
Perf event: Maximum sample rate: 1 per second
ASLR: Full randomization
Linux scheduler: Isolated CPUs (2/36): 17,35
Linux scheduler: RCU disabled on CPUs (2/36): 17,35
CPU Frequency: 0-16,18-34=min=1200 MHz, max=3600 MHz; 17,35=min=max=3600 MHz
Turbo Boost (MSR): CPU 17,35: disabled
IRQ affinity: Default IRQ affinity: CPU 0-16,18-34
IRQ affinity: IRQ affinity: IRQ 0,2=CPU 0-35; IRQ 1,3-16,21,25-31,56-59,68-85,87,89-90,92-93,95-104=CPU 0-16,18-34; IRQ 32=CPU 0,18; IRQ 33=CPU 1,19; IRQ 34=CPU 2,20; IRQ 35=CPU 3,21; IRQ 36=CPU 4,22; IRQ 37=CPU 5; IRQ 38=CPU 6; IRQ 39=CPU 7; IRQ 40=CPU 8; IRQ 41=CPU 9; IRQ 42=CPU 10; IRQ 43=CPU 11; IRQ 44=CPU 12; IRQ 45=CPU 13; IRQ 46=CPU 14; IRQ 47=CPU 15; IRQ 48=CPU 16; IRQ 49=CPU 17; IRQ 50=CPU 23; IRQ 51=CPU 24; IRQ 52=CPU 25; IRQ 53=CPU 26; IRQ 54=CPU 27; IRQ 55=CPU 28; IRQ 60=CPU 29; IRQ 61=CPU 30; IRQ 62=CPU 31; IRQ 63=CPU 32; IRQ 64=CPU 33; IRQ 65=CPU 34; IRQ 66=CPU 35
Run 1
-----
❯ ./mario_python/bin/python3 run-benchmark.py
Test 1
13884
Test 2
13871
Test 3
13964
Test 4
13940
Test 5
13990
Test 6
14063
Test 7
16011
Test 8
15456
Run 2
-----
❯ ./mario_python/bin/python3 run-benchmark.py
Test 1
13897
Test 2
13818
Test 3
13924
Test 4
13939
Test 5
13993
Test 6
14040
Test 7
16014
Test 8
15448
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment