* Highmem in architechtures with cache alias
@ 2011-02-07 9:02 Mikael Starvik
2011-02-10 23:23 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Mikael Starvik @ 2011-02-07 9:02 UTC (permalink / raw)
To: linux-mips@linux-mips.org
Hi!
It is clearly stated in http://www.linux-mips.org/wiki/Highmem that the MIPS kernel
can´t user highmem on machines with cache aliasing and I understand the reason. So,
what is the solution here? Switch to 16k pages? Or are there other ways to get more
memory on a machine with cache aliases?
/Mikael
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Highmem in architechtures with cache alias
2011-02-07 9:02 Highmem in architechtures with cache alias Mikael Starvik
@ 2011-02-10 23:23 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2011-02-10 23:23 UTC (permalink / raw)
To: Mikael Starvik; +Cc: linux-mips@linux-mips.org
On Mon, Feb 07, 2011 at 10:02:34AM +0100, Mikael Starvik wrote:
> It is clearly stated in http://www.linux-mips.org/wiki/Highmem that the
> MIPS kernel can´t user highmem on machines with cache aliasing and I
> understand the reason. So, what is the solution here? Switch to 16k
> pages? Or are there other ways to get more memory on a machine with cache
> aliases?
This is an implementation restriction. I did the original MIPS highmem
work in early 2002 for a company which didn't want to be the first through
the 64-bit minefield; I was using a Sibyte Swarm evaluation board back then
and its SB1 cores happen not to have aliases so I was able to take a few
short cuts.
For many years after this virtually everybody was wise enough to go for
64-bit hardware and kernel for large memory systems so interest in
removing this restriction only came up like last year.
16k pages are probably a good idea anyway; in most cases they provide a
significant performance boost. Details depend on the exact workload.
However I should mention that the combination of page sizes other than 4k
with highmem also is untested afaics.
The solution for the alias problem is the right mix of cacheflushes at
the right places and a strategy to avoid aliases where possible - business
as usual. ARM already supports highmem with aliases.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-10 23:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-07 9:02 Highmem in architechtures with cache alias Mikael Starvik
2011-02-10 23:23 ` Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.