Swap partition settings
Set swap Partition
Mkswap
Parameters:
-C check whether a damaged block exists before creating a swap zone.
-F this parameter must be added when a swap zone is created on a Linux instance.
-V0 creates an old-style swap zone, which is the default value.
-V1 creates a new exchange zone.
Enable swap Partition
Swapon
Swapon-a enables all partitions
Parameters:
-H help
-V: display version information
-S displays brief device messages
-A automatically starts all SWAP Devices
-P sets the priority. You can select a number between 0 and 32767. Or add pri = [value] ([value]) in/etc/fstab to 0 ~ 32767), and then you can use swapon-a to start them directly, with priority settings.
Disable swap Partition
Swapoff
Similar to swapon
But it is used to disable swap partitions.
No swap partition is set during linux installation, and you can set it later.
Yes. You only need to create a swap partition (or swap partition image file) and mount the partition (or file) as a swap partition in/etc/fstab.
I want to install OpenSolaris and adjust the swap partition, which is very easy.
How to Create a swap Partition
Step 1: Right-click my computer on the desktop and select Manage ". Step 2: Click the icon on the left of the "disk management" window. This enables partition management to increase or decrease the disk space for each logical drive. Step 3: Right-click the drive and select "shrink ". Enter the size of a new partition. Once created, additional "unallocated" space is displayed in the disk manager. Step 4: Right-click the new free space and select "create simple partition .". Enter the size of your swap partition. Enter the drive letter of your new partition and click "OK ". This is your new swap file partition .. Allocate swap partitions for the virtual memory. Step 1: Click Start in Windows and select set ". Select Control Panel from the menu. Double-click the System icon and click the Advanced Settings tab on the left side of the window. Step 2: click the "advanced" tab. Click "set" in the "performance" section. Click the "advanced" tab in the window and click "change" in the "virtual settings" section ". Step 3: Enter the drive letter of the partition in the first created. You can also select the size of the virtual memory saved on the swap drive partition. The standard size of the virtual memory is 2.5 times the physical RAM volume on the computer. Step 4: click "OK" in the virtual memory dialog box and close the window. Click "OK" to save the settings. Step 5: restart the computer for the change to take effect.