2025-08-10 18:23:55 -04:00
|
|
|
# Resource Usage and Management
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
* threads
|
|
|
|
|
* configurable number of [threads](config/threads.md)
|
|
|
|
|
* reading from kernel
|
|
|
|
|
* processing messages from kernel
|
|
|
|
|
* readdir concurrency
|
|
|
|
|
* memory
|
|
|
|
|
* 1MB+ pre reader thread + inflight processing for messages
|
2025-10-24 22:31:04 -05:00
|
|
|
depending on [fuse-msg-size](config/fuse-msg-size.md)
|
2025-08-10 18:23:55 -04:00
|
|
|
* buffers allocated temporarily for reading directories
|
|
|
|
|
* FUSE nodes
|
|
|
|
|
* noforget forgotten nodes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Management
|
|
|
|
|
|
|
|
|
|
* To limit the risk of the Linux kernel's OOM Killer targeting
|
|
|
|
|
mergerfs it sets its
|
|
|
|
|
[oom_score_adj](https://man7.org/linux/man-pages/man5/proc_pid_oom_score_adj.5.html)
|
|
|
|
|
value to -990.
|
|
|
|
|
* mergerfs increases [its available file descriptor and file size
|
|
|
|
|
limit.](https://www.man7.org/linux/man-pages/man3/setrlimit.3p.html)
|
2026-03-27 06:53:53 -05:00
|
|
|
* mergerfs sets its [scheduling
|
2025-08-10 18:23:55 -04:00
|
|
|
priority](https://man7.org/linux/man-pages/man3/setpriority.3p.html)
|
2026-03-27 06:53:53 -05:00
|
|
|
(nice value) to -10 ([by default](config/options.md)), raising its
|
|
|
|
|
CPU scheduling priority above the default of 0.
|
2025-08-10 18:23:55 -04:00
|
|
|
* The [readahead](config/readahead.md) values of mergerfs itself and
|
|
|
|
|
managed filesystems can be modified.
|