diff options
author | Kefeng Wang <[email protected]> | 2024-10-17 22:17:42 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-11-06 20:11:15 -0800 |
commit | 5a90c155defa684f3a21f68c3f8e40c056e6114c (patch) | |
tree | 6ddaabbe5b09aa40d1cdbbeeaddca33c59adf6eb /tools/perf/scripts/python/intel-pt-events.py | |
parent | 7146de5ff504003ed6f61c39c379b5777e7bed29 (diff) |
tmpfs: don't enable large folios if not supported
tmpfs can support large folios, but there are some configurable options
(mount options and runtime deny/force) to enable/disable large folio
allocation, so there is a performance issue when performing writes without
large folios. The issue is similar to commit 4e527d5841e2 ("iomap: fault
in smaller chunks for non-large folio mappings").
Since 'deny' is for emergencies and 'force' is for testing, performance
issues should not be a problem in real production environments, so don't
call mapping_set_large_folios() in __shmem_get_inode() when large folio is
disabled with mount huge=never option (default policy).
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 9aac777aaf94 ("filemap: Convert generic_perform_write() to support large folios")
Signed-off-by: Kefeng Wang <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Baolin Wang <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions