Successful resolution of Ubuntu / Linux to create / increase the exchange zone

welcome to my blog

Last used swap was also kept notes, opened it ... and paid the price for his lazy, this record really about, just simple four-step
Here Insert Picture Description

First, create a temporary file, executetouch temp

The second step, allocate space for temporary files, executesudo fallocate -l 32G temp

The third step is to open up swap space, executesudo mkswap temp

The fourth step, turn on swap space, executesudo swapon temp

See swap space, performed free -h, as shown in FIG.

Here Insert Picture Description

Close swap space, executesudo swapoff swapfile

Published 489 original articles · won praise 101 · Views 150,000 +

Guess you like

Origin blog.csdn.net/littlehaes/article/details/103673909