Вход на сайт

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

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

Linux's Early Boot-Time Physical Memory Allocator Sees Big Speed-Up: ~268s To ~50ms

Дата публикации: 24-10-2026 13:00:00

Sent out today for the Linux 7.4 kernel were a set of memblock improvements. Most notable is a performance optimization within mm/memblock.c that implements the kernel's early boot-time physical memory allocator that is used prior to the bring-up of the full page allocator...

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

LINUX KERNEL

Sent out today for the Linux 7.4 kernel were a set of memblock improvements. Most notable is a performance optimization within mm/memblock.c that implements the kernel's early boot-time physical memory allocator that is used prior to the bring-up of the full page allocator.

The performance improvement is using a binary search within the memblock_add_range() and memblock_isolate_range() functions. Google engineer Tarun Sahu spotted that the mm/memblock.c code was using a linear search for finding candidate regions rather than a binary search.

When under heavy fragmentation like making use of the Kernel Handover "KHO" functionality (that in turn is used by the Live Update Orchestrator and friends) with tons of disjoint folios, that scanning process with a linear search ends up taking a very significant amount of time.

The patch notes that using a binary search for worse-case complexity ends up cutting the KHO memory retriveal time from around 238 seconds to around 50 milliseconds!

"Using binary search reduces the worst-case complexity to O(N log N) (and O(N) for sequential appends), cutting KHO memory retrieval time from ~268s to ~50ms."

Surprised the linear search lasted this long in the kernel code, then again this just impacts the early boot time memory allocator.

Linux 7.4 memblock benchmark improvement

That optimization was sent out today as part of the memblock pull request for the Linux 7.4 kernel.

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

#Наименование новостиТональностьИнформативностьДата публикации
1Linux 7.4 Merges Slab Updates With A Nice Performance Improvement012.1523-10-2026
2Linux 7.4 Brings Hibernation Improvement For Helping Meet Energy Certifications013.8923-10-2026
3Linux 7.4 Block Updates Range From Floppy Disk Driver Fixes To Apple M4 NVMe Support06.7825-10-2026
4Linux 7.4 Workqueue Changes Bring A "10 To 100 Times Faster" Optimization015.1623-10-2026
5Linux Kernel Build Times Ready To Be Significantly Reduced With Latest Patches06.0218-09-2026
6Simple Optimization For Linux 7.4 Can Open Files For Reading ~39% Faster09.919-09-2026
7539 MM Patches Merged For Linux 7.4 From Optimizations To More DAMON014.6324-10-2026
8Linux 7.4 Removing Its Broken & Rarely Touched Code For ARM64 Big Endian017.619-10-2026
9IOmap Improvement For Linux 7.3 Takes EXT4 & XFS Performance Further013.6918-08-2026
10tlbi= Boot Option Submitted Ahead Of Linux 7.2 Kernel Release08.5516-08-2026

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