I hope someone can solve the problem that has plagued me for a long time, thank you!
Or you can give me some reference materials on this topic, thanks again.
Even if you only need a single character in the file, the operating system and the drive will provide you with one Block, and then only allow you to access the requested content, while the rest remains in a specific cache/buffer.
Note: However, the block size may vary from system to system.
p>
To clarify: Yes, any data transferred between the hard disk and RAM is usually sent in blocks instead of actual bytes. The data stored in RAM is usually managed by the page yes; of course the assembly instructions only know the bytes Address.
I have learned that int operating system (Linux), MMU can convert VA (virtual address) to PA (physical address) through the page table data structure, see The up page is the smallest unit of data managed by the VM. But what about the block? Is it the smallest unit of data transferred between the disk and the system memory?
I hope someone can solve the problem that has plagued me for a long time, thank you!
Or you can give me some reference materials on this topic, thanks again.
Generally speaking, hard disks are called “block devices” instead of “character devices” “One of the devices, because the unit of data transmission is in the block.
Even if you only need a single character in the file, the operating system and the drive will provide you with a block, and then only allow you to access the requested content, The rest remain in the specific cache/buffer.
Note: However, the block size may vary from system to system.
Clarification: Yes, in Any data transferred between the hard disk and RAM is usually sent in blocks instead of actual bytes. The data stored in RAM is usually managed by the page yes; of course the assembly instructions only know the byte address.