UNIX to Linux Porting: A Comprehensive Reference

G.8. Swap Management

Table G-9 shows differences in Linux and Solaris swap management and configuration tasks.

Table G-9. [*] Swap Tasks

Task

Solaris

Linux

Create a swap space

swap -a

mkswap

Enable a swap space

swap -a

swapon

Enable all swap spaces

N/A

swapon -a

Disable a swap space

N/A

swapoff

Disable all swap spaces

N/A

swapoff -a

Delete a swap space

swap -d

N/A

Display the swap space usage

swap -s

swapon -s

Display the swap space status

swap -l

N/A

Set the swap priority level

N/A

swapon -p

[*] Table A-16 of IBM Redbook

Категории