XK0-004 · Question #393
A user submitted a ticket stating that the development environment is reporong the device does not have any space left. The user's application creates a lot of small files and does not remove these…
The correct answer is A. There are no free nodes. When an application creates many small files and the system reports no space remaining, inode exhaustion - not disk block depletion - is the most likely cause.
Question
A user submitted a ticket stating that the development environment is reporong the device does not have any space left. The user's application creates a lot of small files and does not remove these files when the application crashes. Given the following output:
Which of the following is the MOST likely cause for the error message indicating a lack of space?
Options
- AThere are no free nodes
- BSELinux is running
- CThe application output is too large
- DDirectory permissions are too restrictive
How the community answered
(44 responses)- A75% (33)
- B14% (6)
- C2% (1)
- D9% (4)
Why each option
When an application creates many small files and the system reports no space remaining, inode exhaustion - not disk block depletion - is the most likely cause.
Every file on a Linux filesystem consumes one inode regardless of its size. An application that creates many small files without cleanup can exhaust the fixed pool of inodes even when physical disk blocks are still available. Once all inodes are consumed, the kernel returns the same 'no space left on device' error as a full disk, because no new directory entries can be created.
SELinux policy enforcement produces 'Permission denied' or AVC denial errors, not 'no space left on device' messages.
Large application output would exhaust disk blocks, but the scenario describes many small files, which specifically targets inode exhaustion rather than block exhaustion.
Overly restrictive directory permissions cause 'Permission denied' errors on write attempts, not space-related errors.
Concept tested: Linux inode exhaustion from many small files
Source: https://man7.org/linux/man-pages/man1/df.1.html
Topics
Community Discussion
No community discussion yet for this question.