THP usage regression after aligned metadata optimization for faster frees

Đang mở
#1,502 2 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/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ệ
c
Lĩnh vực
performance

Hướng nghiên cứu

Read the aligned page metadata optimization and the linked version 2 PR to understand why allow_large=false affects the THP hint in version 3. Trace the fallback allocation path and where the THP page hint is selected, then compare the behavior with version 2. Done means confirming whether the same fix applies and verifying that the affected allocation path preserves the intended THP hint.

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

Mô tả

It looks like THP usage regressed after optimizing free with aligned page metadata. The second commit of this work effort introduces an fallback to allocate from the OS directly with allow_large=false. In version 3, allow_large=false disables the THP page hint. So, these pages don't get a THP hint. This leads to a major regression in one of our workloads (a TPC-DS benchmark query regresses from 13.5s to 18s) due to more page faults.

This PR against version 2 of mimalloc reasons why allow_large=false should not be involved in deciding the THP hint. Could you check if the same fix should be applied to version 3 now?

Ngôn ngữ chính
C
Star
13.6k
Fork
1.2k
Merge trung bình
18 giờ 12 phút
Pull request đã merge (30 ngày)
20

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 microsoft/mimalloc

Tất cả issue của microsoft/mimalloc

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.