proc_pid_timerslack_ns(5)
๐ NAME ๐
/proc/pid/timerslack_ns โ timer slack but make it nanoseconds, bestie โจ
๐ฆ DESCRIPTION ๐ฆ
/proc/pid/timerslack_ns</p> (since Linux 4.6) ๐
Okay so this file right here? It's the little window into a process's "current" timer slack value, and it's expressed in nanoseconds. Slay. ๐
And the tea is: it's writable. So not only can you peek at the process's timer slack value, you can literally change it. Main character energy fr.
Now listen โ if you write 0 to this file, it resets the "current" timer slack back to the "default" timer slack value. That's the whole vibe. ๐ธ
For further details, go read the discussion of PR_SET_TIMERSLACK in prctl(2). iykyk. ๐
the permission lore (it's giving glow-up) ๐
So initially, permission to access this file was governed by a ptrace access mode PTRACE_MODE_ATTACH_FSCREDS check โ see ptrace(2) if you wanna read up.
But then everyone was like... bestie why is this so strict ๐ญ and it was subsequently deemed too strict a requirement. And there was a whole side effect too: requiring a process to have the CAP_SYS_PTRACE capability would also allow it to view and change any process's memory. Not it. ๐
Therefore, since Linux 4.9, only the (weaker) CAP_SYS_NICE capability is required to access this file. Glow-down of permissions, in the best possible way. โจ
๐ SEE ALSO ๐
k bye bestie, go read your process's timer slack and go off ๐ This was page proc_pid_timerslack_ns(5) from the File Formats Manual, brought to you by Linux man-pages 6.20, dated 2026-02-08. Stan. ๐ซถ๐
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: GPL-3.0-or-later
- Copyright 1994-1995, Daniel Quinlan <Daniel.Quinlan@linux.org>
- Copyright 2002-2017, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms