Shared Memory Segment Leak
Diagnose /dev/shm filling up from orphaned shared memory segments.
A advanced Linux challenge worth 20 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
df shows /dev/shm at 99%. A crashed message queue left orphaned shared memory segments. New service instances cannot start.
Your tasks:
- Confirm: df -h /dev/shm
- List all segments: ipcs -m
- Identify orphaned segments: nattch=0 means no process is attached — safe to remove
- Remove orphaned segments: ipcrm -m <shmid> for each
- Verify /dev/shm usage drops
- Write the count of removed segments to /tmp/shm_report.txt
- Run check to validate