Chapter 5 Flashcards

1
Q

What is the threshold amount of physical memory, above which allocating swap space is no longer recommended?

A

A swap partition should always be created, no matter how much physical memory is available.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following files lists currently active swap partitions?

A

/proc/swaps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which file is used to define swap partitions which should be activated automatically as the system boots?

A

/etc/fstab

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command line would be used to initialize a disk partition to be used as swap space?

A

mkswap /dev/sda3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command line would be used to initialize a file to be used as swap space?

A

mkswap /tmp/swapfile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ext3 is to mount as swap is to ….

A

swapon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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?

A

/dev/sda4 swap swap defaults 0 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following commands is used to deactivate a swap area?

A

swapoff

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following command lines could be used to activate a swap partition with a priority of 3?

A

swapon -p 3 /dev/sda3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following commands could confirm that a swap partition is active with a priority of 3?

A

cat /proc/swaps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly