码迷,mamicode.com
首页 > 其他好文 > 详细

swap交换分区概念

时间:2018-04-20 18:50:33      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:ping   sources   source   int   move   call   wap   style   combine   

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交换分区概念

标签:ping   sources   source   int   move   call   wap   style   combine   

原文地址:https://www.cnblogs.com/cgc0415/p/8892530.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!