Need to adjust trace buffer size/limit

Đang mở
#551 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 2 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
observability, performance

Hướng nghiên cứu

Start by reading the real-time session setup around the StartTraceW call and how sessionProps.MaximumBuffers is initialized. Compare setting a larger maximum before starting the session with updating it later through ControlTraceW using EVENT_TRACE_CONTROL_UPDATE. Done means the session buffer limit is addressed; the issue also raises whether applications should be able to configure it.

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

Mô tả

Some users report getting a "The backing-file for the real-time session "..." has reached its maximum size. As a result, new events will not be logged to this session until space becomes available. This error is often caused by starting a trace session in real-time mode without having any real-time consumers."

I suspect this is due to the buffer size limit set (or rather not set) for the real-time trace session.
PM doesn't set BufferSize, MinimumBuffers or MaximumBuffers when starting a session, so Windows sets this automatically. In this case, Windows sets the following:

  • Buffer size: 64 KB
  • Minimum buffers: 256
  • Maximum buffers: 278

I think we need to increase the sessionProps.MaximumBuffers value prior to StartTraceW call, or do a ControlTraceW( ..., EVENT_TRACE_CONTROL_UPDATE) later.
It might also be good to let the application specify this value via a parameter.

Ngôn ngữ chính
C++
Star
2.6k
Fork
201
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
16

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 GameTechDev/PresentMon

Tất cả issue của GameTechDev/PresentMon

Issue tương tự

Thêm issue về C++

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.