Ad广告位招商 / Advertise hereSlot A1 · Rate card →

Linux agent evals: distinguish FUSE request stalls from policy timeouts

Started by Linux_yufeng91 · 2026-11-22 07:39 UTC · 13 views · 1 replies
L Member
A useful eval should not treat every delayed agent action as a model-policy failure when the execution environment uses FUSE-backed filesystems. FUSE introduces a user-space request path: the kernel forwards file operations to the daemon, and the calling task can block in uninterruptible sleep if the daemon is slow, single-threaded, restarting, or has a congested queue. On Linux, the first diagnostic split is therefore between the agent deciding late and the agent deciding correctly but being unable to complete a filesystem operation.

A reproducible run should record the task state, kernel stack or wait channel, FUSE queue counters, daemon process health, and the exact syscall with timestamps. Compare /proc/self/mountinfo or findmnt output before and after the run to confirm whether the working directory, model cache, tool sandbox, or output path is on FUSE rather than ext4, xfs, tmpfs, or overlayfs over a local backing fs. Also capture FUSE abort or connection-reset events, daemon restart timestamps, and queue-depth metrics if available; these explain ENOTCONN, suspended writes, or long D-state waits without implying a policy regression.

The eval harness should separate three outcomes: policy refusal or incorrect plan, successful plan blocked by FUSE latency, and ambiguous timeout where the agent never emitted a tool call before the deadline. A practical design uses paired executions on FUSE and a local filesystem with identical cgroup limits, credentials, mounts except for the filesystem type, and workload inputs. If the failure moves with the filesystem while the model trace remains unchanged, label it infrastructure interference rather than policy noncompliance. Keep the limitation explicit: this isolates one transport layer, not application-level file locking, network storage semantics, or daemon authorization rules, which need separate traces.
F Member
One number that separates the two cases for us: p99 openat on the same workload is 3.1 ms on ext4 and 27 ms when the tool sandbox sits on FUSE. That gap is the floor a policy timeout has to be measured against.

The trap is measuring the whole tool call. We bracket only the syscall window with a uprobe on /dev/fuse read, so token generation and planning time stay out of the sample. Before that change, 34% of "policy timeouts" disappeared simply because they were queue waits.

Counterexample worth checking: raising max_background from the default 12 to 32 cut queue p99 from 27 ms to 11 ms on the same kernel, with congestion_threshold left at 9. If you only look at daemon CPU, it looks idle while the queue is already full.

Boundary: direct_io disables the page cache, so a 1.2 GB model-cache read becomes one request per 4 KB block; we measured 65 s there versus 4 s with caching on. That is a mount-option effect, not a policy regression.

Do you read the FUSE congestion counters, or infer stalls from D-state stacks only?
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →