[Bug 562232] New: make module_install fails - depmod cannot allocate memory (reprise)
http://bugzilla.novell.com/show_bug.cgi?id=562232 http://bugzilla.novell.com/show_bug.cgi?id=562232#c0 Summary: make module_install fails - depmod cannot allocate memory (reprise) Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: 32bit OS/Version: openSUSE 10.2 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: Flavio@Flavioweb.it QAContact: qa@suse.de CC: jeffm@novell.com, devzero@web.de Depends on: 350896 Found By: Community User Blocker: --- Two previous bug reports are marked as "fixed" but: DEPMOD2.6.31.5-0.1flavioweb WARNING: Can't read module /lib/modules/2.6.31.5-0.1-flavioweb/kernel/drivers/ata/libata.ko: Cannot allocate memory WARNING: Can't read module /lib/modules/2.6.31.5-0.1-flavioweb/kernel/drivers/ata/pata_rz1000.ko: Cannot allocate memory WARNING: Can't read module /lib/modules/2.6.31.5-0.1-flavioweb/kernel/drivers/ata/pata_opti.ko: Cannot allocate memory WARNING: Can't read module /lib/modules/2.6.31.5-0.1-flavioweb/kernel/drivers/ata/pata_oldpiix.ko: Cannot allocate memory [...] WARNING: /lib/modules/2.6.31.5-0.1-flavioweb/kernel/drivers/char/scx200_gpio.ko needs unknown symbol scx200_gpio_base WARNING: /lib/modules/2.6.31.5-0.1-flavioweb/kernel/drivers/char/scx200_gpio.ko needs unknown symbol scx200_gpio_configure WARNING: /lib/modules/2.6.31.5-0.1-flavioweb/kernel/drivers/char/scx200_gpio.ko needs unknown symbol scx200_gpio_shadow WARNING: /lib/modules/2.6.31.5-0.1-flavioweb/kernel/drivers/mfd/ucb1400_core.ko needs unknown symbol ac97_bus_type [...] FATAL: Memory allocation failure ../index.c line 133: calloc(sizeof(struct index_node), 1). make: *** [_modinst_post] Error 1 This happens with: #CONFIG_DEBUG_KERNEL yes Don't happens with:#CONFIG_DEBUG_KERNEL is not set I have 512mb ram and 512mb swap. +++ This bug was initially created as a clone of Bug #350896 +++ I tried building a vanilla kernel (2.6.24rc6) on my opensuse 10.3 box because i like to compare if an error with 2.6.24rc6-suse-kotd kernel is reproducable with vanilla kernel. when i do "make modules_install" the process runs for a while and then fails with "Warning: Can`t read module ......: Cannot allocate memory Fatal: Memory allocation failure depmod.c line 119: malloc(sizeof *new + strlen(name) + 1). make: *** [_modinst_post] Error 1 My box has 512MB ram. I startet make a second time and watched growth of depmod process, and it was around 850MB VSZ, 350MB RSS when it failed. Any clue why depmod dies with out of memory error ? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c
Flavio Pasqualin
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c1
Greg Kroah-Hartman
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c2
Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c3
Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c4
--- Comment #4 from Flavio Pasqualin
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c5
--- Comment #5 from Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c6
--- Comment #6 from Flavio Pasqualin
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c7
Michal Marek
du -sh /lib/modules/2.6.31.5-0.1-flavioweb 90M /lib/modules/2.6.31.5-0.1-flavioweb
Now I'm confused. Is this the same kernel that you encountered the bug with or did you rebuild w/o debuginfo in the meantime?
It's possible that "debug info" on modules take up 622 MB ???
That's indeed possible yes (the 11.2 kernel-default-debuginfo package takes about 850MB). I suggest you just lift the virtual memory limit, depmod won't eat much memory, but it needs to mmap() all the *.ko files. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c8
--- Comment #8 from Flavio Pasqualin
(In reply to comment #6)
du -sh /lib/modules/2.6.31.5-0.1-flavioweb 90M /lib/modules/2.6.31.5-0.1-flavioweb
Now I'm confused. Is this the same kernel that you encountered the bug with or did you rebuild w/o debuginfo in the meantime?
It's the same kernel w/o debuginfo.
I suggest you just lift the virtual memory limit, depmod won't eat much memory, but it needs to mmap() all the *.ko files.
So i need a bigger swap partition on disk, or there are some other things to do for lift the virtual memory limit? Just a curiosity: why installing precompiled kernel and modules from rpms works fine, and not work compiling from source? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c9
--- Comment #9 from Michal Marek
(In reply to comment #7)
I suggest you just lift the virtual memory limit, depmod won't eat much memory, but it needs to mmap() all the *.ko files.
So i need a bigger swap partition on disk, or there are some other things to do for lift the virtual memory limit?
No, as I wrote, depmod doesn't allocate much memory, but the file mappings count as virtual memory.
Just a curiosity: why installing precompiled kernel and modules from rpms works fine, and not work compiling from source?
Packages have the debuginfo split off into $package-debuginfo.rpm. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c10
roland kletzing
Anyway, this isn't a kernel error, nothing we can do about it, sorry. yes, this is no kernel issue, but it`s a kernel build issue. under what should category/component should this be filed instead?
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c11
Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c12
--- Comment #12 from roland kletzing
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c13
--- Comment #13 from Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c14
--- Comment #14 from Flavio Pasqualin
Care to read the previous comments? depmod (at least in the openSUSE module-init-tools package) allocates a few megabytes of "ram". But it needs to mmap the *.ko files, which adds to the virtual memory usage. Hence if you have a low virtual memory limit (ulimit -v) and compile a kernel with CONFIG_DEBUG_INFO=y, it will easily hit the limit.
I understand to add some virtual memory, but i still confused: if i have a 512mb swap partition and set ulimit -v to "1000000", the -additional- memory where is -stored-? -Virtual memory- and -swap partition- are the same? Or i can have a 512mb of swap and 1gb of -virtual memory-? In my sistem i can have 512mb ram + 512mb of swap, and set -virtual memory- to 1,5gb? And again: the -debug info- installed with the "kernel-debug-info.rpm" are not "depmodded" and the .ko files "mmapped()"? Why install a "precomiled kernel-debug-info rpm" works, and compiling the same kernel from source cause the "out of memory"? What's the difference? IMHO "add memory" is not a solution but a "work around"... A more efficient depmod is a solution. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c15
--- Comment #15 from Jeff Mahoney
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c16
--- Comment #16 from Flavio Pasqualin
http://bugzilla.novell.com/show_bug.cgi?id=562232
http://bugzilla.novell.com/show_bug.cgi?id=562232#c17
--- Comment #17 from roland kletzing
participants (1)
-
bugzilla_noreply@novell.com