summaryrefslogtreecommitdiff
path: root/security/integrity/ima/ima_queue_keys.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-04-26 17:45:01 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-05-06 03:53:53 +0300
commita373baed5a9dca65a4d9fa55e61800a18c9936f1 (patch)
tree5871fabe73f41669fddf6d6d4230bfcdc40edddf /security/integrity/ima/ima_queue_keys.c
parent3be51060599ff01899b6d8c3f8aca456506cf5ea (diff)
downloadlinux-a373baed5a9dca65a4d9fa55e61800a18c9936f1.tar.xz
mm: delay the check for a NULL anon_vma
Instead of checking the anon_vma early in the fault path where all page faults pay the cost, delay it until we know we're going to need the anon_vma to be filled in. This will have a slight negative effect on the first fault in an anonymous VMA, but it shortens every other page fault. It also makes the code slightly cleaner as the anon and file backed fault handling look more similar. The Intel kernel test bot reports a 3x improvement in vm-scalability throughput with the small-allocs-mt test. This is clearly an extreme situation that won't be replicated in any real-world workload, but it's a nice win. https://lore.kernel.org/all/202404261055.c5e24608-oliver.sang@intel.com/ Link: https://lkml.kernel.org/r/20240426144506.1290619-3-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Suren Baghdasaryan <surenb@google.com> Cc: David Hildenbrand <david@redhat.com> Cc: Jann Horn <jannh@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'security/integrity/ima/ima_queue_keys.c')
0 files changed, 0 insertions, 0 deletions