Provide swap space for a Linux system.
Describe its central purpose.
Which description is correct?
Swap provides backing storage for less-used memory pages and may also store a hibernation image, depending on the design.
Detailed explanation
Incorrect. EFI applications belong on an EFI System Partition.
Incorrect. EFI applications belong on an EFI System Partition.
Incorrect. Normal user files belong on filesystems such as /home.
Incorrect. Normal user files belong on filesystems such as /home.
Correct. Swap is an auxiliary area for paging less-used memory and related functions.
Correct. Swap is an auxiliary area for paging less-used memory and related functions.
Incorrect. Kernel modules are stored and loaded from normal filesystem paths.
Incorrect. Kernel modules are stored and loaded from normal filesystem paths.
Try it yourself
An example you can run in a temporary verification environment.
swapon --show --output=NAME,TYPE,SIZE,USED,PRIO 2>/dev/null || trueExpected result
有効なswap領域の一覧。未設定なら空Key points
- Swap backs memory
- It can be a partition or file
- The required size depends on use
Notes
- Environment: Linux / util-linux swapon
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.