Arlet wrote:
Quote:
How fast are the fastest caches?
Here's
some useful data on a recent high performance CPU. It appears that the L1 cache has a 4 cycle latency, and is only 32kB big. And I assume Intel hardware engineers have pulled every trick from the book to make it as fast as possible on the given technology.
I don't see anything there about nanoseconds. I've seen leaded SRAM ICs down to about 5ns, truly random-access memory, ie, not burst mode with a latency to get the burst going, nor requiring the following bytes to come from successive addresses.
Quote:
Perhaps we could take this to another thread? Something like 'Is a cache ever an advantage?' or less problematic 'When is a cache a good solution?'
Good idea. Go ahead. Much appreciated.
Arlet wrote:
GARTHWILSON wrote:
If you're in the middle of a refill because of a cache miss when an interrupt hits, won't that cause a huge increase in latency?
Possibly, yes. But 'huge' is a relative word. We're still talking nanoseconds here, and there are few real-life events that need 0.1 microsecond interrupt response. And for those cases where this is a requirement, people usually solve this by adding some special purpose hardware, or a dedicated I/O processor.
If you have to load 1K at a time, at 100MB/s (for the sake of discussion), that's 10µs, which is a long, long time to wait for interrupt service on a processor designed for performance high enough to justify having caches. However, if interrupt and direct (non-cache) memory performance is high enough, you can eliminate the separate sound cards, and going to the hypothetical extreme, even video cards or video chip sets, in the hypothetical case of a timer-driven interrupt for each pixel.