foo.zone

I/O Riot NG 1.3.1: beyond file I/O



Published at 2026-12-02T00:00:00+02:00

I've released I/O Riot NG 1.3.1. The biggest change since 1.1.0 is the range of syscalls it can trace: networking, memory, scheduling and more now sit alongside filesystem calls. There are also new controls for busy traces, and a lot of fixes to how events are named, counted and recorded. Since the feature work, a full-tree bug hunt went through the tracer, the statistics engine and the terminal.

If you haven't seen it before, ior is my Linux syscall tracer with a terminal dashboard and live flamegraphs. It uses eBPF to collect events from the kernel. The earlier posts walk through the dashboard; this one covers what's changed since the May release.

What is eBPF?
I/O Riot NG v1.3.1 source

The live flamegraph dashboard

Table of Contents




More than file I/O



Syscalls are now grouped into 12 families: FS, Network, Memory, Signals, Sched, IPC, Time, Process, Security, Polling, AIO and Misc. Filesystem tracing remains the default. You choose the others when you need them, rather than attaching everything at startup.

For example, this opens a trace with filesystem and network probes:

sudo ./ior -trace-families FS,Network

Or look at time and polling calls:

sudo ./ior -trace-families Time,Polling

You can also select individual syscalls or kinds of syscall, and exclude matches. That's useful when one noisy call is getting in the way of the question you're trying to answer.

Choosing families, kinds and individual syscalls from the command line

Syscall families and selection flags

Change the trace while it runs



You don't have to settle on the right probes before opening the dashboard. Press O to open the probes dialog, then Tab for its Families view. Space attaches or detaches the selected family. The Syscalls view gives you the same control over individual calls.

Family changes run in the background with progress shown. If your kernel doesn't offer a call's tracepoint (the hook in the kernel ior attaches to), ior reports it and continues with the others. Your selection also survives a trace restart when you change the target or filters.

Attaching and detaching Network probes from the dashboard

One distinction worth remembering: [ and ] change which family the dashboard displays. They don't attach additional probes. Use the probes dialog to change what gets collected.

When every event is too much



Sampling happens in the kernel. The BPF program still sees every call, it just pushes every Nth one into the ring buffer (the queue the kernel fills with events and ior empties) and counts the rest.

The rate is 1 for every call, N for one in N, and 0 for none at all (counting only; the TUI supports 0, the file-output modes -plain, -flamegraph and -parquet bump a family rate of 0 back to 1 because they have nowhere to keep the counts). This traces filesystem calls and keeps one in ten of them in the event stream:

sudo ./ior -trace-families FS -syscall-sampling-families FS=10

-trace-families FS is the default anyway; I only spell it out because it goes with the sampling flag.

A busy trace, say a database doing hundreds of thousands of reads per second, otherwise floods the ring buffer and the terminal with single events. What you still see is real, though: every row is a real call with its real duration.

futex* (the syscalls locks are built on) and clock_gettime are rate 0 by default once their probes are attached. They say something in aggregate, a row per call would just drown the stream.

Sampling controls, syscall counts and the Latency + Gaps view

Output formats and sampling details

Getting the attribution right



A file descriptor number is reused. A process forks, closes a descriptor, opens another file, or replaces itself with a new executable. Keeping the correct filename attached to each event through all of that takes more care than simply remembering the last name seen for a number.

This release includes fixes around descriptor reuse, fork and exec, and relative paths. When the tracer cannot establish a name, it leaves that uncertainty visible.

Interrupted syscalls have had similar attention. A signal can interrupt a syscall midway, and the kernel restarts it, so the same call would show up in fragments. ior traces the start and the stop of each call and can fold the fragments back into one event, but refuses the fold when missing records make the pairing uncertain. Kernel ring-buffer drops and skipped probe runs are reported too. Warnings are accessible from the Stream tab, so you can inspect them during a session.

There are many other smaller improvements like this along these lines in this release.

Opening a Stream warning to read its full message

Longer sessions and safer recordings



The live flamegraph now bounds the size of its trie (the internal data structure the flamegraph is built from). When it reaches the limit, it combines the smallest subtrees into an [other;] bucket, preserving totals while losing some detail about where those totals came from. Drawing the screen works on a snapshot of that trie, and it now prunes the parts that wouldn't be visible anyway before walking it. That makes large traces cheaper to refresh, although the compaction still briefly pauses the reading of new events.

Recording and export paths have received plenty of attention as well. Automatically named exports avoid collisions, and native recording reads now reject truncated or corrupt compressed data and unexpected trailing payloads. A damaged file should produce an error rather than appear to load successfully. Parquet recordings and atomic exports also fsync before publishing now, so a crash can't leave a half-written file behind.

Headless traces selected by PID or TID stop when their target exits. And the command-line parser now rejects stray positional arguments: a typo before -pid can no longer silently leave the following flag unused.

There are smaller terminal fixes throughout: resize handling, narrow layouts, Unicode input, search feedback and flamegraph refreshes when switching tabs. These don't make for exciting screenshots, but they matter while using the tool.

A full-tree bug hunt



The bug hunt behind this release went through the whole tree. The gist: statistics could come out wrong right after a reset or a filter change, when old counts leaked into the fresh numbers, and a filter for a process the kernel programs didn't cover silently missed rows. Both are fixed.

The terminal got its share: the Files tab's treemap and its sibling views behave in narrow terminals again, the flamegraph keeps its zoom when the view changes, and search and auto-scroll behave. Under the hood, looking up process names and pairing the start and the end of each syscall got cheaper.

And a new build gate fails the test suite when a large binary blob enters the repository. History once held a couple of such dumps; this keeps fresh clones small.

Everything since v1.2.0

Try it



The source is tagged v1.3.1 on both GitHub and Forgejo. The documented container build produces the binary:

git clone https://github.com/snonux/ior.git
cd ior
git checkout v1.3.1
./scripts/build-with-docker.sh
sudo ./ior

You'll need Docker for that build, and a Linux/amd64 host with kernel BTF support to run the tracer (on most current distros the file /sys/kernel/btf/vmlinux simply exists). The README has the native build instructions too.

The tutorial now has 18 animated examples, including family selection, sampling and Stream warnings. That's probably the quickest way to see the new controls before tracing a process yourself.

Build and usage instructions
Illustrated tutorial
Full changes since v1.1.0
Forgejo mirror

Other related posts:

2026-12-02 I/O Riot NG 1.3.1: beyond file I/O (You are currently reading this)
2026-05-17 Unveiling I/O Riot NG — Part 3: under the hood
2026-05-11 Unveiling I/O Riot NG — Part 2: install and compile once, run everywhere
2026-05-08 Unveiling I/O Riot NG — Part 1: a guided tour
2018-06-01 Realistic load testing with I/O Riot for Linux

E-Mail your comments to paul@nospam.buetow.org :-)

Back to the main site