]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/udev/udevd.c
udevd: increase default number of workers 10658/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 1 Nov 2018 07:54:10 +0000 (16:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Nov 2018 15:25:20 +0000 (00:25 +0900)
commitfaae64fa3dc22738b3af669579a33055b9d71432
treec5162a5bf40dc7bbdf87d8f936ed60f0282fef7b
parenteca195ec23fb4ed3ece26b55f85c5eefa662e967
udevd: increase default number of workers

The uevent handling in udevd is not cpu hungry.
So, let's increase the default number of workers per cpu.
This decrease the number of queued uevents.

Without this commit (children_max is 16 on my laptop)
```
$ journalctl -b -u systemd-udevd.service | grep reached | wc -l
1544
```
With this commit (children_max is 30 on my laptop)
```
$ journalctl -b -u systemd-udevd.service | grep reached | wc -l
7
```
src/udev/udevd.c