terminal.cab

Linux Basics

guestLevel 1Badges and progress0/100 XP, XP to the next levelStreak0

Module 7: Memory and performance

Find out what is eating memory and CPU and why a process was killed.

Lessons

  1. Reading memory 9 min
  2. Who eats the memory 10 min
  3. 03:12, was it the OOM killer? Detective 10 min

Module check

Four questions on this module. Once you have answered each one correctly, the module counts as passed.

  1. Question 1 of 4free -h shows used 6.7 GiB, free 0.9 GiB, buff/cache 8.4 GiB and available 8.3 GiB, out of 15 GiB. How do you read that?

    Check works once you have chosen an answer.

  2. Question 2 of 4Which vmstat columns show that a machine is actively swapping?

    Check works once you have chosen an answer.

  3. Question 3 of 4Which line of /proc/meminfo tells you how much memory programs can still use?

    Check works once you have chosen an answer.

  4. Question 4 of 4How do you prove that the OOM killer has ended a process?

    Check works once you have chosen an answer.

Cheat sheet

The most important command lines of this module on one A4 page, black and white, to print or keep on your phone.

Cheat sheet module 7, Memory and performance, 8 commands; the same entries are in the lessons as text