Bug 163041
Summary: | Recompiling and installing 2.6.1.2-1.1387 kernel resullts in depmod taking all memory and the OOM having to kill it. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | cian cullinan <cian.cullinan> | ||||
Component: | module-init-tools | Assignee: | Bill Nottingham <notting> | ||||
Status: | CLOSED WORKSFORME | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4 | CC: | rvokal | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-07-13 17:41:16 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
cian cullinan
2005-07-12 14:08:05 UTC
Created attachment 116655 [details]
My .config kernel file
This same thing occurs for kernel-2.6.11-1.14_FC3.src.rpm as well but did not happen before upgrading to FC4. It seems as if the upgrade has broken something. I have tried rolling back to a previous version of module-init-tools(3.1-0.pre5.3.i386.rpm) but to no avail. Not sure how to debug this one. Problem solved. It was a combination of FC4 (and whatever software it installed) and my 2.6.11-1.35 kernel that was causing the problem. Upgrading to 2.6.12-1.1390 then recompiling from there worked. OK, closing for now. Please reopen if it comes back; I couldn't reproduce this on a test box here. OK, update. It seems like the problem is caused by depmod loading all of /lib/modules/kernel-2.6.12-prep into memory when building it's list of module depenancies. By simply taking the default kernel-2.6.12-i686.config file that comes with the kernel-2.6.12-1.1387_FC4.src.rpm package and recompiling it, one ends up with a /lib/modules/kernel-2.6.12-prep directory almost 300MB in size. My poor laptop only has 512MB physical memory and I think depmod demanding 300MB might have been too much for it. Physical memory filled up, and the OOM killer came into play. By going through menuconfig before compiling and removing all the modules I don't need I end up with a /lib/modules/kernel-2.6.12 of less than 150MB, and the whole compile and install goes without a hitch. Just to make sure, I monitored depmod's memory footprint for both of the above module scenarios and indeed it peaked at about 295MB with the unaltered .config and at only 145MB with the trimmed down version. I've never had this issue, is this just how depmod is supposed to work? Maybe it's just that there are more/larger modules in the current kernels? Cian Well the act of writing the last post made me think "hang on a second, maybe there's something wrong with my swap partition", and there was. It only came to light because of the memory intensive nature of depmod. Apologies for not spotting this sooner :) Heh, no problem. I suppose depmod should probably be changed to use less memory, but that's not something we'd probably work on outside of upstream. |