The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* 2.6.27 inotify causes unkillable processes with 100% CPU usage
@ 2008-12-15 11:31 Timo Sirainen
  2008-12-15 12:05 ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Timo Sirainen @ 2008-12-15 11:31 UTC (permalink / raw)
  To: linux-kernel; +Cc: nuitari-dovecot, Arno Wald, David Rosenstrauch

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]

There appears to be a bug in 2.6.27 and inotify where it causes  
processes in running state to eat 100% CPU and they can't be killed  
with kill -9, requiring a reboot to get rid of them.

3 people (Cc'd) so far have reported this to me, all of them last  
week. The problem shows up when running my Dovecot IMAP server. Its  
imap processes start hanging, apparently it can happen after running  
for only a couple of minutes:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
6717 arno      20   0  2964 1608 1192 R  100  0.2   1158:05 imap

Only the imap processes hang (Dovecot has a few others). The only  
thing special about it is that it uses inotify. After disabling  
Dovecot's inotify support at least one of the people (Arno) reported  
that he can't reprocuce the bug anymore. He also couldn't reproduce  
the bug with 2.6.26 kernel.

I don't think Dovecot does anything special with its inotify code. It  
just listens on two directories. You can find the code here: http://hg.dovecot.org/dovecot-1.1/file/f9a000ee400d/src/lib/ioloop-notify-inotify.c

Kernels causing the hang:

2.6.27-9.slh.1-sidux-686
Arch Linux, kernel 2.6.27.8
Gentoo with 2.6.27-gentoo-r5, amd64, 2 dual core opterons

Not causing the hang:

2.6.26-6.slh.1-sidux-686


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-15 13:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 11:31 2.6.27 inotify causes unkillable processes with 100% CPU usage Timo Sirainen
2008-12-15 12:05 ` Al Viro
2008-12-15 13:52   ` Holger Hoffstaette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox