From: C Michael Sundius <Michael.sundius@sciatl.com>
To: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
linux-mm@kvack.org, linux-mips@linux-mips.org,
jfraser@broadcom.com, Andy Whitcroft <apw@shadowen.org>
Subject: Re: sparsemem support for mips with highmem
Date: Fri, 15 Aug 2008 09:12:14 -0700 [thread overview]
Message-ID: <48A5AADE.1050808@sciatl.com> (raw)
In-Reply-To: <1218815299.23641.80.camel@nimitz>
Dave Hansen wrote:
> On Fri, 2008-08-15 at 10:03 +0200, Thomas Bogendoerfer wrote:
>
>> On Thu, Aug 14, 2008 at 04:52:34PM -0700, C Michael Sundius wrote:
>>
>>> +
>>> +#ifndef CONFIG_64BIT
>>> +#define SECTION_SIZE_BITS 27 /* 128 MiB */
>>> +#define MAX_PHYSMEM_BITS 31 /* 2 GiB */
>>> +#else
>>> #define SECTION_SIZE_BITS 28
>>> #define MAX_PHYSMEM_BITS 35
>>> +#endif
>>>
>> why is this needed ?
>>
>
> I'm sure Michael can speak to the specifics. But, in general, making
> SECTION_SIZE_BITS smaller is good if you have lots of small holes in
> memory. It does this at the cost if increasing the size of the
> mem_section[] array.
>
> MAX_PHYSMEM_BITS should be as as small as possible, but not so small
> that it restricts the amount of RAM that your systems
> support. i>>?Increasing it has the effect of increasing the size of the
> mem_section[] array.
>
> My guess would be that Michael knew that his 32-bit MIPS platform only
> ever has 2GB of memory. He also knew that its holes (or RAM) come in
> 128MB sections. This configuration lets him save the most amount of
> memory with SPARSEMEM.
>
> Michael, I *guess* you could also include a wee bit on how you chose
> your numbers in the documentation. Not a big deal, though.
>
> -- Dave
>
>
yes, actually the top two bits are used in MIPS as segment bits.
For 64 bit MIPS machines there is a bigger physical address space.
In our case, we used either 128MiB or 256MiB blocks or RAM and they
are separated by holes at least that big. It seemed reasonable that that was
the biggest value that I could make it.
One thing that I had thought about and also came up when my peers here
reviewed my changes was that we probably could put those bit numbers
(at the very least the segment size) in the .config file.
we decided that the power that be might have had a reason for that and
we left it not wanting to meddle with the other arch's.
Dave, do you have a comment about that?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-08-15 16:12 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-14 22:05 sparsemem support for mips with highmem C Michael Sundius
2008-08-14 22:35 ` Dave Hansen
2008-08-14 23:16 ` C Michael Sundius
2008-08-14 23:52 ` C Michael Sundius
2008-08-15 0:02 ` Dave Hansen
2008-08-15 8:03 ` Thomas Bogendoerfer
2008-08-15 15:48 ` Dave Hansen
2008-08-15 16:12 ` C Michael Sundius [this message]
2008-08-15 16:20 ` Dave Hansen
2008-08-15 16:33 ` Thomas Bogendoerfer
2008-08-15 17:16 ` C Michael Sundius
2008-08-15 17:37 ` Dave Hansen
2008-08-15 18:17 ` C Michael Sundius
2008-08-15 18:23 ` Dave Hansen
2008-08-16 20:07 ` Thomas Bogendoerfer
2008-08-18 16:44 ` Randy Dunlap
2008-08-18 21:24 ` Christoph Lameter
2008-08-18 21:27 ` Dave Hansen
2008-08-18 21:33 ` Christoph Lameter
2009-01-16 21:46 ` Michael Sundius
2009-01-21 14:39 ` Christoph Lameter
2008-08-18 21:57 ` David VomLehn
2008-08-19 13:06 ` Christoph Lameter
2008-08-19 23:38 ` David VomLehn
2008-08-19 23:53 ` Jon Fraser
2008-08-20 13:58 ` Christoph Lameter
2008-08-20 19:28 ` David VomLehn
2008-08-20 20:51 ` Christoph Lameter
2008-08-15 16:30 ` Thomas Bogendoerfer
2008-08-26 9:09 ` Andy Whitcroft
2008-10-06 20:15 ` Have ever checked in your mips sparsemem code into mips-linux tree? C Michael Sundius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48A5AADE.1050808@sciatl.com \
--to=michael.sundius@sciatl.com \
--cc=apw@shadowen.org \
--cc=dave@linux.vnet.ibm.com \
--cc=jfraser@broadcom.com \
--cc=linux-mips@linux-mips.org \
--cc=linux-mm@kvack.org \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).