Skip to content

反合tmpfs huge标志位的正确处理补丁 #277

@GooTal

Description

@GooTal

反合 torvalds/linux@5a90c15

仅在sbinfo->huge为true时,设置tmpfs支持large folio。

解决tmpfs在非大页写入时的性能问题。例如write tmpfs的调用栈:vfs_write -> shmem_file_write_iter -> generic_perform_write,需要判断mapping_max_folio_size,在不开启大页的情况下,仍然返回2M大页(实际只写入4K大小)。这会引入额外的检查、计算开销。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions