8000 fix(x86_64/mm): add context to `MapToError` by mkroening · Pull Request #1820 · hermit-os/kernel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(x86_64/mm): add context to MapToError #1820

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

Merged
merged 1 commit into from
Jul 8, 2025
Merged

fix(x86_64/mm): add context to MapToError #1820

merged 1 commit into from
Jul 8, 2025

Conversation

mkroening
Copy link
Member

This is very helpful when facing MapToError::ParentEntryHugePage, for example.

@mkroening mkroening self-assigned this Jul 7, 2025
Copy link
Contributor
@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Benchmark Results

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

Misc

Benchmark Current: f496a67 Previous: be0a653 Performance Ratio
micro_benchmarks Build Time 76.13 s 70.42 s 1.08
micro_benchmarks File Size 0.97 MB 0.96 MB 1.00
Scheduling time - 1 thread 66.44 ticks (±4.70 ticks) 60.24 ticks (±3.06 ticks) 1.10
Scheduling time - 2 threads 34.67 ticks (±2.11 ticks) 31.86 ticks (±1.93 ticks) 1.09
Micro - Time for syscall (getpid) 15.29 ticks (±1.40 ticks) 14.90 ticks (±1.32 ticks) 1.03
Memcpy speed - (built_in) block size 4096 72808.42 MByte/s (±50334.03 MByte/s) 81525.14 MByte/s (±56187.03 MByte/s) 0.89
Memcpy speed - (built_in) block size 1048576 41402.22 MByte/s (±28808.56 MByte/s) 42926.86 MByte/s (±29715.31 MByte/s) 0.96
Memcpy speed - (built_in) block size 16777216 26140.58 MByte/s (±21813.86 MByte/s) 28315.38 MByte/s (±23305.84 MByte/s) 0.92
Memset speed - (built_in) block size 4096 73126.18 MByte/s (±50532.94 MByte/s) 81983.14 MByte/s (±56500.99 MByte/s) 0.89
Memset speed - (built_in) block size 1048576 41703.32 MByte/s (±29018.36 MByte/s) 43135.37 MByte/s (±29857.76 MByte/s) 0.97
Memset speed - (built_in) block size 16777216 26781.98 MByte/s (±22167.91 MByte/s) 29073.62 MByte/s (±23753.59 MByte/s) 0.92
Memcpy speed - (rust) block size 4096 65611.56 MByte/s (±45976.32 MByte/s) 71810.42 MByte/s (±50069.06 MByte/s) 0.91
Memcpy speed - (rust) block size 1048576 41159.98 MByte/s (±28589.90 MByte/s) 43009.84 MByte/s (±29784.76 MByte/s) 0.96
Memcpy speed - (rust) block size 16777216 25240.97 MByte/s (±21257.85 MByte/s) 28887.29 MByte/s (±23767.73 MByte/s) 0.87
Memset speed - (rust) block size 4096 65949.22 MByte/s (±46187.80 MByte/s) 72206.11 MByte/s (±50360.23 MByte/s) 0.91
Memset speed - (rust) block size 1048576 41410.28 MByte/s (±28758.04 MByte/s) 43219.94 MByte/s (±29927.79 MByte/s) 0.96
Memset speed - (rust) block size 16777216 25956.13 MByte/s (±21694.25 MByte/s) 29651.26 MByte/s (±24214.31 MByte/s) 0.88
alloc_benchmarks Build Time 75.14 s 65.53 s 1.15
alloc_benchmarks File Size 0.92 MB 0.92 MB 1.00
Allocations - Allocation success 100.00 % 100.00 % 1
Allocations - Deallocation success 70.00 % (±0.30 %) 69.94 % (±0.30 %) 1.00
Allocations - Pre-fail Allocations 100.00 % 100.00 % 1
Allocations - Average Allocation time 14808.46 Ticks (±1060.75 Ticks) 13283.14 Ticks (±172.79 Ticks) 1.11
Allocations - Average Allocation time (no fail) 14808.46 Ticks (±1060.75 Ticks) 13283.14 Ticks (±172.79 Ticks) 1.11
Allocations - Average Deallocation time 1002.23 Ticks (±196.76 Ticks) 841.59 Ticks (±118.38 Ticks) 1.19
mutex_benchmark Build Time 76.71 s 65.60 s 1.17
mutex_benchmark File Size 0.97 MB 0.96 MB 1.00
Mutex Stress Test Average Time per Iteration - 1 Threads 14.44 ns (±0.61 ns) 12.62 ns (±0.91 ns) 1.14
Mutex Stress Test Average Time per Iteration - 2 Threads 19.28 ns (±7.96 ns) 15.36 ns (±6.61 ns) 1.26
General
Benchmark Current: f496a67 Previous: be0a653 Performance Ratio
startup_benchmark Build Time 75.33 s 73.75 s 1.02
startup_benchmark File Size 0.86 MB 0.85 MB 1.00
Startup Time - 1 core 0.99 s (±0.04 s) 1.01 s (±0.02 s) 0.98
Startup Time - 2 cores 1.00 s (±0.05 s) 0.99 s (±0.03 s) 1.00
Startup Time - 4 cores 1.01 s (±0.03 s) 1.01 s (±0.04 s) 1.00
multithreaded_benchmark Build Time 74.57 s 73.77 s 1.01
multithreaded_benchmark File Size 0.96 MB 0.96 MB 1.00
Multithreaded Pi Efficiency - 2 Threads 93.39 % (±8.93 %) 93.09 % (±6.52 %) 1.00
Multithreaded Pi Efficiency - 4 Threads 63.66 % (±9.77 %) 64.83 % (±5.56 %) 0.98
Multithreaded Pi Efficiency - 8 Threads 43.77 % (±5.79 %) 45.19 % (±3.25 %) 0.97

@mkroening mkroening added this pull request to the merge queue Jul 8, 2025
Merged via the queue into main with commit c8a8dc0 Jul 8, 2025
15 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.

2 participants
0