trace benchmark support

Open
#119 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
performance

Research direction

Start by reading the existing synthetic benchmark flow; the issue does not name files, tests, or entry points. The scope includes trace format support, replay modes, visualization, scoring, and threading, so clarify the initial deliverable before starting; done would mean an agreed, working trace-benchmarking feature.

Written by the indexing model from the issue text.

Description

enhancement ui/ux

To date we only support synthetic benchmarks.

trace benchmarking uses recorded real world app data to be replayed for measuring realistic performance of the drive.

Tools such as PCMark 10, Fio and Storage Executive has support for trace benchmarking.

Fio has a binary iolog format which would be a good initial format to support. The fields are believed to be:

  1. Time - offset in nanoseconds from the start of trace
  2. Direction - Read (0) or Write (1)
  3. Offset - the starting byte on the disk
  4. Length - size of the request (eg 4096 bytes)

a potential interface might be a tab to separate the synthetic vs trace controls. maybe reuse graph or start a new one dedicated for handling traces.

  1. replay speed options:
    • real-time
    • ASAP - ignore idle time between request
  2. visualization - heatmap or IOPS overtime
  3. timeline indicator - a know showing the progress of where we are in the trace replay
  4. drift monitor - indicator showing if drive is falling behind the trace's original timing

drive scoring:

metric calculation notes
fidelity score (trace duration / replay time ) x 100 in real mode less than 100 indicates lag
99th percentile time below whihc 99% of I/O completions fall captures stuttering?
normalized bw avg mb/s during active io periods helps compare drives across different traces
wat time ratio percentage of time cpu is waiting for I/O to finish high % indicates disk is a bottle neck for that workload

implementation notes:

  • MappedByteBuffer could be used for offset-based reading and writing.
  • public traces usually come in these formats:
    • Fio Binary/ASCII iolog
    • SNIA/IOTTA (CSV)
    • Blktrace (linux binary)
  • threading
    • default threading to 32
    • make configurable
    • use dispatcher thread to launch from a thread pool of n threads
Dominant language
Java
Stars
6
Forks
6
Avg merge
10h 11m
Merged PRs (30d)
12

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JDiskMark/jdm-java

All issues in JDiskMark/jdm-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.