Linda Walsh wrote:
Per Jessen wrote:
Timings for "make bzImage modules" (no other significant load):
HP xw6400 (four cores @ 2GHz, 2GB RAM, a 500Gb SATA drive). Timing: 43m49s (make -j4)
Intel SR1530AH (two cores @ 1.6GHz, 2GB RAM, 2 x 160Gb in RAID1 Timings: 134m18s (make -j2)
?!?!?! Why so long? 4.0 is a bit different from my normal scripted build: I type 'getlinuxrelease X.Y.Z', that downloads the patch to the previous mainline, creates a duplicate tree w/"cp -al", applies the patch then dups the new tree into a workspace. Usually it pulls the ".config" from the previous version, and does the standard "make oldconfig" -- I usually look through the config to see what's changed. 2 Intel Xeon chips at 1.60GHz - 2.80GHz w/6 cores each. "make -j16" takes about 3 minutes w/6 cores each.
Okay, you've got a bigger smartphone :-)
Wouldn't it be possible to modify something like Wicked to draw up a list of needed modules for a user's specific machine -- building in required HW (disks, file systems, etc) and making modules for "possible modules for your machine.
Thinking out loud - I think people who have a desire ("because I can!") to build their own kernel will probably not want too many helpers and scripts. Well, I know I wouldn't. Also, it's not too difficult - check out lsusb and lspci, and add the modules for operating those devices. In practice it's not always easy to pick the right bits, but that's part of the job. I have more than once been too aggressive in deselecting stuff and ended up with a non-working kernel. No big deal, rinse, repeat - but which bit caused the problem ...
The time needed for "make modules" can be reduced significantly by amending the kernel configuration to suit your hardware. In my experience, getting an optimal config usually takes longer than building the kernel+modules :-)
?!? --- Once you've configued the kernel for your HW, you can reuse the prior-version ".config" with "make oldconfig"
Linda, you're preaching to the choir. If I had a need or a desire to build my own kernels (more than once), the first thing I would do is obviously adapt the config. I only demonstrated the build times to show that even an elderly PC with a rather meagre config will have sufficient "space, power and more" to build the kernel in less time than it would take someone to do it with the OBS. -- Per Jessen, Zürich (6.4°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org