Linux & OS Internals
Process descriptors
Each process has a file-descriptor table referencing open file descriptions, including files and sockets; descriptors are small integer handles, not the underlying file objects.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A command to try yourself
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Linux & OS Internals
- Signals: SIGTERM, SIGKILL and killBeginner · 5 min
kill -9 works every time, which is exactly the problem. See what a signal is, what a program does with SIGTERM, and why the order matters.
- Zombie and orphan processesBeginner · 5 min
ps lists 31,000 entries marked defunct and new jobs cannot start. Learn what a zombie is, why kill -9 does nothing to it, and how it differs from an orphan.
- cgroup memory limits: memory.max and exit code 137Beginner · 5 min
A Java container with a 512 MiB limit restarts every few hours with exit code 137 while the host has 20 GB free. The limit is a file in a cgroup, and the evidence is in…
- memory.highBeginner · 4 min
memory.high throttles memory use under pressure.
- memory.oom.groupBeginner · 4 min
memory.oom.group controls group-wide OOM victim killing.
- Why "free" memory looks low: the page cacheBeginner · 5 min
A 64 GB server shows 700 MB free and an alert fires. Nothing is wrong, and here is the field you should be alerting on.