CPU Utilization Counters for RISC-V
summary
Proposal adds two CSRs: a core-cycle counter that increments at actual CPU frequency and an active-time counter that ticks at a fixed reference rate, both stop in idle. The OS computes current frequency as the delta ratio of those counters times reference_freq and derives a normalized utilization without traps or IPC. Implementation exists in Linux kernel branch, OpenSBI and a hardware platform; benchmarks show negligible performance loss and about 62% energy reduction versus a performance-only policy. Hardware cost is two 64-bit counters and no scheduler rework beyond CSR reads.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:01Problem with CPU utilization
- 3:32Linux kernel and DVFS
- 6:06RISC-V current gap
- 7:53Proposed counters solution
- 9:20Why not reuse existing counters
- 11:29Benchmark results
- 13:16Why this fits RISC-V
- 14:20Impact and conclusion
related talks
43mRISC-V CPU Project in Western Digital
20mKeynote: RISC-V State of the Union
35mSQUIP or Why We Need to Study Processors Like Nature
10mRISC-V Instruction Set Explorer (RISE)
13mKeynote: Accelerating Innovation with RISC-V: Past, Present and Future
17mRISC-V is Ready for Powering the Era of Intelligent General Computing
01h 01mThe Genius of the RISC-V Microprocessor
01h 02mMegahertz, Gigahertz, Registers and Instructions: How does a CPU actually work?
