rr-debugger / rr-debugger/rr

Update wiki may be better: `wrmsr 0xc0011020` only applies to one core on SMP system

Open
#3,531 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.7k
Forks
662
Avg merge
2d 3h
Merged PRs (30d)
2

Description

I use multicore cpu, so when following wiki by wrmsr 0xc0011020, the scripts/zen_workaround.py --check will output 'Zen workaround not entirely enabled?'.

After viewing this issue and seeing where the zen_workaround.py emits the log , I knew where the problem is.


Updated: using wrmsr 0xc0011020 -a 0x46404000000000 with -a may be not allowable (this link also says about SMP, SMP can be checked by uname -a ) in grub, so maybe can use the following in shell rc (I use .bashrc):

# change 6404000000000 to original rdmsr value , 16 to thread num and 0x46404000000000 to expected wrmsr value
if [[ $(sudo rdmsr -a -x 0xc0011020 | grep ^6404000000000$ | wc -l) > 0 ]];then
        echo "write wrmsr"
        sudo wrmsr 0xc0011020 -a 0x46404000000000
fi

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the Zen wiki instructions alongside scripts/zen_workaround.py --check and the linked issue comment explaining its output. Verify how wrmsr behaves on SMP systems and whether the proposed shell commands are supported; done means the wiki clearly documents the correct per-core procedure and its limitations.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, linux
Domain
documentation, operating-systems
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.