|
|
|
|
|
by rbanffy
5964 days ago
|
|
> mixing up cache with real memory usage. And how real is the use of memory for cache? All this reminds me of a discussion I had with a mainframe admin in the mid-to-late 80's: Me: Look at this numbers. We are using more than 90% of the processor time and about 100% of the memory. Is it normal? Sysadmin: Good. We paid them in full. It's better if we use the whole computer, not just part of it. |
|
Granted, this prefetching is not without downsides. DRAM banks have low-power states you can put them into if they're not being used, so if you can shove all of your used memory into a contiguous region of your physical address space and free up a DIMM's worth, you might be able to save power. This is unlikely, however, because the virtual-to-physical address mapping function is usually designed to spread the load very evenly across all available DRAM banks. One more likely source of power savings is from avoiding the CPU and disk activity of prefetching, especially if prefetch accuracy is low. Most people tend not to care about this though, and want the OS to make their app run faster by using otherwise-idle resources to do prefetching.