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
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms