mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 04:46:41 -05:00
fix: cap thread pools at 64 and warn when clamped
- Limit read-thread-count, process-thread-count and the cor/cosr pool size in func.readdir to 64 threads per pool. Apply the cap after resolving automatic and CPU-divided counts; keep disabled process pools disabled and preserve the configured strings. - Log a syslog warning identifying the setting and limit when clamped. For readdir, warn only when applying a valid concurrent policy, not during validation. - Document the fixed cap and warning behavior. Queue depths retain their separate limits and use the clamped thread count. - Resolve negative FUSE counts without overflowing on INT_MIN.
This commit is contained in:
parent
0f9d52d9d8
commit
0a82dfe2e0
6 changed files with 69 additions and 17 deletions
|
|
@ -3,6 +3,13 @@
|
|||
There are multiple thread pools used in mergerfs to provide
|
||||
parallel behaviors.
|
||||
|
||||
Each thread pool is limited to 64 threads. This applies to
|
||||
`read-thread-count`, `process-thread-count` and the pool size in
|
||||
[func.readdir](func_readdir.md). Counts resolved from automatic or
|
||||
negative settings are also capped. When an applied setting exceeds
|
||||
the limit, mergerfs reduces the count to 64 and logs a syslog warning
|
||||
(`LOG_WARNING`). Queue depths are not capped to 64.
|
||||
|
||||
|
||||
## read-thread-count
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue