Skip to content

Performance #1

Description

@flying-sheep

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions