IO improvements

Abierto
#80 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
18/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
java

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Java
Estrellas
6
Forks
6
Merge medio
10 h 11 min
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de JDiskMark/jdm-java

Todos los issues de JDiskMark/jdm-java

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.