Skip to content

refactor(mm): remove static KERNEL_ADDR_RANGE - #2620

Merged
mkroening merged 1 commit into
mainfrom
start-end
Aug 10, 2026
Merged

refactor(mm): remove static KERNEL_ADDR_RANGE#2620
mkroening merged 1 commit into
mainfrom
start-end

Conversation

@mkroening

Copy link
Copy Markdown
Member

This PR removes static KERNEL_ADDR_RANGE. Looking up the symbols directly should be cheaper too.

Found while working on #2546.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Results

Details
Benchmark Current: 0c43a9a Previous: 2e23902 Performance Ratio
startup_benchmark Build Time 79.90 s 80.34 s 0.99
startup_benchmark File Size 0.77 MB 0.80 MB 0.97
Startup Time - 1 core 0.74 s (±0.02 s) 0.75 s (±0.02 s) 0.99
Startup Time - 2 cores 0.75 s (±0.01 s) 0.74 s (±0.02 s) 1.02
Startup Time - 4 cores 0.74 s (±0.02 s) 0.74 s (±0.02 s) 1.00
multithreaded_benchmark Build Time 80.06 s 82.11 s 0.98
multithreaded_benchmark File Size 0.86 MB 0.86 MB 1.01
Multithreaded Pi Efficiency - 2 Threads 88.72 % (±7.92 %) 85.89 % (±6.61 %) 1.03
Multithreaded Pi Efficiency - 4 Threads 44.49 % (±2.66 %) 43.43 % (±2.56 %) 1.02
Multithreaded Pi Efficiency - 8 Threads 25.85 % (±1.65 %) 25.76 % (±1.53 %) 1.00
micro_benchmarks Build Time 77.63 s 80.40 s 0.97
micro_benchmarks File Size 0.87 MB 0.86 MB 1.01
Scheduling time - 1 thread 63.29 ticks (±1.67 ticks) 62.65 ticks (±4.06 ticks) 1.01
Scheduling time - 2 threads 34.54 ticks (±3.68 ticks) 34.08 ticks (±4.10 ticks) 1.01
Micro - Time for syscall (getpid) 4.45 ticks (±0.55 ticks) 3.45 ticks (±0.58 ticks) 1.29
Memcpy speed - (built_in) block size 4096 83521.78 MByte/s (±57913.51 MByte/s) 82448.38 MByte/s (±56997.13 MByte/s) 1.01
Memcpy speed - (built_in) block size 1048576 30649.46 MByte/s (±24625.54 MByte/s) 30585.98 MByte/s (±24707.84 MByte/s) 1.00
Memcpy speed - (built_in) block size 16777216 29407.55 MByte/s (±24180.20 MByte/s) 26340.06 MByte/s (±21720.96 MByte/s) 1.12
Memset speed - (built_in) block size 4096 83558.55 MByte/s (±57940.85 MByte/s) 82292.76 MByte/s (±56891.50 MByte/s) 1.02
Memset speed - (built_in) block size 1048576 31396.05 MByte/s (±25067.09 MByte/s) 31323.85 MByte/s (±25145.86 MByte/s) 1.00
Memset speed - (built_in) block size 16777216 30174.42 MByte/s (±24623.31 MByte/s) 27104.68 MByte/s (±22209.94 MByte/s) 1.11
Memcpy speed - (rust) block size 4096 74915.50 MByte/s (±52313.36 MByte/s) 74097.96 MByte/s (±51811.44 MByte/s) 1.01
Memcpy speed - (rust) block size 1048576 30386.82 MByte/s (±24571.18 MByte/s) 30361.60 MByte/s (±24602.37 MByte/s) 1.00
Memcpy speed - (rust) block size 16777216 29464.30 MByte/s (±24221.76 MByte/s) 27625.34 MByte/s (±22806.88 MByte/s) 1.07
Memset speed - (rust) block size 4096 75585.18 MByte/s (±52756.62 MByte/s) 74373.47 MByte/s (±51976.48 MByte/s) 1.02
Memset speed - (rust) block size 1048576 31138.53 MByte/s (±25008.49 MByte/s) 31110.89 MByte/s (±25033.24 MByte/s) 1.00
Memset speed - (rust) block size 16777216 30232.90 MByte/s (±24666.67 MByte/s) 28386.93 MByte/s (±23265.03 MByte/s) 1.07
alloc_benchmarks Build Time 77.10 s 74.76 s 1.03
alloc_benchmarks File Size 0.85 MB 0.87 MB 0.97
Allocations - Allocation success 91.35 % 91.31 % 1.00
Allocations - Deallocation success 100.00 % 100.00 % 1
Allocations - Pre-fail Allocations 61.55 % 61.44 % 1.00
Allocations - Average Allocation time 5017.34 Ticks (±81.20 Ticks) 5860.58 Ticks (±98.43 Ticks) 0.86
Allocations - Average Allocation time (no fail) 5709.92 Ticks (±106.80 Ticks) 6554.81 Ticks (±92.86 Ticks) 0.87
Allocations - Average Deallocation time 992.71 Ticks (±236.46 Ticks) 1805.01 Ticks (±250.35 Ticks) 0.55
mutex_benchmark Build Time 77.11 s 79.82 s 0.97
mutex_benchmark File Size 0.87 MB 0.86 MB 1.01
Mutex Stress Test Average Time per Iteration - 1 Threads 12.06 ns (±0.37 ns) 12.10 ns (±0.41 ns) 1.00
Mutex Stress Test Average Time per Iteration - 2 Threads 40.38 ns (±2.54 ns) 40.26 ns (±1.68 ns) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@mkroening
mkroening added this pull request to the merge queue Aug 10, 2026
Merged via the queue into main with commit 1d3e636 Aug 10, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant