IO improvements

Đang mở
#80 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ó
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
18/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
desktop, performance, tooling

Hướng nghiên cứu

This is a tracking issue, not a single change: split the four bullets into separate issues before coding. Start by locating how the project currently allocates buffers and opens files for sequential/random IO, then evaluate ByteBuffer.allocateDirect versus heap buffers and whether a user-facing option is needed. Windows FILE_FLAG_NO_BUFFERING likely needs JNI; cache-fill and warmup-sample discard are measurement-policy decisions with no named tests in the issue. Done means each sub-task has its own issue and a documented recommendation, not a combined patch here.

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

Mô tả

data-analysis enhancement help wanted ui/ux

Investigate the following IO accuracy / ease of use improvements.

Create sub task to track each independantly:

  1. Java.nio has direct IO buffers to avoid an unnecessary copy in the jvm heap. we'd want to evaluate using them, and then provide an option to toggle this in the options and then decide on a default.
    ByteBuffer.allocateDirect(int capacity)
  2. investigate using the FILE_FLAG_NO_BUFFERING to avoid write caching. This is a windows native flag which might involve use of JNI and creating native components to allow use of the flag.
  3. When not running in admin mode it should be possible to write an amount of data to the drive equal to the size of the systems memory to fill up (invalidate) the cache and then perform read operations on the files after the cache has been cleared.
  4. Also review whether we should perform dummy sample io and then immediately discard the information if it is not representative of the drive's actual IO. See below where the initial points for each thread are of significan't higher bw than the later section. Some forums have referred to this as warmup. Perhaps we can estimate or set how many samples are to be discarded from a warmup session before collecting the samples from the actual run.
    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.