Why not create a swap partition in an embedded device?

Source: Internet
Author: User
Why not create a swap partition on an embedded device-Linux general technology-Linux programming and kernel information? For more information, see the following. We know that there is a very important concept in linux: Virtual Memory. When the physical memory is not enough, some data in the memory can be stored on the hard disk, giving way to the physical memory. We usually create a swap partition when installing linux on a PC. The size is generally set to twice the memory size.

But we cannot see the partition in the embedded device. Why?

We know that in embedded devices, flash cards are generally used as storage devices. Generally, the number of writes to each point is limited, which is about 100,000 times. Therefore, the file system is read-only for embedded devices, and some evenly distributed write operations are used to prolong the life of flash cards.

Swap, when used as the virtual memory, will inevitably lead to frequent read/write, and thus easily lead to shorter flash life in the region. Therefore, it is better not to create a swap partition.

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.