]> git.ipfire.org Git - thirdparty/dracut.git/commit
feat(network-legacy): send dhcp in parallel on all devices
authorAnjali Kulkarni <anjali.k.kulkarni@oracle.com>
Thu, 4 Feb 2021 01:15:15 +0000 (17:15 -0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 5 Feb 2021 10:11:22 +0000 (11:11 +0100)
commit4026cd3b012be7f06c7572bdf50dd54a18ecb684
treefc5038189ed91d3d73e819a01945e452c03ee8f8
parent30e49d51751c695be85782cfc162de2a63db471c
feat(network-legacy): send dhcp in parallel on all devices

We can drastically improve boot times on some machines, or BM or VM
shapes, if we send DHCP requests in parallel on all interfaces
Add ip=single-dhcp as a kernel boot parameter, to send DHCP requests in
parallel on all interfaces. Thus, DHCP on each interface is overlapped
thereby reducing boot times for multiple interface machines.
This can help reduce the boot time by 1 minute per interface.
In addition, we may also save another 40 secs delay per interface, if
the link on which we try to send DHCP is in DOWN state. This can be
reduced by giving the following kernel command line parameter while
booting - rd.net.timeout.carrier=<timeout>.
Added manpage for ip=single-dhcp with the caveat that it does not
apply to Network Manager or SUSE wicked.

Signed-off-by: Anjali Kulkarni <anjali.k.kulkarni@oracle.com>
dracut.cmdline.7.asc
modules.d/35network-legacy/dhcp-multi.sh [new file with mode: 0755]
modules.d/35network-legacy/ifup.sh
modules.d/35network-legacy/module-setup.sh
modules.d/35network-legacy/parse-ip-opts.sh
modules.d/40network/net-lib.sh