3

我正在开发一个高性能数据库,我想同时直接写入具有多个磁头的特定磁道/柱面。这是如何在 Linux 中通过 SATA 总线使用 SATA 磁盘完成的?您可以推荐任何文档,示例吗?

4

1 回答 1

5

You cannot directly do this. With modern drives the physical drive layout is abstracted away by the drive controller, which for any disk made in the last 20 years is inside the drive itself. The interface seen by the host computer is defined in terms of linear logical block addresses (the C/H/S values reported by the drive are for compatibility only and bear no relation to the hardware layout).

However, it is likely that (in the absence of remapped blocks) simply writing blocks of adjacent logical blocks is the fastest option - that's because drives tend to be optimised to perform fast linear writes.

于 2013-09-03T03:27:23.530 回答