Advocate for `StandardOpenOption.DIRECT`

Aperta
#190 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
35/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
java

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Java
Stelle
6
Fork
6
Merge medio
10h 11m
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di JDiskMark/jdm-java

Tutte le issue di JDiskMark/jdm-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.