Interesting there's no mention of the /proc filesystem ( https://docs.kernel.org/filesystems/proc.html ). cat /proc/ /environ would be a solid addition to this list.
I use /proc/$PID/limits quite a bit in particular
11–20 of 26 posts
Interesting there's no mention of the /proc filesystem ( https://docs.kernel.org/filesystems/proc.html ). cat /proc/ /environ would be a solid addition to this list.
I use /proc/$PID/limits quite a bit in particular
Earlier quoted context omitted.
This. (Combine with sudo too!) Now if I could just track NFS client traffic on a client associated with a PID (without having NFS server access). All I can get is all-PID/client-kernel data info vi nfsstat, nothing tying to a PID, filename, directory or inode to tell me which PID is causing all the NFS traffic!
iotop?
And with strace -p pid you can somewhat "spy" on what a process is doing.
Brendan Gregg's work in the field of performance analysis (eBPF to the rescue) is quite useful in this regard, though not without tradeoffs (AFAIK: need compiler tools on the system to compile eBPF code).
Using `perf` may be a decent middle ground.
Way hay we're out of memory
Way hay our disk is thrashing
Way hay I need more coffee
Early in the morning!
What can you do with a process ID
What can you do with a process ID
What can you do with a process ID
Early in the morning?
Send a SIGKILL to its process
Send a SIGKILL to its process
Send a SIGKILL to its process
Early in the morning!I know about some of these tricks. However, containers are popular and typically don’t have the tools installed, and you can’t necessarily sudo either. What do people replace these tricks with, in some cloud container or k8s pods?
Way hay we're out of memory Way hay our disk is thrashing Way hay I need more coffee Early in the morning! What can you do with a process ID What can you do with a process ID What can you do with a process ID Early in the morning? Send a SIGKILL to its process Send a SIGKILL to its process Send a SIGKILL to its process Early in the morning!
Especially since every other example is non-destructive...