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

Record bios/host/guest options in a reliable way #19

Open
1 task
mmisono opened this issue Jul 27, 2023 · 1 comment
Open
1 task

Record bios/host/guest options in a reliable way #19

mmisono opened this issue Jul 27, 2023 · 1 comment
Labels
enhancement New feature or request priority:high

Comments

@mmisono
Copy link
Member

mmisono commented Jul 27, 2023

For better reproducibility, we should record related bios and host/guest kernel options.

What to record

  • generic machine info (CPU, memory, device, ...)
  • if bounce buffer enabled
  • if iommu enabled
  • ...

Where to check

  • dmesg
  • msr
  • cpuid
  • /proc/cpuinfo
  • /sys/firmware/acpi/
  • /sys/firmware/tdx/tdx_module
  • /dev/(sev|tdx)-(guest|host)

SEV-SNP

TDX

TODO

  • How to get BIOS settings (IPMI?)
@mmisono mmisono added enhancement New feature or request priority:high labels Jul 27, 2023
@enterJazz
Copy link
Contributor

enterJazz commented Oct 4, 2023

BIOS Config Changes

for benchmarking reproducbility, we adopt the BIOS changes from John Kariuki, Vishal Verma, & Roman Sudarikov - Best Practices: Performance Testing & Tuning:

hello1

Turbo Mode

  • set turbo: disabled

Hyperthreading

  • set logical processor: disabled

C-States, P-States

  • set C-States: disabled
  • set CPU Power Management: Max performance -> disables P-States
  • set DF Cstate: disabled
  • set DF Pstate: disabled

Memory Speed

  • set memory frequency: max performance
  • NOTE: other options may still be available here ( todo )

Node Interleaving

  • should be disabled by default ( as system displays NUMA nodes )
  • could possibly set explicitly somewhere ( NOTE: todo )

Power

  • set CPU Power Management: Max performance
  • NOTE: other options may still be available here

Misc

  • set memory frequency: max performance
  • set power profile: max io performance mode
  • set determinism slider: performance

SEV Specific

NOTE

We configured the BIOS manually. Down the line, we should create a script to ssh into the IPMI and set these changes automatically.

Also mentioned in README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:high
Projects
None yet
Development

No branches or pull requests

2 participants