Linux: Large int array: mmap vs seek file?

后端 未结 4 593
清酒与你
清酒与你 2021-02-05 11:14

Suppose I have a dataset that is an array of 1e12 32-bit ints (4 TB) stored in a file on a 4TB HDD ext4 filesystem..

Consider that the data is most likely random (or at

4条回答
  •  情话喂你
    2021-02-05 12:07

    Probably for a 4TB linear dataset you don't need a file system. I guess a raw device access may bring some performance benefits.

    Also probably there is a way to optimize the queries or the data structure, so that caching could be used more efficiently?

提交回复
热议问题