FUSE background request limit
The FUSE background request limit controls dispatch of background requests from a kernel connection toward its userspace filesystem.
Dispatch: Linux v6.12 distinguishes active requests from queued background work. Ordinary background allocation can wait, while forced paths can add queued work without that wait. This is not a cap on all requests or a hardware queue-depth setting. [1]
Pressure: At num_background >= congestion_threshold, the kernel skips the remaining speculative readahead and WB_SYNC_NONE writeback invocation. This does not stop all reads, writes or fsync. [2]
Observation: The connection's waiting counter reads num_waiting, a broader population including foreground requests and callers blocked before allocation. It is not active_background. The read callback samples at offset zero and retains that value for continuation reads; an end-of-file read is not a zero counter value. Start a fresh read from offset zero for each sample. [3] [1]
Version scope: libfuse 3.16.2's request classification explicitly refers to kernel 4.8. In Linux v6.12, writeback can enter the forced background path, so that older classification is not a complete account of the later implementation. [4] [2]
Relations
- related
- FUSE, Backpressure
Citations
- Linux v6.12: background allocation, dispatch and request accounting
- Linux v6.12: fuse_readahead, fuse_writepages and forced writeback requests
- Linux v6.12: FUSE connection waiting and queue controls
- libfuse 3.16.2: connection parameters and kernel-4.8-era background request classification
Further reading
Sources & caveats
- Source review of Linux v6.12 and libfuse 3.16.2; no mounted-daemon workload, performance benchmark or power-loss test was performed.