[Bug 782689] New: something loads unnecessary 2,5 megs of kernel modules
https://bugzilla.novell.com/show_bug.cgi?id=782689 https://bugzilla.novell.com/show_bug.cgi?id=782689#c0 Summary: something loads unnecessary 2,5 megs of kernel modules Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: rmilasan@suse.com ReportedBy: jslaby@suse.com QAContact: qa-bugs@suse.de CC: fcrozat@suse.com Found By: --- Blocker: --- Why I have these 2,5 megs of bloat loaded during the bootup? btrfs 832470 0 zlib_deflate 26914 1 btrfs libcrc32c 12644 1 btrfs ufs 83013 0 qnx4 13317 0 hfsplus 92634 0 hfs 58649 0 minix 36014 0 vfat 17461 0 msdos 17332 0 fat 61282 2 vfat,msdos jfs 189285 0 xfs 911765 0 reiserfs 254487 0 Some of them (like jfs and xfs) have also allocated slab caches and active objects in them, so this is not only memory eaten by .text and .data presented above. It looks like a pretty waste of memory and bootup time. Is it udev or systemd? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c1
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c2
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c3
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c4
--- Comment #4 from Jiri Slaby
Thats the construction of grub2, this happens on most systems using grub2 (Debian, Ubuntu, now openSUSE and most probably others).
They are loaded to make sure that when you update grub2 config it will find all possible filesystem and distro's.
That does not make sense as udev does the same job, but does not need all the modules, right? It uses blkid and udisks. Or how exactly should loaded modules help to recognize partitions' FS? Does grub2 tries to mount partitions (I truly believe not)?
In rest, why they aren't unloaded I don't know :)
In the worst case we can unload the modules, but why they are loaded in the first place... I beleive grub2 should use blkid as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c5
--- Comment #5 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c6
--- Comment #6 from Jiri Slaby
It's os-prober. In the script /usr/lib/os-probes/init/10filesystems modprobe all these filesystems. The purpose should be able to mount foreign OS's partition and analyze it's bootloader configs.
It could load the modules only if `blkid' reports such a filesystem on some of the partitions. Or, alternatively unload modules loaded by the prober. But that would be racy with other user's activity. BTW1 does it load modules for other than msdos _partition tables_ to find really all OSes? BTW2 should "grub-mount" in /usr/lib/os-probes/50mounted-tests be grub2-mount? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c7
--- Comment #7 from Andrey Borzenkov
It could load the modules only if `blkid' reports such a filesystem on some of the partitions. Or, alternatively unload modules loaded by the prober. But that would be racy with other user's activity.
IMHO it should simply use grub2-mount which is using fuse to mount partitions. It makes no sense to probe file systems that are not supported by grub anyway, and hopefully people won't mind single "fuse" module being loaded. linux-q652:~ # umount /boot/efi linux-q652:~ # rmmod vfat linux-q652:~ # rmmod fat linux-q652:~ # grub2-mount /dev/sda1 /mnt linux-q652:~ # lsmod | grep fat linux-q652:~ # grep /mnt /proc/self/mounts grub2-mount /mnt fuse.grub2-mount rw,nosuid,nodev,relatime,user_id=0,group_id=0 0 0 linux-q652:~ # ls /mnt efi
BTW1 does it load modules for other than msdos _partition tables_ to find really all OSes?
It does not explicitly probe for partitions at all, it relies on kernel to do it.
BTW2 should "grub-mount" in /usr/lib/os-probes/50mounted-tests be grub2-mount?
It should. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c8
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c9
Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c10
--- Comment #10 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c11
--- Comment #11 from Andrey Borzenkov
ouch .. isn't we using fuse now ?
Yes, but os-prober simply loads them unconditionally. I hesitate to remove it. After all, user is supposed to reboot after this is run. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c12
--- Comment #12 from Jiri Slaby
I hesitate to remove it. After all, user is supposed to reboot after this is run.
Why do you think so? Updating bootloader doesn't warrant a reboot, right? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c13
Jeffrey Cheung
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c14
Jiri Slaby
Hi Jiri,
Do you obverse this in 12.3GA or 13.1RC version.
Hi, I do not see it with tumbleweed anymore. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=782689
https://bugzilla.novell.com/show_bug.cgi?id=782689#c15
--- Comment #15 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com