Re: [PATCH] reserve_early end-of-conventional-memory to 1MB II - some numbers to put it into perspective

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Wednesday, February 27, 2008 - 7:38 am

Ingo Molnar wrote:

Just to give some perspective of this:

On my laptop here

 BIOS-e820: 000000000009dc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000d2000 - 0000000000100000 (reserved)

This means it reserves only ~193KB in the 640k-1MB area

With this patch it will reserve 384KB instead. This means 191KB
are lost. While that doesn't sound too much it worth as much as
382 patches that reduce kernel code size by 512bytes or
worth 3820 patches that reduce kernel code by 100 bytes in terms
of memory consumption.

Now such kernel code size patches are always popular, but why undo that
work by throwing away perfectly good memory elsewhere?

Or also the laptop kernel does

Freeing unused kernel memory: 340k freed

This means the 193KB now lost are worth 56% of the complete
memory that is freed by __initdata/__init. Just maintaining
these annotations is a lot of work, but why do all that if we
then throw away than half as much memory as they save so easily?

-Andi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix alignment of early reservation for EBDA, Alexander van Heukelum, (Sun Feb 24, 10:46 am)
Re: [PATCH] Fix alignment of early reservation for EBDA, Ingo Molnar, (Sun Feb 24, 12:41 pm)
Re: [PATCH] Fix alignment of early reservation for EBDA, Alexander van Heukelum, (Sun Feb 24, 1:53 pm)
Re: [PATCH] Fix alignment of early reservation for EBDA, H. Peter Anvin, (Sun Feb 24, 7:18 pm)
Re: [PATCH] Fix alignment of early reservation for EBDA, Alexander van Heukelum, (Mon Feb 25, 9:54 am)
Re: [PATCH] Fix alignment of early reservation for EBDA, Ingo Molnar, (Mon Feb 25, 10:01 am)
[PATCH] reserve_early end-of-conventional-memory to 1MB, Alexander van Heukelum, (Mon Feb 25, 11:07 am)
Re: [PATCH] reserve_early end-of-conventional-memory to 1MB, H. Peter Anvin, (Mon Feb 25, 11:13 am)
Re: [PATCH] reserve_early end-of-conventional-memory to 1MB, Alexander van Heukelum, (Mon Feb 25, 12:46 pm)
Re: [PATCH] reserve_early end-of-conventional-memory to 1M ..., Andi Kleen, (Wed Feb 27, 7:38 am)
Re: [PATCH] reserve_early end-of-conventional-memory to 1M ..., Alexander van Heukelum, (Wed Feb 27, 1:01 pm)
[PATCH] reserve end-of-conventional-memory to 1MB on 32-bit, Alexander van Heukelum, (Thu Feb 28, 6:13 am)
[RFC] use realmode code to reserve end-of-conventional-mem ..., Alexander van Heukelum, (Thu Feb 28, 6:28 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB on 3 ..., Alexander van Heukelum, (Fri Feb 29, 4:49 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB on 3 ..., Alexander van Heukelum, (Fri Feb 29, 11:38 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB on 3 ..., Alexander van Heukelum, (Fri Feb 29, 11:56 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB on 3 ..., Alexander van Heukelum, (Fri Feb 29, 3:26 pm)
Re: [PATCH] reserve end-of-conventional-memory to 1MB on 3 ..., Alexander van Heukelum, (Sat Mar 1, 9:09 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB on 6 ..., Alexander van Heukelum, (Sat Mar 1, 9:12 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB on 3 ..., Alexander van Heukelum, (Tue Mar 4, 6:31 am)
Re: [RFC] use realmode code to reserve end-of-conventional ..., Jeremy Fitzhardinge, (Tue Mar 4, 8:13 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB on 3 ..., Jeremy Fitzhardinge, (Tue Mar 4, 8:18 am)
Re: [RFC] use realmode code to reserve end-of-conventional ..., Jeremy Fitzhardinge, (Tue Mar 4, 9:02 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB on 3 ..., Alexander van Heukelum, (Tue Mar 4, 9:51 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB on 3 ..., Jeremy Fitzhardinge, (Tue Mar 4, 10:11 am)
Re: [RFC] use realmode code to reserve end-of-conventional ..., Jeremy Fitzhardinge, (Tue Mar 4, 10:44 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB, 32- ..., Alexander van Heukelum, (Tue Mar 4, 11:57 am)
Re: [PATCH] reserve end-of-conventional-memory to 1MB, 64- ..., Alexander van Heukelum, (Tue Mar 4, 12:12 pm)
Re: [RFC] use realmode code to reserve end-of-conventional ..., Jeremy Fitzhardinge, (Wed Mar 5, 9:38 am)
Re: [RFC] use realmode code to reserve end-of-conventional ..., Jeremy Fitzhardinge, (Wed Mar 5, 10:28 am)