Advocate for `StandardOpenOption.DIRECT`

Đang mở
#190 0 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ó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
performance, tooling

Hướng nghiên cứu

This is advocacy, not a repo code change: open https://bugs.openjdk.org/browse/JDK-8264744, create an OpenJDK/JBS account if needed, and post the project's disk-benchmark use of uncached I/O (Linux O_DIRECT / Windows FILE_FLAG_NO_BUFFERING / macOS F_NOCACHE) and the current --add-exports java.base/com.sun.nio.file=ALL-UNNAMED workaround. Done when a comment with that usecase is on the JDK ticket; nothing in jdm-java needs a patch.

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

Mô tả

enhancement

we currently use ExtendedOpenOption.DIRECT under com.sun.nio.file. This is essential for a disk benchmark to get real hardware throughput rather than cached reads. This mode has been around for 10years and is likely to continue being available.

open jdk's enhancement request:

https://bugs.openjdk.org/browse/JDK-8264744

to promote to standard option but no activity. we should endorese this request as we rely on it by creating an account and posting our usecase.

t's been sitting with no activity — direct I/O semantics vary significantly across OSes (Linux O_DIRECT, Windows FILE_FLAG_NO_BUFFERING, macOS F_NOCACHE) and the JDK team hasn't committed to a cross-platform contract

The com.sun.nio.file package is in a grey area — it's internal API but it's exported from the jdk.unsupported module

we can surpress with

<compilerArgs>
    <arg>--add-exports</arg>
    <arg>java.base/com.sun.nio.file=ALL-UNNAMED</arg>
</compilerArgs>

example of ci errors we get from this:

Image
Ngôn ngữ chính
Java
Star
6
Fork
6
Merge trung bình
10 giờ 11 phút
Pull request đã merge (30 ngày)
12

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

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 JDiskMark/jdm-java

Tất cả issue của JDiskMark/jdm-java

Issue tương tự

Thêm issue về Java

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.