Products › lamco-dsi-tools › Docs › Long runs and load
Long runs and load
Soak runs, the session during a run, idle inhibitors, and a recorded load.
Most figures of lamco-dsi-tools (DSI: Desktop session interfaces) rest on a few hundred samples of an idle machine. A long run and a load say what a desktop does over hours and under pressure. This page covers --soak, the recorded load of dsido load, reading a long run over time, and the display session a run is taken in.
Long runs: --soak
--soak <duration> (as 90s, 30m or 2h) is taken by dsisee capture observe, dsisee input witness, dsisee portal probe and dsido screen animate. It replaces --duration, lifts the default limit on frames or events, needs --out, and writes the capture to that file as a stream while the run goes: One line of JSON for the header, one for each record, and one that closes it. So:
- Memory is bounded. A dissector hands over what it recorded at each turn of its loop, and the records then leave memory. What a run holds is the records of one frame (the two Wayland capture protocols and the animation), of one event of the stream (the portal route), of a quarter second of events (the witness) or one record (
portal probe), and a buffer of 64 KiB in front of the file. - A kill keeps what was recorded. The file is flushed after every hand-over. A run that's killed or crashes leaves a stream with no closing line, and perhaps half a line at its end. Every
dsitellcommand reads it as far as it goes and says it's unclosed (SOAK-004). - The file is capped. The run ends itself when the file reaches
--soak-cap(default4G, 0 for none), writes its closing line, says so, and exits 1 (SOAK-003). There's no rotation: One run is one file. - Progress is said on standard error every
--soak-progress(default60s, 0 for never). - The machine is on record. The run records the processors, load averages and memory
/proclists, at its start and at its end, eachdsido loadthat was running and each idle inhibitor adsidocommand held. - The session is on record. See The session during a run.
capture observe takes --soak on all three capture routes. On the portal route, which is the one GNOME and KDE have, the session's records are written before the stream is read, and then the records of each event of the PipeWire stream as the event ends, with --read-markers too. The other commands that record for a window don't take --soak.
A recorded load
dsido load cpu --workers <n> --duration <d> keeps that many threads busy, each counting in a plain loop, and dsido load memory --mb <m> --duration <d> allocates memory, writes to every page and holds it. Both record the machine's state from /proc before and after. No stress tool is called. A load is in dsido because it loads the machine it runs on.
(dsido screen animate --soak 30m --out animate.jsonl; touch animate.done) & # change for the capture to see
dsisee capture observe --soak 31m --until-file animate.done --out idle.jsonl # an idle machine
dsido load cpu --workers 8 --duration 35m --out load.json & # then the same under load
dsisee capture observe --soak 30m --out loaded.jsonl
dsitell timing loaded.jsonl --series wlr_screencopy.ready_interval --bucket 1m
dsitell compare idle.jsonl loaded.jsonl --fail-on timing,findings
dsisee capture observe --route portal --soak 30m --read-markers --out cast.jsonl # GNOME and KDE
dsitell timing cast.jsonl --series portal_screencast.buffer_interval --bucket 1m
dsitell compare says, for each of its two captures, the load it was taken under, from the capture's own records of the machine's state. A capture that recorded none says that and is never called idle.
Following one figure over time
dsitell timing <capture> --series <figure> follows one figure through one capture: Its distribution over the whole run, the count of lengths over each --over threshold (or over ten times the median), the five longest with when they happened, the rate at the start of the run against the rate at its end, and a row for each --bucket of time (default 10s) with its count, median, 95th percentile and maximum. The 99th percentile is given only from 100 lengths and the 99.9th only from 1000. It prints text, --markdown or --json.
A stream is read one line at a time, and what's kept is eight bytes for each length, so the size of the file is no limit. Every other dsitell command reads a stream whole into memory, as it reads any capture, and needs several times the file's size for it (an estimate, not measured). A stream of gigabytes is for --series.
A capture that runs beside an animation and outlasts it records the still screen at its end. Three things keep that out of the figures:
dsisee capture observe --until-file <path>ends the capture when something appears at the path, so the animation's shell ends it with atouch. A path needs no pixel to be read, works on every route, and ends a capture beside anything.dsitell timing <capture> --series <figure> --animation <animation capture>counts only the lengths that began and ended while the animation was presenting, from its first commit to its last, and says how many it left out on each side.--fromand--untildo the same by offsets from the start of the capture.dsitell health <capture> --animation <animation capture>holdsSOAK-001andSOAK-002to the same span.
dsitell health raises SOAK-001 for a figure with lengths over ten times its median among at least 100, and SOAK-002 when a capture route delivered under 80 percent as much at the end of a run as at its start. Neither decides a route's state: A route that delivered frames works.
The session during a run
On KWin 6.8.2 on 2026-11-28, a ten minute screen cast had run for five minutes when KDE's idle timer locked the session and switched the display off. The buffers then all but stopped, many of them showed no marker, and the capture raised SOAK-001, SOAK-002 and CAP-007 and held nothing that said why. Three things were built for it.
The watch
Every command that records for a window, makes a long run or drives the machine has the display session followed while it runs: The login session the compositor runs in. It's looked for in four ways, and the first that names a session is taken:
- The session logind names for the process on the other end of the Wayland socket (
GetSessionByPIDof the process the kernel names withSO_PEERCRED). - The
Displaysession of the user's object. - A session of the user on a seat with the type
waylandorx11and the classuser. - Last, the session of the command's own process.
The capture says which found it and why, with every answer on the way and every candidate. A command started from an SSH login is in another session than the display's. That session is read at the start and at the end and recorded apart (instrument_session), and every report names the session it followed and says the command ran in another.
The watch holds the display session's LockedHint, IdleHint, Active and State at the start and at the end, each PropertiesChanged between, and its Lock and Unlock signals, each with the time it arrived, and logind's own time of the idle hint where logind gave one. Where the compositor advertises zwlr_output_power_manager_v1, each output's power is followed too (on or off); where it doesn't, the capture says the power wasn't read. KWin's own org_kde_kwin_dpms isn't read. Nothing is called that changes the session, and dsisee observe and dsisee check, which read once, write no watch.
The lenses
A span begins when the first of four things becomes so and ends when none is: Locked, idle, not the active session, an output switched off. dsitell timing --series states the spans, counts the lengths of the figure that reached into one, says how many of the stalls did and whether a rate that fell fell there, and with --exclude-locked leaves those lengths out. dsitell health states the spans and raises SOAK-005, and SOAK-001, SOAK-002 and CAP-007 then say when their own evidence lies in a span. dsitell glass says how many frames were committed and buffers read in one. A capture with no watch says nothing of its session and is never read as one that stayed unlocked, and a desktop that sets none of the four signs leaves no span.
The inhibitor
dsido session inhibit --what idle --duration <duration> holds the session awake, and dsido screen animate --inhibit-idle does the same around an animation. It's dsido's because it changes how the machine behaves; dsisee has no such flag. Two interfaces are asked:
- logind's
Inhibitwith whatidleand modeblock. Byorg.freedesktop.login1(5)of systemd 257 that holds off logind's own "automatic idle logic", itsIdleAction, which isignoreunless configured. The manual says nothing of a desktop's own lock or blanking timer, so the tool doesn't claim the lock stops one. The record holds logind'sIdleActionand itsBlockInhibitedafter the call. org.freedesktop.ScreenSaver.Inhibiton the session bus, only where something owns that name and its object's own description declares the call as taking two strings and answering with a number. Which program owns the name is read from the bus and recorded.
That a desktop honors either isn't asserted: It's read from the capture. The watch runs beside the inhibitor, and a session that locked, went idle or blanked while a lock was held raises SOAK-006. Both locks are given back when the command ends, on a signal too, and a process that's killed loses them with its descriptor and its bus connection. A capture taken meanwhile lists the inhibitor in its display_session and machine_state records.
dsido session inhibit --duration 12m --out inhibit.json & # hold the session awake
dsisee capture observe --route portal --soak 10m --read-markers --out cast.jsonl
dsitell health cast.jsonl inhibit.json # SOAK-005, SOAK-006
dsitell timing cast.jsonl --series portal_screencast.buffer_interval --exclude-locked
What has been run
The project's record of runs, reconciled on 2026-12-04, has these long runs:
- Long runs (
--soak), ten minutes each, on Sway 1.9 on 2026-11-28: One idle and one with four processors loaded. A capture that was killed outright was read back and flagged as not closed. - A long run paired with an animation that ended with it, on Sway 1.9 on 2026-11-28: No false stalls at the end, and no frames missed.
- Long runs on the portal route, ten minutes each beside an animation of 60 frames a second, on GNOME Shell 48.7 and KWin 6.8.2 on 2026-11-28. On KWin, KDE's idle timer locked the session five minutes into the run and switched the display off, and the stall and rate findings were raised. The session watch was built after this run.
- The idle inhibitor on KWin 6.8.2 on 2026-11-28, where it held off the lock for a run of 6.5 minutes, and on GNOME Shell 48.7 on 2026-11-29, where it took both locks it asked for and gave them back.
- The idle inhibitor and the session watch against a real lock, on GNOME Shell 48.7 on 2026-11-29: Without the inhibitor the session was locked and idle at 1 minute 55 seconds and the stalls were attributed to the locked span. With it the session never locked or went idle, and there were no stalls.
- The session watch started from an SSH login, on Sway 1.9 and KWin 6.8.2 on 2026-11-28.
The record doesn't name which commands took --soak in those runs, what loaded the processors, or which command gave the figures minute by minute and with a locked span left out, so this page doesn't say whether dsido load cpu, dsitell timing --series or --exclude-locked took part. The record, through 2026-11-29, has no run of dsido load memory, or of the idle inhibitor on any desktop but KWin 6.8.2 and GNOME Shell 48.7. What has been run mirrors the README of the latest release.