gpt4 book ai didi

file-io - 是否存在具有低级前置操作的文件系统?

转载 作者:行者123 更新时间:2023-12-05 01:34:01 29 4
gpt4 key购买 nike

在最低级别上,大多数操作系统文件操作包括打开、关闭、读取、写入、删除以及查找和追加操作,但没有前置操作。

出现这个问题是因为我的一位同事正在处理他生成的大型(几千兆字节)数据日志,他意识到他没有将文件头写入日志文件。尽管他只需要在文件的前面添加一百个字节,但如果不进入 block /扇区文件分配表级别的东西,我们看不出有什么方法可以做到这一点。

是否有任何历史或技术原因表明前置操作不存在,或者会比类似的追加操作更昂贵?

最佳答案

我只知道一篇研究论文描述了这样的事情:“Supporting Insertions and Deletions in Striped Parallel Filesystems”,来自 1992 年。摘要是

The dramatic improvements in the processing rates of parallel computers are turning many compute-bound jobs into IO-bound jobs. Parallel file systems have been proposed to better match IO throughput to processing power. Many parallel file systems stripe files across numerous disks; each disk has its own controller. A striped file can be appended (or prepended) to and maintain its structure. However, a block can't be inserted into or deleted from the middle of the file, since doing so would destroy the regular striping structure of the file. In this paper, we present a distributed file structure that maintains files in indexed striped extents on a message passing multiprocessor. This approach allows highly parallel random and sequential reads, and also allows insertion and deletion into the middle of the file.

您可以在论文中找到更多信息。

关于file-io - 是否存在具有低级前置操作的文件系统?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7080850/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com