On a mis-configured or buggy network filer (NFS NAS) writing a large file can cause the filer to freeze.
For diagnostics I need to be able to:
- Suspend (or in other words temporary freeze) all processes of a particular user
- Resume the user
Basically, like a kill -s SIGSTOP
and kill -s SIGCONT
but for the entire user.
To do that, is there a way to temporary take away all CPU-time from a user in Linux?
You can do this more reliably than SIGSTOP and SIGCONT by using the cgroup freezer.
Try
pkill -STOP -u <username>
and resume withpkill -CONT -u <username>