{
  "slug": "fuse-background-limit",
  "term": "FUSE background request limit",
  "aliases": [
    "FUSE max_background"
  ],
  "definition": "The FUSE background request limit controls dispatch of background requests from a kernel connection toward its userspace filesystem.",
  "note": "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. [linux-queues]\n\nPressure: 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. [linux-pressure]\n\nObservation: 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. [linux-control] [linux-queues]\n\nVersion 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. [libfuse-queues] [linux-pressure]",
  "related": [
    "fuse",
    "backpressure"
  ],
  "citations": [
    {
      "id": "linux-queues",
      "title": "Linux v6.12: background allocation, dispatch and request accounting",
      "url": "https://github.com/torvalds/linux/blob/v6.12/fs/fuse/dev.c",
      "accessed": "2026-11-29"
    },
    {
      "id": "linux-pressure",
      "title": "Linux v6.12: fuse_readahead, fuse_writepages and forced writeback requests",
      "url": "https://github.com/torvalds/linux/blob/v6.12/fs/fuse/file.c",
      "accessed": "2026-11-29"
    },
    {
      "id": "linux-control",
      "title": "Linux v6.12: FUSE connection waiting and queue controls",
      "url": "https://github.com/torvalds/linux/blob/v6.12/fs/fuse/control.c",
      "accessed": "2026-11-29"
    },
    {
      "id": "libfuse-queues",
      "title": "libfuse 3.16.2: connection parameters and kernel-4.8-era background request classification",
      "url": "https://github.com/libfuse/libfuse/blob/fuse-3.16.2/include/fuse_common.h",
      "accessed": "2026-11-29"
    },
    {
      "id": "hesela-fuse",
      "title": "Hesela: distinguish FUSE dispatch, congestion and waiting",
      "url": "https://hesela.com/analyses/fuse-writeback-cache-fsync/#background-pressure",
      "accessed": "2026-11-29"
    }
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-29",
  "provenance": [
    "Source review of Linux v6.12 and libfuse 3.16.2; no mounted-daemon workload, performance benchmark or power-loss test was performed."
  ]
}
