FS#16133 - [initscripts] reduce udev waiting time in initscripts

Attached to Project: Arch Linux
Opened by Daniel YC Lin (dlin) - Friday, 11 September 2009, 01:31 GMT
Last edited by Thomas Bächler (brain0) - Monday, 21 September 2009, 22:53 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: Most of Archlinux users have found the udev delayed the boot time about 30 seconds.
Could I suggest a tip on reduce the boot time?

Add a in EXTRA_UDEV_WAIT_TIME=0 in rc.conf which let user could adjust the time for extra sleep if some device can not successful work.

replace '/sbin/udevadm settle' with '/sbin/udevadm settle & upid=$!' in /etc/rc.sysinit
Add 'wait $upid' in the end of /etc/rc.sysinit or somewhere it required.

eg.
/etc/rc.conf
============
EXTRA_UDEV_WAIT_TIME=2 # in my case 0 second is good

/etc/rc.sysinit
===============
...
/sbin/udevadm settle & upid=$!
if [ "$EXTRA_UDEV_WAIT_TIME" -gt 0 ] ; then
sleep $EXTRA_UDEV_WAIT_TIME
fi
...
wait $upid # in my case, I can skip this step

Additional info:
* package version(s)
initscripts 2009.08-1
This task depends upon

Closed by  Thomas Bächler (brain0)
Monday, 21 September 2009, 22:53 GMT
Reason for closing:  Won't implement
Additional comments about closing:  This is stupid and will lead to a large amount of race conditions.

If udev takes 30 seconds to finish, the right solution is find the cause and fix it, not replace a clean script by an unclean one. On all my machines, udev takes less than 5 seconds.

Loading...