在btrfs文件系统上为archlinux创建swapfiles
swapfile的作用
-
扩展物理内存
-
archwiki上的介绍
Swap space can be used for two purposes, to extend the virtual memory beyond the installed physical memory (RAM), and also forsuspend-to-disk
support.
创建方法
- 创建一个swap子卷
|
|
- 创建一个大小为0的swapfile
|
|
- 修改权限
|
|
- 格式化swapfile
|
|
- 开启swapfile
|
|
- 写入fstab文件,开机自动启动
|
|
以上的有关swapfile的内容可供参考,但是必须在之前挂载主分区