Linux Labs

Inside the system: resources, kernel, processes / Stage 4 of 12 · step 9 of 10

A kernel setting disappears

medium ~20 min
Not running Starting usually ~20 s
Report a problem

Situation

The lab-sensors service — the sensor-hub application — receives the warehouse sensor readings over UDP. Last week it stopped starting. A colleague raised a kernel parameter for it with a command, and the service worked. The server was rebooted overnight, and lab-sensors fails to start again. The colleague insists the setting was saved to a file.

There is no need to reboot the machine: at boot the kernel parameters come from the same files, in the same order, as with sudo sysctl --system.

Task

  1. The lab-sensors service is running, enabled at boot and answers curl http://127.0.0.1:8126/health. The application code stays the same.
  2. The value survives a reboot: sudo sysctl --system sets the parameter the service needs, and takes it from a file in /etc.
  3. The other parameters from the settings files stay as they were — both in the files and in the running kernel.

There is no internet on the machine; everything you need is already installed. Run administrative commands with sudo.

Visible only to you. Saved as you type.

All notes

Lab goals

0 of 3
  • The lab-sensors service is running, enabled at boot and answering; the application code is unchanged — not checked yet
  • sudo sysctl --system sets net.core.rmem_max to at least 8388608 (8 MiB) — from a file in /etc — not checked yet
  • The other parameters from the settings files are unchanged — in the files and in the kernel — not checked yet

Hints

0 of 3 open · they open one at a time
Hint 1
Show the solution after 3 failed checks

Leave the lab?

The machine keeps running for 10 more minutes, then it is removed. Files are lost; completed goals stay.

Loading…