Re: Reducing kernel compilation time

2011-09-28 Thread Celejar
On Mon, 26 Sep 2011 01:41:10 - Cam Hutchison wrote: > David Witbrodt writes: > > >(My goal was to > >produce a kernel that boots without an initrd; most people will not > >share that goal.) > > I would have thought that most people would share that goal, since > building an initrd is usefu

Re: Reducing kernel compilation time

2011-09-26 Thread Tom H
On Sun, Sep 25, 2011 at 9:41 PM, Cam Hutchison wrote: > David Witbrodt writes: > >>(My goal was to >>produce a kernel that boots without an initrd; most people will not >>share that goal.) > > I would have thought that most people would share that goal, since > building an initrd is useful for on

Re: Reducing kernel compilation time

2011-09-26 Thread Camaleón
On Sun, 25 Sep 2011 16:13:58 -0500, Stan Hoeppner wrote: > On 9/25/2011 11:02 AM, Camaleón wrote: (...) >>> Simply go through all the hardware and deselect anything that's not >>> inside that netbook. Of all the network interface cards you'll only >>> need one (or two depending on whether that

Re: Reducing kernel compilation time

2011-09-26 Thread Tom H
On Sun, Sep 25, 2011 at 7:26 PM, Stephen Powell wrote: > > I will continue to use and recommend kernel-package. But I'm not going > to argue with those who wish to use "make deb-pkg". It's all a question of habit. If I need to have a package, I use "make-dpkg" on Debian distribs and "rpmbuild" on

Re: Reducing kernel compilation time

2011-09-26 Thread Tom H
On Sun, Sep 25, 2011 at 5:13 PM, Stan Hoeppner wrote: > On 9/25/2011 11:02 AM, Camaleón wrote: >> On Sun, 25 Sep 2011 10:18:53 -0500, Stan Hoeppner wrote: >>> Simply go through all the hardware and deselect anything that's not >>> inside that netbook.  Of all the network interface cards you'll o

Re: (Results) Re: Reducing kernel compilation time

2011-09-26 Thread Tom H
On Sun, Sep 25, 2011 at 4:21 PM, Camaleón wrote: > On Sat, 24 Sep 2011 14:22:33 +, Camaleón wrote: > > Okay, let's get the numbers. > > I followed Sven and Stephen's advice so I: > > - Used "make localmodconfig" to generate the ".config" file > - Appended "CONCURRENCY_LEVEL=2" to "make-kpkg" >

Re: Reducing kernel compilation time

2011-09-26 Thread Jochen Spieker
Cam Hutchison: > >> (My goal was to >> produce a kernel that boots without an initrd; most people will not >> share that goal.) > > I would have thought that most people would share that goal, since > building an initrd is useful for only two reasons I can think of: I regularly built custom kern

Re: Reducing kernel compilation time

2011-09-25 Thread Cam Hutchison
David Witbrodt writes: >(My goal was to >produce a kernel that boots without an initrd; most people will not >share that goal.) I would have thought that most people would share that goal, since building an initrd is useful for only two reasons I can think of: 1) You are building a distro kerne

Re: Reducing kernel compilation time

2011-09-25 Thread Stephen Powell
On Sun, 25 Sep 2011 10:27:09 -0400 (EDT), Brian wrote: > > Indeed, but the deck is stacked against kernel-package when it is > associated with 'deprecated' in the minds of users. It may not suit the > Kernel Team for their use but I've happily and successfully compiled > kernels with it for many

Re: Reducing kernel compilation time

2011-09-25 Thread Stan Hoeppner
On 9/25/2011 11:02 AM, Camaleón wrote: On Sun, 25 Sep 2011 10:18:53 -0500, Stan Hoeppner wrote: On 9/25/2011 9:30 AM, Camaleón wrote: Fair enough, but I wonder "what" to include in the recipe. If I put too much salt or leave the oven for many hours at the maximun temperature I'll get a "pasti

(Results) Re: Reducing kernel compilation time

2011-09-25 Thread Camaleón
On Sat, 24 Sep 2011 14:22:33 +, Camaleón wrote: (...) > Any trick? Yes, I got many useful tricks, a big thanks to all. Okay, let's get the numbers. I followed Sven and Stephen's advice so I: - Used "make localmodconfig" to generate the ".config" file - Appended "CONCURRENCY_LEVEL=2" to "m

Re: Reducing kernel compilation time

2011-09-25 Thread David Witbrodt
> From: Stan Hoeppner > Sent: Sun, September 25, 2011 11:27:13 AM > Subject: Re: Reducing kernel compilation time > > > If that option had existed when I > > was learning about this, it would have saved me many, many > > hours! > > But then you would

Re: Reducing kernel compilation time

2011-09-25 Thread Camaleón
On Sun, 25 Sep 2011 10:18:53 -0500, Stan Hoeppner wrote: > On 9/25/2011 9:30 AM, Camaleón wrote: > >> Fair enough, but I wonder "what" to include in the recipe. If I put too >> much salt or leave the oven for many hours at the maximun temperature >> I'll get a "pastiche" nobody will be able to ea

Re: Reducing kernel compilation time

2011-09-25 Thread Camaleón
On Sun, 25 Sep 2011 08:16:53 -0700, David Witbrodt wrote: >> From: Camaleón > >> Sent: Sun, September 25, 2011 10:30:30 AM Subject: Re: Reducing kernel >> compilation time >> >> >> > I'd guess you're including the kitchen sink. Don't

Re: Reducing kernel compilation time

2011-09-25 Thread Stan Hoeppner
On 9/25/2011 10:16 AM, David Witbrodt wrote: If that option had existed when I was learning about this, it would have saved me many, many hours! But then you wouldn't have learned as much. Easier is not always better, even though it often seems so. -- Stan -- To UNSUBSCRIBE, email to deb

Re: Reducing kernel compilation time

2011-09-25 Thread Stan Hoeppner
On 9/25/2011 9:30 AM, Camaleón wrote: Fair enough, but I wonder "what" to include in the recipe. If I put too much salt or leave the oven for many hours at the maximun temperature I'll get a "pastiche" nobody will be able to eat... Have you used make-menuconfig? Simply go through all the hard

Re: Reducing kernel compilation time

2011-09-25 Thread David Witbrodt
> From: Camaleón > Sent: Sun, September 25, 2011 10:30:30 AM > Subject: Re: Reducing kernel compilation time > > > > I'd guess you're including the kitchen sink. Don't build the hundreds > > of driver modules your machines won't ever us

Re: Reducing kernel compilation time

2011-09-25 Thread Brian
On Sun 25 Sep 2011 at 08:21:17 -0400, Stephen Powell wrote: [Snipped: Some advantages of using kernel-package] > But, to each his own. Whatever floats your boat, man. Indeed, but the deck is stacked against kernel-package when it is associated with 'deprecated' in the minds of users. It may not

Re: Reducing kernel compilation time

2011-09-25 Thread Camaleón
On Sat, 24 Sep 2011 16:15:51 -0500, Stan Hoeppner wrote: > On 9/24/2011 9:22 AM, Camaleón wrote: (...) >> I don't need nothing special, just to be able to boot the system, test >> the staging drivers and then remove/compile a new kernel again so >> wasting the less time in the process would be g

Re: Reducing kernel compilation time

2011-09-25 Thread Camaleón
On Sun, 25 Sep 2011 08:25:19 -0400, Tom H wrote: > On Sun, Sep 25, 2011 at 7:53 AM, Camaleón wrote: >> >> In fact, I already have a set of tools installed (along with >> "fakeroot", that "kernel-package") because I'm following Debian >> Installation Guide instructions: >> >> http://d-i.alioth.deb

Re: Reducing kernel compilation time

2011-09-25 Thread Camaleón
On Sun, 25 Sep 2011 08:30:36 -0400, Stephen Powell wrote: > On Sun, 25 Sep 2011 07:53:59 -0400 (EDT), Camaleón wrote: >> Stephen Powell wrote: >>> If you decide to try kernel-package, make sure that you apply the >>> patch file listed in the web page. It won't work properly with a >>> version 3 k

Re: Reducing kernel compilation time

2011-09-25 Thread Stephen Powell
On Sun, 25 Sep 2011 07:53:59 -0400 (EDT), Camaleón wrote: > Stephen Powell wrote: >> If you decide to try kernel-package, make sure that you apply the patch >> file listed in the web page. It won't work properly with a version 3 >> kernel unless you do. > > Hum... you mean the one for EDID? I've

Re: Reducing kernel compilation time

2011-09-25 Thread Tom H
On Sun, Sep 25, 2011 at 7:53 AM, Camaleón wrote: > > In fact, I already have a set of tools installed (along with "fakeroot", > that "kernel-package") because I'm following Debian Installation Guide > instructions: > > http://d-i.alioth.debian.org/manual/en.i386/ch08s06.html There's also the kern

Re: Reducing kernel compilation time

2011-09-25 Thread Stephen Powell
On Sun, 25 Sep 2011 03:42:24 -0400 (EDT), Elimar Riesebieter wrote: > > Isn't [1] the proper way to build Debian kernels? > > [1] http://kernel-handbook.alioth.debian.org/ch-common-tasks.html That depends on your definition of "proper". The kernel handbook, not surprisingly, is maintained by th

Re: Reducing kernel compilation time

2011-09-25 Thread Camaleón
On Sat, 24 Sep 2011 14:13:57 -0400, Stephen Powell wrote: > On Sat, 24 Sep 2011 12:18:47 -0400 (EDT), Camaleón wrote: >> >> What do you mean by "kernel-package"? Debian's vanilla kernel? > > "kernel-package" is the name of a Debian package, as in > >aptitude install kernel-package > > It i

Re: Reducing kernel compilation time

2011-09-25 Thread Tom H
On Sat, Sep 24, 2011 at 2:20 PM, Stephen Powell wrote: > On Sat, 24 Sep 2011 13:56:35 -0400 (EDT), Tom H wrote: >> >> CONCURRENCY_LEVEL=$(getconf _NPROCESSORS_ONLN) >> although "getconf _NPROCESSORS_ONLN" on an atom's probably "1"; but >> you never know... >> >> You can also pass "INSTALL_MOD_STRI

Re: Reducing kernel compilation time

2011-09-25 Thread Stan Hoeppner
On 9/25/2011 2:42 AM, Elimar Riesebieter wrote: * Stephen Powell [110924 14:13 -0400]: On Sat, 24 Sep 2011 12:18:47 -0400 (EDT), Camaleón wrote: What do you mean by "kernel-package"? Debian's vanilla kernel? "kernel-package" is the name of a Debian package, as in aptitude install kerne

Re: Reducing kernel compilation time

2011-09-25 Thread Stan Hoeppner
On 9/24/2011 6:55 PM, Stephen Powell wrote: On Sat, 24 Sep 2011 17:15:51 -0400 (EDT), Stan Hoeppner wrote: 5 hours? Did you say 5 hours? I have a 10 year old dual Mendocino 550 machine with only 384MB of PC100 that takes about 30 minutes to compile my custom kernels using make -j2. I'd guess

Re: Reducing kernel compilation time

2011-09-25 Thread Elimar Riesebieter
* Stephen Powell [110924 14:13 -0400]: > On Sat, 24 Sep 2011 12:18:47 -0400 (EDT), Camaleón wrote: > > > > What do you mean by "kernel-package"? Debian's vanilla kernel? > > "kernel-package" is the name of a Debian package, as in > >aptitude install kernel-package Isn't [1] the proper way

Re: Reducing kernel compilation time

2011-09-24 Thread Stephen Powell
On Sat, 24 Sep 2011 17:15:51 -0400 (EDT), Stan Hoeppner wrote: > > 5 hours? Did you say 5 hours? > > I have a 10 year old dual Mendocino 550 machine with only 384MB of PC100 > that takes about 30 minutes to compile my custom kernels using make -j2. > > I'd guess you're including the kitchen si

Re: Reducing kernel compilation time

2011-09-24 Thread Stan Hoeppner
On 9/24/2011 11:01 AM, Stephen Powell wrote: On Sat, 24 Sep 2011 10:22:33 -0400 (EDT), Camaleón wrote: Intel's Atom N455 I'm not familiar with the capabilities of your hardware, but if you have multiple CPUs ("cores") The Atom 455 is a single core 64/32 bit CPU with HyperThreading, 1.66G

Re: Reducing kernel compilation time

2011-09-24 Thread Ralf Mardorf
On Sat, 2011-09-24 at 22:44 +0200, Ralf Mardorf wrote: > On Sat, 2011-09-24 at 20:20 +, > debian-user-digest-requ...@lists.debian.org wrote: > > CONCURRENCY_LEVEL=2 > > I didn't read the thread, just one mail. > > For my 2.1 GHz dual-core Athlon CONCURRENCY_LEVEL does minimal reduce > compili

Re: Reducing kernel compilation time

2011-09-24 Thread Stan Hoeppner
On 9/24/2011 9:22 AM, Camaleón wrote: Hello, I had to compile the latest upstream kernel sources to make some debugging with my wifi drivers (from staging) and discovered that compilation took ~5 hours. That's much for testing purposes. Compilation takes place in a netbook governed by Intel's

Re: Reducing kernel compilation time

2011-09-24 Thread Ralf Mardorf
On Sat, 2011-09-24 at 20:20 +, debian-user-digest-requ...@lists.debian.org wrote: > CONCURRENCY_LEVEL=2 I didn't read the thread, just one mail. For my 2.1 GHz dual-core Athlon CONCURRENCY_LEVEL does minimal reduce compiling time. I suspect that consequently reducing unneeded stuff would be m

Re: Reducing kernel compilation time

2011-09-24 Thread Stephen Powell
On Sat, 24 Sep 2011 13:56:35 -0400 (EDT), Tom H wrote: > > CONCURRENCY_LEVEL=$(getconf _NPROCESSORS_ONLN) > although "getconf _NPROCESSORS_ONLN" on an atom's probably "1"; but > you never know... > > You can also pass "INSTALL_MOD_STRIP=1" to make-kpkg so that the "make > modules_install" step st

Re: Reducing kernel compilation time

2011-09-24 Thread Stephen Powell
On Sat, 24 Sep 2011 12:18:47 -0400 (EDT), Camaleón wrote: > > What do you mean by "kernel-package"? Debian's vanilla kernel? "kernel-package" is the name of a Debian package, as in aptitude install kernel-package It is not a kernel. It is a collection of scripts, configuration files, etc. t

Re: Reducing kernel compilation time

2011-09-24 Thread Tom H
On Sat, Sep 24, 2011 at 12:01 PM, Stephen Powell wrote: > On Sat, 24 Sep 2011 10:22:33 -0400 (EDT), Camaleón wrote: >> >> I had to compile the latest upstream kernel sources to make some >> debugging with my wifi drivers (from staging) and discovered that >> compilation took ~5 hours. >> >> That's

Re: Reducing kernel compilation time

2011-09-24 Thread Sven Joachim
On 2011-09-24 18:04 +0200, Camaleón wrote: > On Sat, 24 Sep 2011 17:18:08 +0200, Sven Joachim wrote: > >> Plug in any hardware that you intend to use with your netbook and then >> run "make localmodconfig". This works from Linux 2.6.32 onwards¹. > > I'll test that, it sounds very good :-) > > (I

Re: Reducing kernel compilation time

2011-09-24 Thread Camaleón
On Sat, 24 Sep 2011 12:01:07 -0400, Stephen Powell wrote: > On Sat, 24 Sep 2011 10:22:33 -0400 (EDT), Camaleón wrote: (...) >> I don't need nothing special, just to be able to boot the system, test >> the staging drivers and then remove/compile a new kernel again so >> wasting the less time in t

Re: Reducing kernel compilation time

2011-09-24 Thread Camaleón
On Sat, 24 Sep 2011 17:18:08 +0200, Sven Joachim wrote: > On 2011-09-24 16:22 +0200, Camaleón wrote: (...) >> I don't need nothing special, just to be able to boot the system, test >> the staging drivers and then remove/compile a new kernel again so >> wasting the less time in the process would

Re: Reducing kernel compilation time

2011-09-24 Thread Stephen Powell
On Sat, 24 Sep 2011 10:22:33 -0400 (EDT), Camaleón wrote: > > I had to compile the latest upstream kernel sources to make some > debugging with my wifi drivers (from staging) and discovered that > compilation took ~5 hours. > > That's much for testing purposes. > > Compilation takes place in a

Re: Reducing kernel compilation time

2011-09-24 Thread Sven Joachim
On 2011-09-24 16:22 +0200, Camaleón wrote: > I had to compile the latest upstream kernel sources to make some > debugging with my wifi drivers (from staging) and discovered that > compilation took ~5 hours. > > That's much for testing purposes. > > Compilation takes place in a netbook governed b

Re: Reducing kernel compilation time

2011-09-24 Thread Camaleón
On Sat, 24 Sep 2011 16:26:34 +0200, Mathieu Malaterre wrote: > On Sat, Sep 24, 2011 at 4:22 PM, Camaleón wrote: (...) >> I don't need nothing special, just to be able to boot the system, test >> the staging drivers and then remove/compile a new kernel again so >> wasting the less time in the pr

Re: Reducing kernel compilation time

2011-09-24 Thread Mathieu Malaterre
I would build only the relevant kernel *module*, I want to play with (or imported from linux-next): http://wiki.debian.org/HowToRebuildAnOfficialDebianKernelPackage HTH On Sat, Sep 24, 2011 at 4:22 PM, Camaleón wrote: > Hello, > > I had to compile the latest upstream kernel sources to make some