Accessing hard disk

帅比萌擦擦* 提交于 2019-12-21 06:27:08

问题


How does the CPU manage to address the distant memory locations on a several hundred giga bytes of hard disk with registers and data bus of 32 bits only.


回答1:


RAM is directly mapped into the processor's address/data bus. Hard drives are not. They interface to a disk controller (IDE, SATA, SCSI, etc). The disk controller copies data to/from RAM in smaller blocks where the CPU works with it.

There are various addressing schemes for Hard-disks as well, such as LBA, CHS etc, which themselves run into limitations from time to time.

Hence, the processor only needs to access the caches and RAM as the HDD itself is too slow for it. The 32 bit CPU can access just 4 GB of memory at a time, which is the limit on the size of physical memory on these systems. Hence, the sequence is

HDD-->RAM-->Caches-->Processor

Read this and this.



来源:https://stackoverflow.com/questions/9648726/accessing-hard-disk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!