lkml.org 
[lkml]   [2001]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Missing cache flush.
On Tue, Jun 05, 2001 at 11:17:48AM +0200, Bjorn Wesen wrote:

In the erase case though, yes there should be a flush. However
during the 1-2 seconds it takes to erase a sector, you can with
very high certainity guarantee that the direct-mapped unified 8
kB cache on the CRIS is flushed from any flash references at
all.. I mean, it's one-way as\sociative, during 1-2 seconds it
executes potentially 200 million instructions. So we haven't
really bothered to think about the problem..

For other CPU's it might be more dangerous, although I don't hold
my breath.. 1-2 seconds is a long time when talking about L1
caches.

I don't know about the CRIS (never heard of it, what is it?), but on
an Athlon when benchmarking stuff, I could still see L1 cache hits
from data that was 15 seconds old under certain work-loads (obviously
not gcc!). Does anyone know how old something may exisit in cache
before being written back to RAM?

Even though you potentially execute millions of instructions, they
are often the same ones over and over when the machine is near idle.



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

\
 
 \ /
  Last update: 2005-03-22 12:54    [W:0.118 / U:2.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site