update-grub really slow

Bug #508863 reported by Laurent Bigonville
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Undecided
Colin Watson

Bug Description

Binary package hint: grub2

Running update-grub is really slow

bigon@fornost:~$ sudo time update-grub
[sudo] password for bigon:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-10-generic
Found initrd image: /boot/initrd.img-2.6.32-10-generic
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
0.08user 0.07system 0:48.19elapsed 0%CPU (0avgtext+0avgdata 43696maxresident)k
94558inputs+13360outputs (0major+141271minor)pagefaults 0swaps

Revision history for this message
Felix Zielcke (fzielcke) wrote :

We have one bug for slowness in update-grub upstream in Debian
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508834
I'm just not sure if I should mark that one directly as *the* upstream bug for that.

Revision history for this message
Laurent Bigonville (bigon) wrote :

Could be the same bug

bigon@fornost:~$ sudo time grub-probe --device-map=/boot/grub/device.map --device /dev/sda3 --target=fs_uuid
c27900f8-44b7-418c-8002-0a1f317b1820
0.03user 0.09system 0:04.38elapsed 2%CPU (0avgtext+0avgdata 5504maxresident)k
2272inputs+1200outputs (0major+417minor)pagefaults 0swaps

Revision history for this message
Gary Timuss (gary-timuss) wrote :

Every step of the way seems terribly slow

higher:/etc/grub.d>sudo time update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /memtest86+.bin
Found Ubuntu 9.10 (9.10) on /dev/sda3
done
0.93user 6.60system 4:27.52elapsed 2%CPU (0avgtext+0avgdata 0maxresident)k
112450inputs+257816outputs (1major+284240minor)pagefaults 0swaps

Revision history for this message
Laurent Bigonville (bigon) wrote :

On my laptop the grub-probe is instantaneous

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

The issue seems to be fixed on my laptop now.

Revision history for this message
Colin Watson (cjwatson) wrote :

This should be fixed now in Maverick.

grub2 (1.98+20100527-1) unstable; urgency=low

  * New Bazaar snapshot.
[...]
    - Speed up consecutive hostdisk operations on the same device (closes:
      #508834, #574088).
[...]

 -- Colin Watson <email address hidden> Tue, 01 Jun 2010 11:24:38 +0100

Changed in grub2 (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.