XK0-005 · Question #793
XK0-005 Question #793: Real Exam Question with Answer & Explanation
The correct answer is B: /proc/7991/oom_score. To find the Out-Of-Memory (OOM) score for a specific process with PID 7991, the engineer should look for the oom_score file within the process's directory in the /proc filesystem. The /proc filesystem provides an interface to kernel data structures and process information.
Question
A Linux engineer needs to determine the oom_score value for PID 7991. Which of the following files should the engineer verify to find this value?
Options
- A/var/7991/oom_score
- B/proc/7991/oom_score
- C/opt/7991/oom_score
- D/usr/config/7991/oom_score
Explanation
To find the Out-Of-Memory (OOM) score for a specific process with PID 7991, the engineer should look for the oom_score file within the process's directory in the /proc filesystem. The /proc filesystem provides an interface to kernel data structures and process information.
Common mistakes.
- A.
/varis typically used for variable data like logs and spool files, not for process-specific kernel information. - C.
/optis traditionally used for optional or third-party software packages, not for dynamic kernel or process data. - D.
/usr/configis not a standard location for process-specific OOM information in Linux;/usrtypically contains read-only user programs and libraries.
Concept tested. Linux /proc filesystem, OOM killer, process information
Reference. https://docs.kernel.org/admin-guide/out-of-memory-killer.html
Topics
Community Discussion
No community discussion yet for this question.