oh boy I ran into my FAVOURITE Linux “feature” again, uninterruptible sleep, reproducibly, while at work
-
Show this thread
-
what is uninterruptible sleep, you ask. well:pic.twitter.com/oF0wPt3LiT
1 reply 2 retweets 12 likesShow this thread -
“no but what is it actually” if your process does certain kinds of system calls, including certain I/O system calls, then it is impossible to kill the process while it is waiting for it to return. yes, not even SIGKILL. yes, the only fix is a hard reboot. yes. I know. I knowwwwww
2 replies 0 retweets 12 likesShow this thread -
I hate uninterruptible sleep so fucking much, fuck backwards compatibility, every system call should be able to return EINTR or, hell, pretend the operation failed in some other way or whatever, just let me kill misbehaving processes ;_________;
4 replies 0 retweets 13 likesShow this thread -
Replying to @hikari_no_yume
That's not a backwards compat thing though, it's a kernel bug. The point of uninterruptible sleep is that if your process is running *in kernel mode* then you can't kill it except where allowed, because that would kill *kernel code* at a random point and that's Bad™.
1 reply 0 retweets 3 likes -
Replying to @marcan42 @hikari_no_yume
So in theory in any non-pathological system state, the kernel shouldn't be leaving a process in uninterruptible sleep for any significant length of time. If it does, either you have a problem or it's a kernel bug or misfeature.
1 reply 0 retweets 4 likes -
Replying to @marcan42 @hikari_no_yume
The worst cases of "really the kernel folks should fix this" that I've seen are NFS and FUSE. Like, I can see how it's hard to do because both of those smush something complicated behind an API designed for local disk FS access, but come on, figure out how to do it already.
2 replies 0 retweets 4 likes -
Replying to @marcan42 @hikari_no_yume
Honestly my opinion is that the bug is that the kernel has uninterruptable sleep at all If you're sleeping in kernel space you should be prepared for the consequences
2 replies 0 retweets 3 likes
Yeah, but when any random mutex can make you sleep on something unexpected via a complex chain of dependencies.... Modem preemptible SMP OSes are hard.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.