• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

lorenzo-stoakes/linux-vm-notes: Notes on the linux kernel VM subsystem.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

lorenzo-stoakes/linux-vm-notes

开源软件地址(OpenSource Url):

https://github.com/lorenzo-stoakes/linux-vm-notes

开源编程语言(OpenSource Language):


开源软件介绍(OpenSource Introduction):

Linux VM Notes

IMPORTANT

These notes are superceded by my new linux mm book project where I will be trying to write a book on the subject based on a recent kernel. All future efforts in this area will be made there. See ljs.io for updates on this.

Contents

  1. Fundamentals - Overview of virtual memory concepts without referencing any actual code or making assumptions about prior knowledge.

  2. Page Tables - Discussion about what page tables are, how they are used in linux, how they are manually traversed, the TLB and finally how page tables are allocated and freed.

  3. Process Address Space - Discussion about virtual memory address space for processes - managing VMAs, process data structure construction/destruction, file/device-backed memory regions, page faulting, demand allocation, COW pages, copying to/from userland.

  4. Transparent Huge Pages - Discussion about the kernel's transparent huge pages functionality.

  5. Out of Memory Killer - Discussion about overcommit and how the OOM killer selects and kills victims.

  6. Process Autopsy - Examining the memory allocation performed by the kernel for a simple userland application.

Introduction

NOTE: I target linux 4.6 and an x86-64 non-NUMA system.

This repo contains my notes on the linux 4.6 VM subsystem. I don't make any claim to their quality or usefulness. They are an ongoing project and as such are a constant work in progress.

This work first originated from the notes I took from the excellent Understanding the Linux Virtual Memory Manager by Mel Gorman which, while great, targets the 2.4.22 kernel (released in 2003.) The obvious next stage of study was to take notes for a recent kernel, which is what these notes are!

I am specifically targeting the 4.6 kernel since it was the mainline version at the time of writing and should remain a sane and stable basis for notes and hacks for the foreseeable future. I may update to newer kernel versions over time depending on whether it makes sense to do so (and if I succeed at this project of course!)

Hacks

Speaking of hacks linux-vm-notes's sister repo, linux-vm-hacks, is where I'm putting exploratory code and patches relating to my exploration of the VM subsystem.

License

These notes are licensed under Creative Commons BY-NC-SA.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap