sshfs used to have this problem and it was enough to bring nautilus and a lot of other applications to their knees as they tried to stat() my homedir and failed on the hung sshfs mount point.
Why doesn't `kill -9` always work?
11–20 of 53 posts
Re: Why doesn't `kill -9` always work?
#12Can anyone explain the "Why is a process wedged?" part? I do understand that piping from /dev/random to /dev/null is going to run forever, but I do not understand the gdb-output, nor what that has to do with the rest of the text.
So that whole section doesn't make a lot of sense to me. Running strace on an unkillable process tends to produce no output (if the process was actually making new system calls, it wouldn't be wedged). And worse, my experience is that attaching to a wedged process with ptrace() usually does nothing at all except also hang the attaching the process. This also applies to gdb. And finally, even if attaching worked, gett…
I think the author may be conflating applications blocked in system calls (since reads from /dev/random will block if the system lacks entropy) with applications blocked in uninterruptible system calls.
Re: Why doesn't `kill -9` always work?
#13Re: Why doesn't `kill -9` always work?
#14Re: Why doesn't `kill -9` always work?
#15Go here http://www.readability.com/articles/zcqkmihi and switch to Readability view!
Re: Why doesn't `kill -9` always work?
#16Do not mount NFS with "soft" unless you really know what you're doing. NFS' behavior to hang is not "stupidity" - it's actually one of the best things about NFS. Applications do not deal well with failed reads/writes. If there's a brief network interruption or the NFS server goes down, it's WAY safer to cause applications to hang until the server comes back. Since NFS is a stateless protocol, when the server comes ba…
Re: Why doesn't `kill -9` always work?
#17If kill -9 does not work, its a bug. The kernel needs to be able to end processes no matter what the process is doing. By definition this should not be about how the misbehaving process was implemented. I imagine practical considerations are keeping these bugs in there, eg I can imagine the effort of making all processes killable would stand in no relation to the gains - its hard to do, and rare to occur,
Re: Why doesn't `kill -9` always work?
#18I consider any uninterruptable sleep in the kernel a bug. There's no technical reason a process waiting for a resource (e.g. disk I/O) couldn't be killed on the spot, leaving the resource on its own. If it can't be, it just means it hasn't been implemented in the kernel.
Allowing SIGKILL to work and not any other signal is ugly special case, and while generally reasonable it is still special case that is relevant for things like NFS (with modern linux NFS client allowing you to disable this behavior) and broken hardware (and then trying to recover the situation with anything other than kernel-level debugger is mostly meaningless, with power cycling being the real solution when you can do that. Accidentally we currently have similar issue on one backend server where power-cycling is not an option).
Re: Why doesn't `kill -9` always work?
#19I always thought kill -9 won't always work because it currently has control of a system resource, like disk or something.
Re: Why doesn't `kill -9` always work?
#20That site is trying to murder my eyes! Go here http://www.readability.com/articles/zcqkmihi and switch to Readability view!
I've setup a bookmarklet using it; greatest thing since sliced bread.