Re: Good news for SPARC/Linux

Marnix Coppens (maco@telindus.be)
Wed, 09 Dec 1998 13:58:32 +0100


At 15:32 8/12/98 -0500, you wrote:
>On Tue, 8 Dec 1998, David S. Miller wrote:
>
>> Memory: 2059720k available (1600k kernel code, 23528k data, 184k init)
>
>WTF did you put in that kernel?! 1.6MB of code and 23.5MB of data?!?
>
>Cheers,
>Alex.
>

Use the source, Alex. In particular, have a look at include/linux/mm.h.
This is a back-of-the-envelope calculation:

For every page, a mem_map_t (struct page) is used to describe it.
I haven't followed this thread, so let's assume this is a 32 bits machine
with pages of 4Kb. You then need 48 bytes for every 4096 bytes of RAM.
For 2059720K, you will have a mem_map of 24137K or something.
If you exclude some memory regions, you get 23528k :-).

Cheers,

Marnix Coppens

---
Reality is that which                   | Artificial Intelligence
when you stop believing                 | stands no chance against
in it doesn't go away. (Philip K. Dick) | Natural Stupidity.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/