黑白文件系统I/O(__GFP_FS)和磁盘I/O(__GFP_IO)的区别 [英] Difference b/w Filesystem I/O (__GFP_FS) and Disk I/O (__GFP_IO)

查看:196
本文介绍了黑白文件系统I/O(__GFP_FS)和磁盘I/O(__GFP_IO)的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在linux内核中知道文件系统I/O(GFP_FS)和磁盘I/O(GFP_IO)有什么区别吗?

推荐答案

文件系统I/O是发生在文件系统上的I/O是很简单的.假设您正在读/写在文件系统上表示的文件.磁盘IO是直接在磁盘上发生的IO.这是块IO.从分层的角度来看,您可以说磁盘IO发生的级别比文件系统IO的级别低.您甚至可以说,文件系统IO 可能被转换为磁盘IO.

It is plain and simple that filesystem I/O is I/O happening on the filesystem. Lets say you are reading/writing on a file which is represented on the filesystem. The disk IO is the IO happening directly on the disk. This is block IO. On a layering standpoint you can say, the disk IO happens at a low level than the file system IO. And you can even say, the filesystem IO may get translated to disk IO.

还可能值得注意的是,如果在缓存的数据/文件上没有关联的磁盘IO或未由磁盘备份的文件系统上没有关联的磁盘IO,则可能发生文件系统io.假设是ramdisk文件系统,当然是/proc/文件系统.

It may also worth notable that the filesystem io may happen without an associated disk IO on cached data/files or for a filesystem which is not backed up by a disk. Say, a ramdisk filesystem, ofcourse the /proc/ filesystem.

这篇关于黑白文件系统I/O(__GFP_FS)和磁盘I/O(__GFP_IO)的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆