# Big Picture

内存回收有那么点儿复杂，也涉及到了系统中很多地方。为了对这些做一个梳理，我整理了回收的大图。这样可以对全局有个了解。

下图中左边部分就是所谓的直接回收(direct reclaim)， 右边部分就是kswapd了。

![vmscan](/files/CTO95hxCsCeb10IIa9u5)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://richardweiyang-2.gitbook.io/kernel-exploring/nei-cun-guan-li/00-index-1/03-big_picture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
