4 ms·
Well duh. How is using SRAM going to be any different when you run out of that?
by _a_a_a_ 3y ago
Well duh. How is using SRAM going to be any different when you run out of that?
- smolder 3y agoI was not here arguing in favor of explicitly tiered memory. The implied answer to your original question, "why not have a pin to cache functionality?" is that it's effectively the same as having another OS managed memory layer, which is bad since it complicates the architecture. I'll take some cache misses over having to manage it explicitly.
- AnthonyMouse 3y agoNot only that, if you had enough cache to fit everything then there wouldn't be cache misses, and if you didn't, cache misses are pretty unavoidable. It's like the existing APIs for pining things in memory so they can't get paged out. They have very specific uses and normal programs generally don't use them and shouldn't.
- kimixa 3y agoMuch of the cache "management" can be done with specialist load/store instructions that skip the cache rather than being OS managed like a mapping.