VirtualBox

Opened 16 years ago

Closed 16 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 Frank Mehnert, 16 years ago

Summary: vboxdrv init script makes boot slowvboxdrv init script makes boot slow => Fixed in SVN

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

comment:2 by Frank Mehnert, 16 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette