Re: Uncached memory access...
- From: Roy L Butler <roy.butler@xxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 12:29:27 -0700
Doug MacKay wrote:
Roy L Butler wrote:Hi,
When mapping or otherwise accessing main memory in an uncached manner,
say for reading from a device, I understand it bypasses cache hits and
reads directly from the memory referenced, but as the reads are
fulfilled, do they then populate the cache? If so, is there a way
around this? Specifically, I'm interested in reading data from a media
stream that I don't want to fill the cache, as it will never be referred
to a second time. I was in a Cell processor presentation where they
mentioned this could be done and am interested if this is a common
feature or "special" to their platform.
Thanks all,
Roy
Its relatively common.
In x86 (and I believe CBE but I haven't dug into its cores much) you
can mark memory regions as uncacheable. The caches are aware of this
page attribute and will not store the data locally on reads or writes
(though you may encounter write-combining of uncacheable addresses).
Another feature that you may want to look at for what you're doing are
the media instructions in place on many cores. Most of these media
extensions include non-cacheable read and write instructions.
I'd recommend taking a look at the architectural programmer's manual
for the cores you're targeting. There should be pages and pages of
information on this.
Thanks for the good info. I'll check out the architectural programmer's manuals of specific CPUs I'm interested in.
Roy
.
- References:
- Uncached memory access...
- From: Roy L Butler
- Re: Uncached memory access...
- From: Doug MacKay
- Uncached memory access...
- Prev by Date: Re: Woodcrest-Benchmarks searched
- Next by Date: Re: Uncached memory access...
- Previous by thread: Re: Uncached memory access...
- Next by thread: Re: Uncached memory access...
- Index(es):
Relevant Pages
|
Loading