Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  • Linus Torvalds's avatar
    Merge tag 'vfs-6.11.inode' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs · 2aae1d67
    Linus Torvalds authored
    Pull vfs inode / dentry updates from Christian Brauner:
     "This contains smaller performance improvements to inodes and dentries:
    
      inode:
    
       - Add rcu based inode lookup variants.
    
         They avoid one inode hash lock acquire in the common case thereby
         significantly reducing contention. We already support RCU-based
         operations but didn't take advantage of them during inode
         insertion.
    
         Callers of iget_locked() get the improvement without any code
         changes. Callers that need a custom callback can switch to
         iget5_locked_rcu() as e.g., did btrfs.
    
         With 20 threads each walking a dedicated 1000 dirs * 1000 files
         directory tree to stat(2) on a 32 core + 24GB ram vm:
    
            before: 3.54s user 892.30s system 1966% cpu 45.549 total
            after:  3.28s user 738.66s system 1955% cpu 37.932 total (-16.7%)
    
         Long-term we should pick up the effort to introduce more
         fine-grained locking ...
    2aae1d67