Linux's Swap Space Partition

xiaoxiao2021-03-06  60

The switching partition is used when memory is insufficient, and the system is stored in the operation of running program data. I don't know how to compare with virtual memory under Windows.

How much better SWAP partition is better? At least should be as large as your system, it is the best choice for memory. (WINDOWS virtual memory is not true?)

There are multiple SWAP partitions to be allowed on Linux. If you have a disk partition next to the SWAP partition, you can replace it directly with a larger swap partition, if you don't have no relationship, you can create a second place anywhere. Swap partitions, they don't have to be next to. Linux supports up to 8 SWAP partitions.

If there are multiple physical hard drives, you can build multiple SWAP partitions on multiple physical hard drives, which is more efficient than establishing a SWAP partition on a physical hard disk.

If you think your hard disk space is not enough, you don't want to create a SWAP partition separately, which is also possible. You can build a SWAP file on an existing disk partition, but there are two bad places: 1. Built SWAP files on existing partitions will slow down from separate SWAP partitions. 2. Possible data at runtime

Command is: DD if = / dev / zero of = BS = count =

转载请注明原文地址:https://www.9cbs.com/read-118391.html

New Post(0)