Re: Patches for REALLY TINY 386 kernels

2007-07-30 Thread Denis Vlasenko
On Wednesday 18 July 2007 22:04, Andi Kleen wrote: > Better just write less bloated code. Perhaps mandatory bloatometer > runs during -rc*s for kernels with minimal config with public code pig shame > lists > similar to the regression lists are useful. Anyone volunteering? > > I suspect there is a

Re: Patches for REALLY TINY 386 kernels

2007-07-24 Thread Yinghai Lu
On 7/24/07, Adrian Bunk <[EMAIL PROTECTED]> wrote: On Tue, Jul 24, 2007 at 01:50:35PM -0700, Yinghai Lu wrote: > On 7/24/07, Helge Hafting <[EMAIL PROTECTED]> wrote: >> Andi Kleen wrote: >> >> Some people are putting Linux kernels in the "BIOS" (i.e. ROM chip) >> when >> >> using LinuxBIOS (www.l

Re: Patches for REALLY TINY 386 kernels

2007-07-24 Thread Adrian Bunk
On Tue, Jul 24, 2007 at 01:50:35PM -0700, Yinghai Lu wrote: > On 7/24/07, Helge Hafting <[EMAIL PROTECTED]> wrote: >> Andi Kleen wrote: >> >> Some people are putting Linux kernels in the "BIOS" (i.e. ROM chip) >> when >> >> using LinuxBIOS (www.linuxbios.org). It _does_ make a lot of difference >>

Re: Patches for REALLY TINY 386 kernels

2007-07-24 Thread Willy Tarreau
On Wed, Jul 18, 2007 at 08:55:50AM -0700, H. Peter Anvin wrote: > Andi Kleen wrote: > > > >> Already with these patches I can compile a zImage kernel that is 450kb > >> large (890kb decompressed) > > > > The important part is not how big the vmlinux is, but how much > > memory is actually used af

Re: Patches for REALLY TINY 386 kernels

2007-07-24 Thread Yinghai Lu
On 7/24/07, Helge Hafting <[EMAIL PROTECTED]> wrote: Andi Kleen wrote: >> Some people are putting Linux kernels in the "BIOS" (i.e. ROM chip) when >> using LinuxBIOS (www.linuxbios.org). It _does_ make a lot of difference >> there how big the kernel is. At the moment you can't do that with >> any

Re: Patches for REALLY TINY 386 kernels

2007-07-24 Thread Helge Hafting
Andi Kleen wrote: Some people are putting Linux kernels in the "BIOS" (i.e. ROM chip) when using LinuxBIOS (www.linuxbios.org). It _does_ make a lot of difference there how big the kernel is. At the moment you can't do that with anything smaller than a 1 MB chip. But if people could use 512 KB ch

Re: Patches for REALLY TINY 386 kernels

2007-07-21 Thread Oleg Verych
* Date: Wed, 18 Jul 2007 12:00:05 -0700 >> If this is an issue, then changing i386 back to discarding __exit code >> and data at linktime instead of runtime might make a bigger difference. > > What would really make a big difference would be to unspool the > initramfs in such a way that it only r

Re: Patches for REALLY TINY 386 kernels

2007-07-20 Thread Uwe Hermann
On Wed, Jul 18, 2007 at 03:41:02PM -0500, Matt Mackall wrote: > On Wed, Jul 18, 2007 at 10:10:43PM +0200, Andi Kleen wrote: > > > > I was waiting for someone to make that "point" ... > > > > > > > > Every byte you can shave off the compressed kernel image is another > > > byte you can use for us

Re: Patches for REALLY TINY 386 kernels

2007-07-20 Thread Andi Kleen
> Some people are putting Linux kernels in the "BIOS" (i.e. ROM chip) when > using LinuxBIOS (www.linuxbios.org). It _does_ make a lot of difference > there how big the kernel is. At the moment you can't do that with > anything smaller than a 1 MB chip. But if people could use 512 KB chips > becaus

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread H. Peter Anvin
Andi Kleen wrote: >> >> However, compressed size reductions as an abstract thing is useful for >> this market. Just not these particular ones. The first thing to get >> there is probably an LZMA-based compressor instead of gzip. > > That would need more memory again. > Actually, even with a 64

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Andi Kleen
On Wed, Jul 18, 2007 at 01:24:41PM -0700, H. Peter Anvin wrote: > Andi Kleen wrote: > > I was waiting for someone to make that "point" ... > > > >> Every byte you can shave off the compressed kernel image is another > >> byte you can use for userspace on your FLASH. > > > > Now let's see if that

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Matt Mackall
On Wed, Jul 18, 2007 at 10:10:43PM +0200, Andi Kleen wrote: > > I was waiting for someone to make that "point" ... > > > > > Every byte you can shave off the compressed kernel image is another > > byte you can use for userspace on your FLASH. > > Now let's see if that 1MB 386 contains any flash

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread H. Peter Anvin
Andi Kleen wrote: > I was waiting for someone to make that "point" ... > >> Every byte you can shave off the compressed kernel image is another >> byte you can use for userspace on your FLASH. > > Now let's see if that 1MB 386 contains any flash at all. Guesses? > CPUID is hardly something yo

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread John Stoffel
> "Jan" == Jan Engelhardt <[EMAIL PROTECTED]> writes: Jan> On Jul 18 2007 20:20, Andi Kleen wrote: >>> >>> Well, how big the vmlinux file is matters if it doesn't fit in memory >>> with enough time to get to the phase where it is dumping the init >>> sections. >> >> If you don't have enoug

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Andi Kleen
I was waiting for someone to make that "point" ... > > Every byte you can shave off the compressed kernel image is another > byte you can use for userspace on your FLASH. Now let's see if that 1MB 386 contains any flash at all. Guesses? -Andi - To unsubscribe from this list: send the line "u

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread H. Peter Anvin
Matt Mackall wrote: > > That's not the point at all. > > Every byte you can shave off the compressed kernel image is another > byte you can use for userspace on your FLASH. > That wasn't the original poster's point, but yes, that is a real issue. -hpa - To unsubscribe from this list: s

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Matt Mackall
On Wed, Jul 18, 2007 at 08:55:50AM -0700, H. Peter Anvin wrote: > Andi Kleen wrote: > > > >> Already with these patches I can compile a zImage kernel that is 450kb > >> large (890kb decompressed) > > > > The important part is not how big the vmlinux is, but how much > > memory is actually used af

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread H. Peter Anvin
Adrian Bunk wrote: > On Wed, Jul 18, 2007 at 08:55:50AM -0700, H. Peter Anvin wrote: >> Andi Kleen wrote: Already with these patches I can compile a zImage kernel that is 450kb large (890kb decompressed) >>> The important part is not how big the vmlinux is, but how much >>> memory is actu

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Andi Kleen
> And the hypothetical case where RAM is hotplugged and/or recognized after the > kernel has been loaded by the bootloader? I do not claim to be an expert, but RAM hotadd needs working user space to trigger it. Besides it typically comes with cpuhotplug too, so you couldn't even discard __cpuinit

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Jan Engelhardt
On Jul 18 2007 20:38, Andi Kleen wrote: >> >> >> >> Well, how big the vmlinux file is matters if it doesn't fit in memory >> >> with enough time to get to the phase where it is dumping the init >> >> sections. >> > >> >If you don't have enough memory for a few tens of KB of init sections >> >yo

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Andi Kleen
On Wed, Jul 18, 2007 at 08:33:59PM +0200, Adrian Bunk wrote: > On Wed, Jul 18, 2007 at 08:55:50AM -0700, H. Peter Anvin wrote: > > Andi Kleen wrote: > > > > > >> Already with these patches I can compile a zImage kernel that is 450kb > > >> large (890kb decompressed) > > > > > > The important part

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Jan Engelhardt
On Jul 18 2007 20:33, Adrian Bunk wrote: >> Well, how big the vmlinux file is matters if it doesn't fit in memory >> with enough time to get to the phase where it is dumping the init >> sections. *If that is not the issue*, then axing stuff like CPUID is a >> major lose in terms of code maintaina

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Andi Kleen
On Wed, Jul 18, 2007 at 08:29:27PM +0200, Jan Engelhardt wrote: > > On Jul 18 2007 20:20, Andi Kleen wrote: > >> > >> Well, how big the vmlinux file is matters if it doesn't fit in memory > >> with enough time to get to the phase where it is dumping the init > >> sections. > > > >If you don't h

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Adrian Bunk
On Wed, Jul 18, 2007 at 08:55:50AM -0700, H. Peter Anvin wrote: > Andi Kleen wrote: > > > >> Already with these patches I can compile a zImage kernel that is 450kb > >> large (890kb decompressed) > > > > The important part is not how big the vmlinux is, but how much > > memory is actually used af

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Jan Engelhardt
On Jul 18 2007 20:20, Andi Kleen wrote: >> >> Well, how big the vmlinux file is matters if it doesn't fit in memory >> with enough time to get to the phase where it is dumping the init >> sections. > >If you don't have enough memory for a few tens of KB of init sections >you're very unlikely to

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread Andi Kleen
On Wed, Jul 18, 2007 at 08:55:50AM -0700, H. Peter Anvin wrote: > Andi Kleen wrote: > > > >> Already with these patches I can compile a zImage kernel that is 450kb > >> large (890kb decompressed) > > > > The important part is not how big the vmlinux is, but how much > > memory is actually used af

Re: Patches for REALLY TINY 386 kernels

2007-07-18 Thread H. Peter Anvin
Andi Kleen wrote: > >> Already with these patches I can compile a zImage kernel that is 450kb >> large (890kb decompressed) > > The important part is not how big the vmlinux is, but how much > memory is actually used after boot. > > I expect concentrating some of the dynamic data structures wou

Re: Patches for REALLY TINY 386 kernels

2007-07-17 Thread Andi Kleen
Jonathan Campbell <[EMAIL PROTECTED]> writes: > I wrote a set of patches out of concern that even if you compile a 386 > kernel a lot of code irrelevent to legacy machines still > remains. Things like the Pentium TSC register, DMI information, ESCD > parsing, and the use of CPUID do not apply to t

Re: Patches for REALLY TINY 386 kernels

2007-07-17 Thread Matt Mackall
On Tue, Jul 17, 2007 at 12:59:03PM +0200, Jan Engelhardt wrote: > > On Jul 15 2007 14:00, Jonathan Campbell wrote: > > > > These patches were written against the vanilla 2.6.21.1 kernel. They will > > have > > no effect UNLESS you make menuconfig and explicitly enable them there. > > > > > inline

Re: Patches for REALLY TINY 386 kernels

2007-07-17 Thread Jan Engelhardt
On Jul 15 2007 14:00, Jonathan Campbell wrote: > > These patches were written against the vanilla 2.6.21.1 kernel. They will have > no effect UNLESS you make menuconfig and explicitly enable them there. > > inline patches... >+config X86_DONT_CPUID >+ bool "Disable CPUID support" >+ dep

Re: Patches for REALLY TINY 386 kernels

2007-07-16 Thread Bodo Eggert
Satyam Sharma <[EMAIL PROTECTED]> wrote: [zillions of ways to do -X dontdiff] > Or just "cp -al" to create multiple trees at (almost) no disk cost > that won't interfere with each other in any way, and makes the > development process / generating patchsets trifle easier as well ... Beware, some

Re: Patches for REALLY TINY 386 kernels

2007-07-15 Thread Satyam Sharma
[ the off-topic zillion-ways-to-do-same-thing-in-*nix sub-thread ] On 7/16/07, Arnd Bergmann <[EMAIL PROTECTED]> wrote: On Monday 16 July 2007, Satyam Sharma wrote: > > Yeah. I was going for the general principle :) > > Even simpler to add --exclude-from=.gitignore to diff > Or build in a separa

Re: Patches for REALLY TINY 386 kernels

2007-07-15 Thread Arnd Bergmann
On Monday 16 July 2007, Satyam Sharma wrote: > > Yeah. I was going for the general principle :) > > Even simpler to add --exclude-from=.gitignore to diff > Or build in a separate object directory, using the O=$my_objdir Kbuild option. That has a number of addition advantages, e.g. you can easily

Re: Patches for REALLY TINY 386 kernels

2007-07-15 Thread Satyam Sharma
On 7/16/07, Nigel Cunningham <[EMAIL PROTECTED]> wrote: On Monday 16 July 2007 08:45:26 Alan Cox wrote: > > > These patches were written against the vanilla 2.6.21.1 kernel. They > > > will have no effect UNLESS you make menuconfig and explicitly enable > > > them there. > > > > Would you please

Re: Patches for REALLY TINY 386 kernels

2007-07-15 Thread Nigel Cunningham
On Monday 16 July 2007 08:45:26 Alan Cox wrote: > > > These patches were written against the vanilla 2.6.21.1 kernel. They > > > will have no effect UNLESS you make menuconfig and explicitly enable > > > them there. > > > > Would you please make mrproper before preparing the patch? It's harder t

Re: Patches for REALLY TINY 386 kernels

2007-07-15 Thread H. Peter Anvin
Jonathan Campbell wrote: > I wrote a set of patches out of concern that even if you compile a 386 > kernel a lot of code irrelevent to legacy machines still remains. Things > like the Pentium TSC register, DMI information, ESCD parsing, and the > use of CPUID do not apply to these machines, but loo

Re: Patches for REALLY TINY 386 kernels

2007-07-15 Thread Adrian Bunk
On Sun, Jul 15, 2007 at 02:00:29PM -0700, Jonathan Campbell wrote: > I wrote a set of patches out of concern that even if you compile a 386 > kernel a lot of code irrelevent to legacy machines still remains. Things > like the Pentium TSC register, DMI information, ESCD parsing, and the use > of

Re: Patches for REALLY TINY 386 kernels

2007-07-15 Thread Alan Cox
> > These patches were written against the vanilla 2.6.21.1 kernel. They > > will have no effect UNLESS you make menuconfig and explicitly enable > > them there. > > Would you please make mrproper before preparing the patch? It's harder to > read > with all the "Only in..." lines. A lot simpl

Re: Patches for REALLY TINY 386 kernels

2007-07-15 Thread Nigel Cunningham
Hi Jonathan. On Monday 16 July 2007 07:00:29 Jonathan Campbell wrote: > I wrote a set of patches out of concern that even if you compile a 386 > kernel a lot of code irrelevent to legacy machines still remains. Things > like the Pentium TSC register, DMI information, ESCD parsing, and the > use