# clearing up swap space

*WARNING: make sure the memory is enough to put the data back from swap, else system will start killing processes*

To clear up swap space (put the data back into memory) we can do

```
# swapoff -a && swapon -a
```

Because this is quite slow process, it's a good idea to run this inside screen session.


---

# 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://til.yulrizka.com/linux/clearing-up-swap-space.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.
