【问题标题】:Does the whole Inode table gets loaded in the main memory整个 Inode 表是否被加载到主内存中
【发布时间】:2018-01-07 03:11:28
【问题描述】:

我知道 Inode 表存储在硬盘上。 但是当我们打开系统时,整个表会被加载到主内存中还是只是其中的一部分。哪一部分?

【问题讨论】:

  • does the whole table gets loaded in the main memory or just a part of it. - 只有一部分。 And which part? - 执行用户请求所需的(即代表用户打开的文件的 inode)。还执行了一些缓存,请参阅question

标签: linux-kernel filesystems inode


【解决方案1】:

在实际需要 Inode 之前,即在进行文件访问时,才会从磁盘加载它们。仅加载描述当前正在访问的数据的 inode。它们会在内存中停留一段时间(例如,在 Linux VFS inode 缓存中)。但它们仅在必要时加载。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-10
    • 2012-05-07
    • 2015-10-21
    • 1970-01-01
    • 1970-01-01
    • 2012-04-03
    • 2016-07-19
    • 2020-07-24
    相关资源
    最近更新 更多