IO improvements

未关闭
#80 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
java

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
Java
星标
6
派生
6
平均合并
10 小时 11 分钟
30 天内合并 PR
12

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JDiskMark/jdm-java 的其他 Issue

查看 JDiskMark/jdm-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。