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

change binary name of rd/wrmsr to avoid conflict with system installed binaries #24

Merged
merged 1 commit into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ src/reporter/reporter*
src/collector/collector
src/collector/collector.exe
src/collector/collector_arm64
src/rdmsr/rdmsr
src/wrmsr/wrmsr
src/rdmsr/rdmsrx
src/wrmsr/wrmsrx
src/msrbusy/msrbusy
src/calcfreq/calcfreq
# src
Expand Down
4 changes: 4 additions & 0 deletions RELEASE_NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Fully Supported Platforms
- Operating Systems: Ubuntu 16.04, 18.04, 20.04, 22.04, CentOS 7, Amazon Linux 2, Debian 11, RHEL 9, Rocky Linux 8
Note: svr-info may work on other micro-architectures and Linux distributions, but has not been thoroughly tested

2.7.4
Bugs Fixed
- false positive Vulnerability for CVE-2022-40982 ("Downfall") on some ICX systems

2.7.3
Sub-components Updated
- spectre-meltdown-checker -- updated to latest HEAD commit
Expand Down
12 changes: 6 additions & 6 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ reporter:
cd reporter && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -ldflags '-s -w -X main.gVersion=$(VERSION)' -o reporter

rdmsr:
cd rdmsr && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -ldflags '-s -w -X main.gVersion=$(VERSION)' -o rdmsr
cd rdmsr && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -ldflags '-s -w -X main.gVersion=$(VERSION)' -o rdmsrx

wrmsr:
cd wrmsr && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -ldflags '-s -w -X main.gVersion=$(VERSION)' -o wrmsr
cd wrmsr && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -ldflags '-s -w -X main.gVersion=$(VERSION)' -o wrmsrx

msrbusy:
cd msrbusy && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -ldflags '-s -w -X main.gVersion=$(VERSION)' -o msrbusy
Expand Down Expand Up @@ -242,8 +242,8 @@ collector-deps-amd64: collector_tools
cp linux/tools/perf/perf $(TMPDIR)
cp -R async-profiler $(TMPDIR)
cp flamegraph/stackcollapse-perf.pl $(TMPDIR)
cp rdmsr/rdmsr $(TMPDIR)
cp wrmsr/wrmsr $(TMPDIR)
cp rdmsr/rdmsrx $(TMPDIR)
cp wrmsr/wrmsrx $(TMPDIR)
cp spectre-meltdown-checker/spectre-meltdown-checker.sh $(TMPDIR)
cp stress-ng/stress-ng $(TMPDIR)
cp sysstat/mpstat $(TMPDIR)
Expand Down Expand Up @@ -282,8 +282,8 @@ clean:
rm -f orchestrator/resources/collector_deps_arm64.tgz
rm -f orchestrator/resources/reporter
rm -f orchestrator/resources/sshpass
rm -f rdmsr/rdmsr
rm -f wrmsr/wrmsr
rm -f rdmsr/rdmsrx
rm -f wrmsr/wrmsrx
rm -f msrbusy/msrbusy

reset:
Expand Down
34 changes: 17 additions & 17 deletions src/orchestrator/resources/collector_reports.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -127,81 +127,81 @@ commands:
superuser: true
parallel: true
- label: rdmsr 0x1a4
command: rdmsr -f 3:0 0x1a4 # MSR_MISC_FEATURE_CONTROL: L2 and DCU Prefetcher enabled/disabled
command: rdmsrx -f 3:0 0x1a4 # MSR_MISC_FEATURE_CONTROL: L2 and DCU Prefetcher enabled/disabled
superuser: true
modprobe: msr
parallel: true
- label: rdmsr 0x1b0
command: rdmsr -f 3:0 0x1b0 # IA32_ENERGY_PERF_BIAS: Performance Energy Bias Hint (0 is highest perf, 15 is highest energy saving)
command: rdmsrx -f 3:0 0x1b0 # IA32_ENERGY_PERF_BIAS: Performance Energy Bias Hint (0 is highest perf, 15 is highest energy saving)
superuser: true
modprobe: msr
parallel: true
- label: rdmsr 0x1ad
command: rdmsr 0x1ad # MSR_TURBO_RATIO_LIMIT: Maximum Ratio Limit of Turbo Mode
command: rdmsrx 0x1ad # MSR_TURBO_RATIO_LIMIT: Maximum Ratio Limit of Turbo Mode
superuser: true
modprobe: msr
parallel: true
- label: rdmsr 0x1ae
command: rdmsr 0x1ae # MSR_TURBO_GROUP_CORE_CNT: Group Size of Active Cores for Turbo Mode Operation
command: rdmsrx 0x1ae # MSR_TURBO_GROUP_CORE_CNT: Group Size of Active Cores for Turbo Mode Operation
superuser: true
modprobe: msr
parallel: true
- label: rdmsr 0x4f
command: rdmsr -a 0x4f # MSR_PPIN: Protected Processor Inventory Number
command: rdmsrx -a 0x4f # MSR_PPIN: Protected Processor Inventory Number
superuser: true
modprobe: msr
parallel: true
- label: rdmsr 0x610
command: rdmsr -f 14:0 0x610 # MSR_PKG_POWER_LIMIT: Package limit in bits 14:0
command: rdmsrx -f 14:0 0x610 # MSR_PKG_POWER_LIMIT: Package limit in bits 14:0
superuser: true
modprobe: msr
parallel: true
- label: rdmsr 0x6d
command: rdmsr 0x6d # TODO: what is the name/ID of this MSR? SPR Features
command: rdmsrx 0x6d # TODO: what is the name/ID of this MSR? SPR Features
superuser: true
modprobe: msr
parallel: true
- label: rdmsr 0xc90
command: rdmsr 0xc90
command: rdmsrx 0xc90
superuser: true
modprobe: msr
parallel: true
- label: uncore cha count
command: rdmsr 0x702
command: rdmsrx 0x702
superuser: true
modprobe: msr
parallel: true
- label: uncore client cha count
command: rdmsr 0x396
command: rdmsrx 0x396
superuser: true
modprobe: msr
parallel: true
- label: uncore cha count spr
command: rdmsr 0x2FFE
command: rdmsrx 0x2FFE
superuser: true
modprobe: msr
parallel: true
- label: uncore max frequency
command: rdmsr -f 6:0 0x620 # MSR_UNCORE_RATIO_LIMIT: MAX_RATIO in bits 6:0
command: rdmsrx -f 6:0 0x620 # MSR_UNCORE_RATIO_LIMIT: MAX_RATIO in bits 6:0
superuser: true
modprobe: msr
parallel: true
- label: uncore min frequency
command: rdmsr -f 14:8 0x620 # MSR_UNCORE_RATIO_LIMIT: MIN_RATIO in bits 14:8
command: rdmsrx -f 14:8 0x620 # MSR_UNCORE_RATIO_LIMIT: MIN_RATIO in bits 14:8
superuser: true
modprobe: msr
parallel: true
- label: active idle utilization point
command: |-
wrmsr 0xb0 0x80000694 # must write this value to this MSR before reading 0xb1
rdmsr -f 15:8 0xb1 # ACTIVE IDLE - UTILIZATION POINT
wrmsrx 0xb0 0x80000694 # must write this value to this MSR before reading 0xb1
rdmsrx -f 15:8 0xb1 # ACTIVE IDLE - UTILIZATION POINT
superuser: true
modprobe: msr
parallel: true
- label: active idle mesh frequency
command: |-
wrmsr 0xb0 0x80000694 # must write this value to this MSR before reading 0xb1
rdmsr -f 7:0 0xb1 # ACTIVE IDLE - MESH FREQUENCY
wrmsrx 0xb0 0x80000694 # must write this value to this MSR before reading 0xb1
rdmsrx -f 7:0 0xb1 # ACTIVE IDLE - MESH FREQUENCY
superuser: true
modprobe: msr
parallel: true
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.3
2.7.4