Chapter 5 Flashcards
What is the threshold amount of physical memory, above which allocating swap space is no longer recommended?
A swap partition should always be created, no matter how much physical memory is available.
Which of the following files lists currently active swap partitions?
/proc/swaps
Which file is used to define swap partitions which should be activated automatically as the system boots?
/etc/fstab
What command line would be used to initialize a disk partition to be used as swap space?
mkswap /dev/sda3
What command line would be used to initialize a file to be used as swap space?
mkswap /tmp/swapfile
ext3 is to mount as swap is to ….
swapon
Which of the following lines could be used to define a swap area that should be activated at system startup in the /etc/fstab file?
/dev/sda4 swap swap defaults 0 0
Which of the following commands is used to deactivate a swap area?
swapoff
Which of the following command lines could be used to activate a swap partition with a priority of 3?
swapon -p 3 /dev/sda3
Which of the following commands could confirm that a swap partition is active with a priority of 3?
cat /proc/swaps