executor: slow network device initialization
a-nogikh opened this issue · comments
When executor restarts are frequent, we're observing increased executor startup times.
Some observations:
- We spend ~4 seconds here. This time is stable and does not depend on the number of procs.
syzkaller/executor/common_linux.h
Line 1203 in 1e153dc
I wonder if it can be replaced with a DEVLINK_CMD_RELOAD
command.
In general, I've found little to nothing documentation about netdevsim, which does not make things easier.
- We spend from 1 to 10 seconds here. It's very quick when
procs=1
and gets 1-2 seconds slower with every extraproc
.
syzkaller/executor/common_linux.h
Line 1490 in 1e153dc
Most time is spent here:
syzkaller/executor/common_linux.h
Lines 1679 to 1691 in 1e153dc
Note To get these observations under -debug
, we need to remove setting procs=1
in the debug mode:
syzkaller/syz-manager/manager.go
Lines 803 to 806 in 1e153dc