swap交换分区概念

Posted cgc0415

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了swap交换分区概念相关的知识,希望对你有一定的参考价值。

Linux divides its physical RAM (random access memory) into chucks of memory called pages. Swapping is the process whereby a page of memory is copied to the preconfigured space on the hard disk, called swap space, to free up that page of memory. The combined sizes of the physical memory and the swap space is the amount of virtual memory available.

Swap space in Linux is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space. While swap space can help machines with a small amount of RAM, it should not be considered a replacement for more RAM. Swap space is located on hard drives, which have a slower access time than physical memory.Swap space can be a dedicated swap partition (recommended), a swap file, or a combination of swap partitions and swap files.

以上是关于swap交换分区概念的主要内容,如果未能解决你的问题,请参考以下文章

linux设置开启swap交换分区基本命令(虚拟内存)

linux中对swap分区的管理

新建交换分区

利用分区来扩展swap交换分区空间

20181213交换分区管理 Swap

Linux下硬盘分区:根分区(/)交换分区(/swap)和/boot分区