内核版本3.18, 内存回收和内存分配连在一起的, 了解下:
what is order in mm:
mel gorman’s book:
the allocator maintains blocks of free pages where each block is a power of two number of pages. The exponen...
kswapd is a background pageout daemon,回收内存。
唤醒的接口是 wake_all_kswapd/wakeup_kswapd,lets check.
/* * This is the 'heart' of the zoned buddy allocator. */struct page *__...
内核zone里有个水位的概念,根据这个水位判断内存压力,从而进行内存回收,版本3.18。
struct zone { /* Read-mostly fields */ /* zone watermarks, access with *_wmark_pages(zone) macros */ unsigned long watermark[NR_WM...