swapfile(交换文件)指操作系统在磁盘上创建的一个文件,用来充当虚拟内存/交换空间:当物理内存(RAM)不足时,把暂时不用的数据页写入该文件,以释放内存;需要时再读回。
/ˈswɑːp.faɪl/
My laptop uses a swapfile when RAM is full.
我的笔记本在内存用满时会使用交换文件。
On Linux, you can create a swapfile to add swap space without repartitioning the disk, but you should set the right permissions and enable it with system tools.
在 Linux 上,你可以通过创建交换文件来增加交换空间而无需重新分区,不过需要设置正确的权限,并用系统工具启用它。
由 swap(交换;在内存与磁盘间“换入/换出”数据)+ file(文件)构成。该词多见于类 Unix/Linux 语境,用来区别于 swap partition(交换分区)。