1
0
mirror of https://github.com/Zygo/bees.git synced 2025-08-05 23:23:47 +02:00

bees: soft-limit computed thread counts to 8

https://github.com/Zygo/bees/issues/91 describes problems encountered
when running bees on systems with many CPU cores.

Limit the computed number of threads (using --thread-factor or the
default) to a maximum of 8 (i.e. the number of logical cores in a modern
laptop).  Users can override the limit by using --thread-count.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell
2018-11-21 21:28:38 -05:00
parent d9c788d30a
commit 34b04f4255
4 changed files with 21 additions and 1 deletions

View File

@@ -62,6 +62,12 @@ Minor kernel problems with workarounds:
Note `btrfs receive` is not affected. It is OK to run bees with no
workarounds on a filesystem that receives btrfs snapshots.
* **Systems with many CPU cores** may [lock up when bees runs with one
worker thread for every core](https://github.com/Zygo/bees/issues/91).
bees limits the number of threads it will try to create based on
detected CPU core count. Users may override this limit with the
[`--thread-count` option](options.md).
Older kernels:
* Older kernels have various data corruption and deadlock/hang issues