Re: Embedded linux: With or without MMU
- From: David Brown <david@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Feb 2008 11:41:33 +0100
Xenu The Enturbulator wrote:
Michael Schnell wrote:
(Besides the potential difference in hardware execution speed) With any task switch the OS has to do some work to reprogram the MMU (and with ARM the cache gets invalidated).
Are you sure about this ? If it were true, the performance would completely suck. Remember, ARM was originally designed for desktop use as well, AFAIK .. wasn't it used in those Acorn Archimedes machines ?
The first ARM was for the Acorn Archimedes machines, but it did not have an MMU, and I'm not sure that it even had a cache (it ran at 8 MHz IIRC, and in those days memory was not much slower than cpus).
There are two ways to handle cache and MMU - you can cache by physical address (which causes slower access to the cached data, as addresses need to be translated before accessing the cache), or you can cache by virtual address (which is faster for the cpu to access as the logical addresses are used directly, but it requires a cache flush when changing the MMU maps).
I don't know which method the ARM uses. I've a vague feeling that on larger processors, L1 caches use virtual addresses while L2 (and L3) use physical addresses, but that could be wrong.
.
- Follow-Ups:
- Re: Embedded linux: With or without MMU
- From: Michael Schnell
- Re: Embedded linux: With or without MMU
- References:
- Embedded linux: With or without MMU
- From: MMJ
- Re: Embedded linux: With or without MMU
- From: Michael Schnell
- Re: Embedded linux: With or without MMU
- From: MMJ
- Re: Embedded linux: With or without MMU
- From: Michael Schnell
- Re: Embedded linux: With or without MMU
- From: Xenu The Enturbulator
- Embedded linux: With or without MMU
- Prev by Date: Re: Embedded linux: With or without MMU
- Next by Date: Re: Embedded linux: With or without MMU
- Previous by thread: Re: Embedded linux: With or without MMU
- Next by thread: Re: Embedded linux: With or without MMU
- Index(es):
Relevant Pages
|