Users connecting to a MySQL database on a Linux system report frequent errors. An administrator reviews the following partial output of the /proc/meminfo and free commands:
total used free
Mem: 1011966 151930 860036
Swap: 1191972 1181716 10256
MemTotal: 1011966 kB
MemFree:
SwapTotal: 1191972 kB
SwapFree: 10256 kB
Which of the following should the administrator do to ensure that the MySQL service will continue to run even if the system runs out of swap space? (Select two.)
Correct Answer: C,D
To prevent MySQL from crashing when swap space is exhausted:
* Option C creates an additional swap file.
* Option D adds an extra swap partition or enables existing one.
* Option A adjusts the overcommit behavior to allow more allocation under low-memory conditions.
Reference:CompTIA Linux+ XK0-005 Official Study Guide, Domain 4.0 - System Management
"Use dd to create swap files and mkswap/swapon to enable them. Modify vm.overcommit_ratio to adjust memory allocation policy, useful in managing memory under stress."