nerdexam
CompTIA

XK0-004 · Question #25

A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additional disk space is avai

The correct answer is B. mkswap /swapfile; swapon -a. mkswap : - set up a Linux swap area free: - Display amount of free and used memory in the system fallocalte: - preallocate or deallocate space to a file echo: -display a line of a text

System Management

Question

A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additional disk space is available. Space has been allocated for a swap file. Which of the following should the administrator use to reduce the output of memory messages?

Options

  • Afree : swapoff / swapfile ; swapon -a
  • Bmkswap /swapfile; swapon -a
  • Cfallocate -l 2G /swapfile && swapon -a
  • Decho "1" > /proc/meninfo ; swapon / swapfile

How the community answered

(41 responses)
  • A
    15% (6)
  • B
    76% (31)
  • C
    2% (1)
  • D
    7% (3)

Explanation

mkswap : - set up a Linux swap area free: - Display amount of free and used memory in the system fallocalte: - preallocate or deallocate space to a file echo: -display a line of a text

Topics

#swap space#mkswap#swapon#memory management

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice