AlgoViz

Following a system call

easy 7 min

A library translates a call into the platform’s kernel interface.

Where it shows up

The same pattern appears across everyday software.

  • When a read has nothing to return

    After an event-loop change a service burns one core even while receiving few messages. Trace a short interval on one representative worker. Repeated immediate EAGAIN results place the time in a busy loop. A single long read would support a different diagnosis. Bound the observation window because tracing itself can change timing.

  • Verifying the intervention

    Wait for readiness and retry after notification. Handle a second EAGAIN because readiness may change. A long blocking read with no data suggests the producer or the path to it; repeated immediate returns suggest a busy consumer.