Find where the proc and runc clone cost of the incarnation record goes on amd64

Đang mở
#16 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, linux
Lĩnh vực
backend, performance

Hướng nghiên cứu

Start with docs/benchmarks.md and the bench-ab run linked in the issue; compare the proc and runc single-clone results for the base and head refs on an amd64 runner. The issue proposes a manually triggered profiling workflow using perf record or strace -f -T, but does not name workflow or test files. Done means locating the added cost, making a cheap fix if possible, and proving it with bench-ab.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

proc and runc clones cost about 70 to 100 µs more since the incarnation record landed (#14). The cost is accepted and recorded in docs/benchmarks.md, but we don't know where it goes.

Evidence. bench-ab 38983508961, old c87de10, new 60c4a26, amd64 runner.

p50, ms main clone-signal
proc single clone 0.84 0.91
runc single clone 0.70 0.80

The syscall trim in 60c4a26 removed about 8 system calls per clone and recovered almost none of it. So the syscall count alone does not explain it. The Mac cannot resolve µs changes.

Plan.

  • Add a manually triggered workflow that runs the storm's single-clone case under perf record or strace -f -T for a base and a head ref, and uploads both.
  • Find where the time goes, and fix it if it's cheap.
  • Prove the fix with bench-ab.

Known option. fiberd could pass both ends of one pair, so the fiber skips making its own. That saves about 4 system calls but changes the CLONE fd protocol.

Ngôn ngữ chính
Go
Star
5
Fork
5
Merge trung bình
15 giờ 27 phút
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/fiberd

Tất cả issue của Azure/fiberd

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.