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

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

Conversation

@maurycy

@maurycy maurycy 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:

Metric Baseline (main 025cc26) This PR Change
Work rate 339,576.5 calls/sec 2,925,619.9 calls/sec 8.61x faster
Sample rate 325,989.3 samples/sec 2,202,278.0 samples/sec 6.76x faster
Avg call time 2.94 µs 0.34 µs -88.4%
Total attempts 979,732 6,612,442 6.75x more
Successful samples 977,970 6,606,845 -
Failed samples 1,762 5,597 -
Success rate 99.82% 99.92% +0.10 pp
Work efficiency 96.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
@maurycy maurycy changed the title mach_vm_remap Jun 3, 2026
@maurycy maurycy changed the title gh-149584: mach_vm_remap Jun 3, 2026
@maurycy

maurycy commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

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

@maurycy maurycy closed this Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant