Skip to content

gh-149584: Use mach_vm_remap in Tachyon - #150893

Closed
maurycy wants to merge 1 commit into
python:mainfrom
maurycy:vmremap
Closed

gh-149584: Use mach_vm_remap in Tachyon#150893
maurycy wants to merge 1 commit into
python:mainfrom
maurycy:vmremap

Conversation

@maurycy

@maurycymaurycy commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

@pablogsal This is a sneak peak. I'm cooking it for the past two weeks. It's not bad:

MetricBaseline (main025cc26)This PRChange
Work rate339,576.5 calls/sec2,925,619.9 calls/sec8.61x faster
Sample rate325,989.3 samples/sec2,202,278.0 samples/sec6.76x faster
Avg call time2.94 µs0.34 µs-88.4%
Total attempts979,7326,612,4426.75x more
Successful samples977,9706,606,845-
Failed samples1,7625,597-
Success rate99.82%99.92%+0.10 pp
Work efficiency96.2%75.3%-
2026-06-04T00:00:55.450053000+0200 maurycy@gimel /Users/maurycy/src/github.com/maurycy/cpython (vmremap 25e012d) % sudo ./python.exe Tools/inspection/benchmark_external_inspection.py --duration 3
[...]
Basic Statistics:
Wall time: 3.000 seconds
Total attempts: 6,612,442
Successful samples: 6,606,845
Failed samples: 5,597
Success rate: 99.92%
Performance Metrics:
Average call time: 0.34 µs
Work rate: 2925619.9 calls/sec
Sample rate: 2202278.0 samples/sec
Total work time: 2.260 seconds
Work efficiency: 75.3%

v.

2026-06-04T00:03:25.240297000+0200 maurycy@gimel /Users/maurycy/work/cpython-main (main 025cc26) % sudo ./python.exe Tools/inspection/benchmark_external_inspection.py --duration 3
============================================================
get_stack_trace() Benchmark Results
============================================================
Basic Statistics:
Wall time: 3.000 seconds
Total attempts: 979,732
Successful samples: 977,970
Failed samples: 1,762
Success rate: 99.82%
Performance Metrics:
Average call time: 2.94 µs
Work rate: 339576.5 calls/sec
Sample rate: 325989.3 samples/sec
Total work time: 2.885 seconds
Work efficiency: 96.2%

@maurycy
maurycy marked this pull request as draft June 3, 2026 22:10
@maurycymaurycy changed the title mach_vm_remapgh-149584: mach_vm_remapJun 3, 2026
@maurycymaurycy changed the title gh-149584: mach_vm_remapgh-149584: Use mach_vm_remap in TachyonJun 3, 2026
@maurycy

Copy link
Copy Markdown
ContributorAuthor

It's still work in progress. I aimed to open this in maurycy/cpython.

@maurycymaurycy closed this Jun 3, 2026
Sign up for freeto 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

@maurycy