public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]Uncompressing Linux... Out of memory: fixed by increased HEAP_SIZE
@ 2004-10-25 14:28 Karsten Wiese
  2004-10-25 14:30 ` Ingo Molnar
  0 siblings, 1 reply; 3+ messages in thread
From: Karsten Wiese @ 2004-10-25 14:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ingo Molnar

Hi,

booting newest 2.6.9 experimental kernels, I frequently encountered 
"Uncompressing Linux... Out of memory --System halted"
In some mail archive I found the (obvious ;-) solution: Increase HEAP_SIZE.

Here in line 122 of arch/i386/boot/compressed/misc.c this
	#define HEAP_SIZE             0x4000
instead of 
	#define HEAP_SIZE             0x3000
made 2.6.9-mm1-RT-U10.3 boot again.

0x3400 or 03800 might also do it, haven't checked.

Best,
Karsten

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH]Uncompressing Linux... Out of memory: fixed by increased HEAP_SIZE
  2004-10-25 14:28 [PATCH]Uncompressing Linux... Out of memory: fixed by increased HEAP_SIZE Karsten Wiese
@ 2004-10-25 14:30 ` Ingo Molnar
  2004-10-25 19:43   ` karsten wiese
  0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2004-10-25 14:30 UTC (permalink / raw)
  To: Karsten Wiese; +Cc: linux-kernel


* Karsten Wiese <annabellesgarden@yahoo.de> wrote:

> booting newest 2.6.9 experimental kernels, I frequently encountered 
> "Uncompressing Linux... Out of memory --System halted"
> In some mail archive I found the (obvious ;-) solution: Increase HEAP_SIZE.
> 
> Here in line 122 of arch/i386/boot/compressed/misc.c this
> 	#define HEAP_SIZE             0x4000
> instead of 
> 	#define HEAP_SIZE             0x3000
> made 2.6.9-mm1-RT-U10.3 boot again.

ah! Makes sense. Did you have LATENCY_TRACE enabled? That compiles the
kernel with -pg which creates a fatter stackframe.

	Ingo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH]Uncompressing Linux... Out of memory: fixed by increased HEAP_SIZE
  2004-10-25 14:30 ` Ingo Molnar
@ 2004-10-25 19:43   ` karsten wiese
  0 siblings, 0 replies; 3+ messages in thread
From: karsten wiese @ 2004-10-25 19:43 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-kernel

 --- Ingo Molnar <mingo@elte.hu> schrieb: 
> 
> > booting newest 2.6.9 experimental kernels, I frequently
> encountered 
> > "Uncompressing Linux... Out of memory --System halted"
> > In some mail archive I found the (obvious ;-) solution:
> Increase HEAP_SIZE.
> > 
> > Here in line 122 of arch/i386/boot/compressed/misc.c
> this
> > 	#define HEAP_SIZE             0x4000
> > instead of 
> > 	#define HEAP_SIZE             0x3000
> > made 2.6.9-mm1-RT-U10.3 boot again.
> 
> ah! Makes sense. Did you have LATENCY_TRACE enabled? That
> compiles the
> kernel with -pg which creates a fatter stackframe.
> 
Only the malloc() called by gunzip() called by
decompress_kernel() is influenced by this HEAP_SIZE.
gunzip()'s internal work data is stored in that heap.
This only is in effect before the kernel "really" boots,
no?
LATENCY_TRACE is indeed off, ...but can gunzip()'s heap
needs be easier answered by a fatter stackframe (at
decompression time!)?

Thanks,
Karsten


	

	
		
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-10-25 19:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25 14:28 [PATCH]Uncompressing Linux... Out of memory: fixed by increased HEAP_SIZE Karsten Wiese
2004-10-25 14:30 ` Ingo Molnar
2004-10-25 19:43   ` karsten wiese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox