Linux swap partition Swap

Source: Internet
Author: User

The Linux swap partition is used to ensure memory overload and is an extension of memory at the disk level, and the swap partition must be a separate partition

To create a process:

1. Create a new partition with the Fdisk command and adjust the partition type to the Linux swap type by using the L command and the T command during creation
2.mkswap format the partition as swap type
3. Enable and disable swap partitions using Swapon and swapoff/dev/partition name
SWAPON-A enable all swap partitions that are defined in/etc/fstab

Loopback Devices Loopback, using software to emulate hardware
If the hardware is not enough, you can create a mirror file on a disk with the DD command to simulate the swap partition

Linux swap partition Swap

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.