* udevd high cpu hogging in kernel-2.6.34 git8 to git-13 @ 2010-05-28 5:36 JD 2010-05-28 5:50 ` Jiri Slaby 0 siblings, 1 reply; 4+ messages in thread From: JD @ 2010-05-28 5:36 UTC (permalink / raw) To: linux-kernel I noticed that since git8, udevd consumes from 50 to 80 percent of cpu. The main udevd thread is niced to -4, and 6 or more child threads are niced -2. So, I backpedaled to git7, which does not have this "feature" :) Cheers, JD ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: udevd high cpu hogging in kernel-2.6.34 git8 to git-13 2010-05-28 5:36 udevd high cpu hogging in kernel-2.6.34 git8 to git-13 JD @ 2010-05-28 5:50 ` Jiri Slaby [not found] ` <4BFF5D6C.3010207@gmail.com> 0 siblings, 1 reply; 4+ messages in thread From: Jiri Slaby @ 2010-05-28 5:50 UTC (permalink / raw) To: JD; +Cc: linux-kernel, Eric Paris, Al Viro On 05/28/2010 07:36 AM, JD wrote: > I noticed that since git8, udevd consumes from 50 to 80 percent of cpu. > The main udevd thread is niced to -4, and 6 or more child threads are > niced -2. > > So, I backpedaled to git7, which does not have this "feature" :) Is it this one again? http://lkml.org/lkml/2010/5/22/150 Could you try to revert the patch? -- js ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <4BFF5D6C.3010207@gmail.com>]
* Re: udevd high cpu hogging in kernel-2.6.34 git8 to git-13 [not found] ` <4BFF5D6C.3010207@gmail.com> @ 2010-05-28 6:10 ` Jiri Slaby 2010-06-17 16:21 ` JD 0 siblings, 1 reply; 4+ messages in thread From: Jiri Slaby @ 2010-05-28 6:10 UTC (permalink / raw) To: JD; +Cc: Eric Paris, Al Viro, LKML Added lkml back to CC. On 05/28/2010 08:06 AM, JD wrote: > But here goes: > I have seen this behaviour in all the git releases from git8 > to the current 2.6.34-git13 > > I have some of the analysis based on strace, and kernel stack > trace. > Instead of backing out the whole code for the new udevd, perhaps > it (udevd) should sleep for some time before polling the same fd > again. So if you see in the strace output the poll to return immediately with out fd being an anon_inode (check /proc/pid_of_udev/fd/), it is the issue. AFAIK, it was not fixed upstream yet. So could you try to revert a7cf4145b? -- js ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: udevd high cpu hogging in kernel-2.6.34 git8 to git-13 2010-05-28 6:10 ` Jiri Slaby @ 2010-06-17 16:21 ` JD 0 siblings, 0 replies; 4+ messages in thread From: JD @ 2010-06-17 16:21 UTC (permalink / raw) To: LKML On 05/27/2010 11:10 PM, Jiri Slaby wrote: > Added lkml back to CC. > > On 05/28/2010 08:06 AM, JD wrote: > >> But here goes: >> I have seen this behaviour in all the git releases from git8 >> to the current 2.6.34-git13 >> >> I have some of the analysis based on strace, and kernel stack >> trace. >> Instead of backing out the whole code for the new udevd, perhaps >> it (udevd) should sleep for some time before polling the same fd >> again. >> > So if you see in the strace output the poll to return immediately with > out fd being an anon_inode (check /proc/pid_of_udev/fd/), it is the > issue. AFAIK, it was not fixed upstream yet. > > So could you try to revert a7cf4145b? > > As promised, I tested the patch submitted by Eric Paris (See http://marc.info/?l=linux-kernel&m=127479018618584&w=2). I patched kernel-2.6.34-git13 with it, without reverting a7cf4145b. The thing is it works and works extremely well. The behaviour is back to what it used to be: Only 3 udevd threads, as in before git8, and they do not consume any cpu bandwidth that I can see. It is well below the threshold of 1% . Also, it seems that it has been picked up by upstream. Compiled and booted 2.6.34-git16 and all is well. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-06-17 16:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-28 5:36 udevd high cpu hogging in kernel-2.6.34 git8 to git-13 JD
2010-05-28 5:50 ` Jiri Slaby
[not found] ` <4BFF5D6C.3010207@gmail.com>
2010-05-28 6:10 ` Jiri Slaby
2010-06-17 16:21 ` JD
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).