[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 <rmilasan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jslaby@suse.com --- Comment #1 from Robert Milasan <rmilasan@suse.com> 2012-09-28 08:39:49 UTC --- This looks more like initrd. If this are included in the initrd image and maybe loaded would explain some things. udev doesn't load modules that are not used or at least thats the idea. Also are you sure that this is at boot time? When running grub update, all this modules are loaded. -- 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#c2 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC|fcrozat@suse.com | InfoProvider|jslaby@suse.com | AssignedTo|rmilasan@suse.com |mchang@suse.com --- Comment #2 from Jiri Slaby <jslaby@suse.com> 2012-09-28 09:33:39 UTC --- Ah, you are right, they're loaded some time later. Thanks for the pointer. [1110.703405] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled And of course this reloads them: # rmmod xfs # lsmod|grep xfs # grub2-mkconfig -o /boot/grub2/grub.cfg # lsmod|grep xfs xfs 911765 0 Michael, any ideas why grub2 is doing that? -- 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#c3 Robert Milasan <rmilasan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rmilasan@suse.com --- Comment #3 from Robert Milasan <rmilasan@suse.com> 2012-09-28 16:44:31 UTC --- 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. In rest, why they aren't unloaded I don't know :) -- 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#c4 --- Comment #4 from Jiri Slaby <jslaby@suse.com> 2012-09-28 19:45:23 UTC --- (In reply to comment #3)
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 <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|something loads unnecessary |grub2 loads unnecessary 2,5 |2,5 megs of kernel modules |megs of kernel modules -- 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#c5 --- Comment #5 from Michael Chang <mchang@suse.com> 2012-10-01 06:17:22 UTC --- 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. There's no counter part, for instance /usr/lib/os-probes/fini/10filesystems, available in place to release the modules, perhaps have to create one for that ? -- 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#c6 --- Comment #6 from Jiri Slaby <jslaby@suse.com> 2012-10-01 10:00:26 UTC --- (In reply to comment #5)
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 <arvidjaar@gmail.com> 2012-10-01 10:15:42 UTC --- (In reply to comment #6)
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 <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Michael Chang <mchang@suse.com> 2013-04-26 07:47:24 UTC --- Hi Jiri and Andrey.. According to comment#6 and comment#7, close this as resolved fixed. Thanks to work on this. -- 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#c9 Andrey Borzenkov <arvidjaar@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #9 from Andrey Borzenkov <arvidjaar@gmail.com> 2013-04-26 08:08:30 UTC --- It is not fixed. os-prober unconditionally loads all FS modules. bor@opensuse:~/src/linux> lsmod Module Size Used by st 44369 0 fuse 87139 2 ip6table_filter 12816 0 ... bor@opensuse:~/src/linux> sudo os-prober root's password: bor@opensuse:~/src/linux> lsmod Module Size Used by btrfs 834856 0 zlib_deflate 26915 1 btrfs libcrc32c 12645 1 btrfs ufs 83092 0 qnx4 13318 0 hfsplus 92723 0 hfs 58687 0 minix 36058 0 vfat 17462 0 msdos 17333 0 fat 65529 2 vfat,msdos jfs 193530 0 xfs 911692 0 reiserfs 254543 0 st 44369 0 fuse 87139 2 ip6table_filter 12816 0 ... -- 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#c10 --- Comment #10 from Michael Chang <mchang@suse.com> 2013-04-26 09:59:45 UTC --- ouch .. isn't we using fuse now ? -- 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#c11 --- Comment #11 from Andrey Borzenkov <arvidjaar@gmail.com> 2013-04-26 11:37:27 UTC --- (In reply to comment #10)
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 <jslaby@suse.com> 2013-05-07 09:10:20 UTC --- (In reply to comment #11)
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 <jcheung@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO CC| |jcheung@suse.com InfoProvider| |jslaby@suse.com --- Comment #13 from Jeffrey Cheung <jcheung@suse.com> 2013-11-07 06:36:20 UTC --- Hi Jiri, Do you obverse this in 12.3GA or 13.1RC version. -- 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#c14 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|jslaby@suse.com | Resolution| |FIXED --- Comment #14 from Jiri Slaby <jslaby@suse.com> 2013-11-08 14:38:30 UTC --- (In reply to comment #13)
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 <bwiedemann@suse.com> 2013-12-10 11:00:15 CET --- This is an autogenerated message for OBS integration: This bug (782689) was mentioned in https://build.opensuse.org/request/show/210325 Factory / os-prober -- 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.
participants (1)
-
bugzilla_noreply@novell.com