Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Simple Optimization For Linux 7.4 Can Open Files For Reading ~39% Faster

Дата публикации: 19-09-2026 16:28:05

More than two years in the making, Linux 7.4 is poised to introduce a patch that amounts to a rather simple optimization to avoid unnecessary/duplicative work that can net some nice gains when opening files for reading...

Основное содержимое страницы с новостью.

LINUX STORAGE

More than two years in the making, Linux 7.4 is poised to introduce a patch that amounts to a rather simple optimization to avoid unnecessary/duplicative work that can net some nice gains when opening files for reading.

Open-source developer Mateusz Guzik has been leading the effort to optimize the Linux kernel's do_open() VFS function used as part of opening files from a pathname lookup. Currently there is a duplicate directory entry "dentry" for translating the path component to the disk inode as part of the file opening process, which Guzik is optimizing out that duplicative dentry.

Guzik explained in the patch that went through five revisions in the past two years:

"Opening a file grabs a reference on the terminal dentry in __legitimize_path(), then another one in do_dentry_open() and finally drops the initial reference in terminate_walk().

That's 2 modifications which don't need to be there -- do_dentry_open() can consume the already held reference instead."

It ends up being a rather significant benefit to avoid that unnecessary work as benchmarking on a 20-core VM with a will-it-scale benchmark of opening the same file in read-only mode, the operations per second increased by 39%.

faster open file benchmark result

It's a bit surprising such low-hanging fruit was left in the Linux kernel this long. At least the improvement should be in the stable kernel before the end of 2026.

The three dozen lines of code patch is queued into VFS.git's vfs-7.4.lookup Git branch. With the patch now in a formal VFS subsystem Git branch and labeled as far as "7.4" material, look for this optimization to be submitted for the upcoming Linux 7.4 merge window.

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Linux Kernel Build Times Ready To Be Significantly Reduced With Latest Patches06.0218-09-2026
2Linux 7.3 SMP Improvement To Help Reduce Latency, Improve Real-Time Performance010.1917-08-2026
3IOmap Improvement For Linux 7.3 Takes EXT4 & XFS Performance Further013.6918-08-2026
4Linux 7.3 Bringing A KCFI Optimization To Benefit Older Intel CPUs09.7910-08-2026
5Important x86 Fixes Merged Ahead Of Linux 7.3-rc405.6320-09-2026
6F2FS With Now Handle Multi-Device Flushes In Parallel With Linux 7.3014.229-08-2026
7Linux 7.3-rc4 To Address Two Unfortunate Bugs With Btrfs09.7220-09-2026
8Linux 7.3 x86/mm Lands Patches To Greatly Improve Latency-Sensitive Workloads09.7622-08-2026
9Linux 7.3 MGLRU Change Helps Executable Code Stays In Memory, Improving Performance011.0827-08-2026
10XFS Lands FALLOC_FL_WRITE_ZEROES For Efficiency Improvement In Linux 7.3014.4318-08-2026

Классификация: Наука. Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 9.9. Источник: www.phoronix.com.