This is the second thread of Teacher Song Baohua's "Second Threads of Linux: Process Scheduling and Memory Management", and the CSDN recording of the first thread "Getting through the Linux Thread Series: Processes, Threads and Scheduling" is located at: http://edu. csdn.net/huiyiCourse/series_detail/60?utm_source=wx2
This memory management live broadcast is in the form of WeChat group.
Live broadcast time: 2018.1.29-2.2, a total of five nights from 9:00 to 10:00.
Live format :
WeChat group picture, voice, and Q&A mode (constant screenshots + animation + voice, children's shoes in question can ask questions in the group at any time).
Outline:
1Hardware principle and paging management
CPU addressing memory, virtual address, physical address
MMU and RWX permissions, kernel and user mode permissions
Memory zones: DMA, Normal and HIGHMEM
Linux memory management Buddy algorithm
Contiguous Memory Allocator (CMA)
2
Dynamic allocation and release of memory
slab 、 kmalloc / kfree 、 / proc / slabinfo 和 slabtop
The relationship between user space malloc/free and the kernel
mallopt
vmalloc
Out of memory (OOM), oom_score and oom_adj
Android process life cycle and OOM
3
Process memory consumption and leaks
The VMA of the process.
4 concepts of process memory consumption: vss, rss, pss and uss
Several possibilities of page fault, major and minor
How to define application memory leaks
Application memory leak detection methods: valgrind and addresssanitizer
4
Swapping of memory and I/O
caching page
Detailed explanation of free command
read、write和mmap
file-backed pages and anonymous pages
swap and zRAM
Page Reclamation and LRU
5
Other engineering issues and tuning
DMA and cache coherence
memory cgroup
Performance tuning: page in/out, swapin/out
Some settings of Dirty ratio
swappiness
Registration method (add WeChat Linuxpsmm as a friend), send a registration red envelope, and join the live broadcast group:
Registration red envelope 2017.12.31-2018.1.10 333 yuan
Registration red envelope 2018.1.11-2018.1.17 380 yuan
Registration red envelope 2018.1.18-2018.1.27 420 yuan
Sign up for red envelopes 2018.1.28- 499 yuan