Notes on swap partitions

Source: Internet
Author: User
What we call the swap partition is a partition that is specially prepared for the virtual memory system on the hard disk (external memory), which uses the swap file system, which is the same file system as the EXT2/EXT3/JFFS2 in peace.

physical memory is relatively small compared to virtual memory space. At some point, to access certain areas of virtual memory, the content in those areas must be mapped in physical memory.

sometimes physical memory is already stuffed with data, at this point, you need to access other areas of virtual memory that are not mapped, this time there will be page exchange, that is, the physical memory of the contents of certain pages, first taken out, save to the external memory, here is saved to the swap partition, Space is vacated in such physical memory for mapping.

more knowledge, please also go to the Juliantec website surfing .... 

It may be misleading to say that Linux swap partitions are equivalent to virtual memory in Windows. Windows and Linux, as multitasking operating systems, implement virtual memory technology. The key to realizing virtual memory is the support of external memory, Linux takes a full partition of external memory to exchange, and Windows uses virtual memory file to Exchange. The two principles are consistent, but Linux is better, more effective, easier to achieve the disk on different sides of the disk arm concurrency.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.