Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance #1

Open
3 of 11 tasks
flying-sheep opened this issue Feb 19, 2024 · 0 comments
Open
3 of 11 tasks

Performance #1

flying-sheep opened this issue Feb 19, 2024 · 0 comments
Labels

Comments

@flying-sheep
Copy link
Member

flying-sheep commented Feb 19, 2024

For improved reliability, the machine needs some setup. Maybe we can validate that automatically?

Guides:

Once (total, in BIOS)

Per boot

  • Global setup:

    Use performance governor for all CPUS
    Disable processor boosting
    Reduce swappiness
    No ASLR

    tentative script so far:

    # performance governor
    echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
    # no boosting
    echo 0 | sudo tee /sys/devices/system/cpu/cpufreq/boost
    # low swappiness
    sudo sysctl vm.swappiness=10
    # no ASLR
    sudo sysctl kernel.randomize_va_space=0
  • Assign roles to CPUS:

Per run

  • Set the benchmark program’s task affinity to a fixed cpu. (ASV: --cpu-affinity, subprocess: taskset -c 0 ./mybenchmark)
@flying-sheep flying-sheep changed the title Validate machine setup Performance Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant