Kernel Recipes 2023 - Faster & Fewer Page Faults

Поділитися
Вставка
  • Опубліковано 4 жов 2023
  • We have improved the Linux page fault mechanism to reduce the number of faults and handle them more quickly when they do happen. By managing memory in large folios, we reduce the number of page faults. The 4KiB page used on many architectures is simply too small for the amount of memory we need to manage today. When you take a page fault, the kernel can allocate multiple pages and map them all at the same time. By managing VMAs in a Maple Tree, we handle page faults more quickly. The Maple Tree is shallower than the red-black tree and uses the CPU cache more effectively. When you take a page fault, the kernel can find the information it needs to handle the page fault more quickly. These two projects together result in a significant reduction of time spent handling page faults and allow your computer to spend more of its time running user code. No cars were crashed in the execution of this project.
    Matthew Wilcox
  • Наука та технологія

КОМЕНТАРІ • 1

  • @fluke196c
    @fluke196c 7 місяців тому

    Great talk. I used to use LLs extensively in a prior life. I was always weak on data structures and algorithms. I tried some funky things like indexing LL addresses in an array which was .. interesting. Ah, youth.