Opened 15 years ago
Closed 15 years ago
#3934 closed defect (fixed)
vboxdrv init script makes boot slow => Fixed in SVN
| Reported by: | Ken Arnold | Owned by: | |
|---|---|---|---|
| Component: | host support | Version: | VirtualBox 2.2.2 |
| Keywords: | boot, vboxdrv, init, slow, find, grep | Cc: | |
| Guest type: | other | Host type: | Linux |
Description
According to bootchart, the vboxdrv init script wastes over 2 seconds on my machine running find in the module tree before trying modprobe. Why not just try modprobe first?
Here's how I modified that section of vboxdrv. But I'm sure you could do a whole lot better:
if ! running vboxdrv; then
if ! modprobe vboxdrv > /dev/null 2>&1; then
# modprobe failed. Find out why:
if ! find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|grep -q vboxdrv; then
failure "No suitable module for running kernel found"
fi
failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why"
fi
sleep .2
fi
Change History (2)
comment:1 by , 15 years ago
| Summary: | vboxdrv init script makes boot slow → vboxdrv init script makes boot slow => Fixed in SVN |
|---|
comment:2 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.


You are completely right. I've removed the code which was trying to find the module.