Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题:
假设高速缓存比 DRAM 快 10 倍,DRAM 比磁盘快 100,000 倍,闪存比磁盘快 1,000 倍。如果从缓存中读取需要 2 微秒,那么从 DRAM、磁盘和闪存中读取同一个文件需要多长时间?
这是否只需要简单的代数,还是需要任何复杂的计算?
给定时间等价物:
1,000 个闪存 = 磁盘 100,000 德拉姆 = 磁盘 1,000,000 缓存 = 磁盘(由 10 缓存 = DRAM 替代)
现在给定缓存 = 2µs:
磁盘 = 1,000,000 * 2µs = 2s DRAM = 2s / 100,000 = 20µs 闪光 = 2s / 1,000 = 2ms