* Inexplicable disk activity trying to load modules on devfs
@ 2002-06-15 22:22 Daniel Jacobowitz
2002-06-15 22:44 ` Andrew Morton
2002-06-17 10:10 ` bert hubert
0 siblings, 2 replies; 11+ messages in thread
From: Daniel Jacobowitz @ 2002-06-15 22:22 UTC (permalink / raw)
To: linux-kernel
I just booted into 2.4.19-pre10-ac2 for the first time, and noticed
something very odd: my disk activity light was flashing at about
half-second intervals, very regularly, and I could hear the disk
moving. I was only able to track it down to which disk controller, via
/proc/interrupts (are there any tools for monitoring VFS activity?
They'd be really useful). Eventually I hunted down the program causing
it: xmms.
The reason turned out to be that I hadn't remembered to build my sound
driver for this kernel version. Every half-second xmms tried to open
/dev/mixer (and failed, ENOENT). Every time it did that there was
actual disk activity. Easily reproducible without xmms. Reproducible
on any non-existant device in devfs, but not for nonexisting files on
other filesystems. Is something bypassing the normal disk cache
mechanisms here? That doesn't seem right at all.
--
Daniel Jacobowitz Debian GNU/Linux Developer
MontaVista Software Carnegie Mellon University
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Inexplicable disk activity trying to load modules on devfs
2002-06-15 22:22 Inexplicable disk activity trying to load modules on devfs Daniel Jacobowitz
@ 2002-06-15 22:44 ` Andrew Morton
2002-06-15 23:04 ` Daniel Jacobowitz
2002-06-17 10:10 ` bert hubert
1 sibling, 1 reply; 11+ messages in thread
From: Andrew Morton @ 2002-06-15 22:44 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: linux-kernel
Daniel Jacobowitz wrote:
>
> I just booted into 2.4.19-pre10-ac2 for the first time, and noticed
> something very odd: my disk activity light was flashing at about
> half-second intervals, very regularly, and I could hear the disk
> moving. I was only able to track it down to which disk controller, via
> /proc/interrupts (are there any tools for monitoring VFS activity?
> They'd be really useful). Eventually I hunted down the program causing
> it: xmms.
>
> The reason turned out to be that I hadn't remembered to build my sound
> driver for this kernel version. Every half-second xmms tried to open
> /dev/mixer (and failed, ENOENT). Every time it did that there was
> actual disk activity. Easily reproducible without xmms. Reproducible
> on any non-existant device in devfs, but not for nonexisting files on
> other filesystems. Is something bypassing the normal disk cache
> mechanisms here? That doesn't seem right at all.
>
syslog activity from a printk, perhaps?
-
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Inexplicable disk activity trying to load modules on devfs
2002-06-15 22:44 ` Andrew Morton
@ 2002-06-15 23:04 ` Daniel Jacobowitz
2002-06-18 17:05 ` Rob Landley
0 siblings, 1 reply; 11+ messages in thread
From: Daniel Jacobowitz @ 2002-06-15 23:04 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
On Sat, Jun 15, 2002 at 03:44:30PM -0700, Andrew Morton wrote:
> Daniel Jacobowitz wrote:
> >
> > I just booted into 2.4.19-pre10-ac2 for the first time, and noticed
> > something very odd: my disk activity light was flashing at about
> > half-second intervals, very regularly, and I could hear the disk
> > moving. I was only able to track it down to which disk controller, via
> > /proc/interrupts (are there any tools for monitoring VFS activity?
> > They'd be really useful). Eventually I hunted down the program causing
> > it: xmms.
> >
> > The reason turned out to be that I hadn't remembered to build my sound
> > driver for this kernel version. Every half-second xmms tried to open
> > /dev/mixer (and failed, ENOENT). Every time it did that there was
> > actual disk activity. Easily reproducible without xmms. Reproducible
> > on any non-existant device in devfs, but not for nonexisting files on
> > other filesystems. Is something bypassing the normal disk cache
> > mechanisms here? That doesn't seem right at all.
> >
>
> syslog activity from a printk, perhaps?
Nope. No log activity whatsoever.
--
Daniel Jacobowitz Debian GNU/Linux Developer
MontaVista Software Carnegie Mellon University
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Inexplicable disk activity trying to load modules on devfs
2002-06-15 23:04 ` Daniel Jacobowitz
@ 2002-06-18 17:05 ` Rob Landley
0 siblings, 0 replies; 11+ messages in thread
From: Rob Landley @ 2002-06-18 17:05 UTC (permalink / raw)
To: Daniel Jacobowitz, Andrew Morton; +Cc: linux-kernel
On Saturday 15 June 2002 07:04 pm, Daniel Jacobowitz wrote:
> On Sat, Jun 15, 2002 at 03:44:30PM -0700, Andrew Morton wrote:
> > Daniel Jacobowitz wrote:
> > > I just booted into 2.4.19-pre10-ac2 for the first time, and noticed
> > > something very odd: my disk activity light was flashing at about
> > > half-second intervals, very regularly, and I could hear the disk
> > > moving. I was only able to track it down to which disk controller, via
> > > /proc/interrupts (are there any tools for monitoring VFS activity?
> > > They'd be really useful). Eventually I hunted down the program causing
> > > it: xmms.
> > >
> > > The reason turned out to be that I hadn't remembered to build my sound
> > > driver for this kernel version. Every half-second xmms tried to open
> > > /dev/mixer (and failed, ENOENT). Every time it did that there was
> > > actual disk activity. Easily reproducible without xmms. Reproducible
> > > on any non-existant device in devfs, but not for nonexisting files on
> > > other filesystems. Is something bypassing the normal disk cache
> > > mechanisms here? That doesn't seem right at all.
> >
> > syslog activity from a printk, perhaps?
>
> Nope. No log activity whatsoever.
Updated atime on the /dev/blah node?
Random guess...
Rob
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Inexplicable disk activity trying to load modules on devfs
2002-06-15 22:22 Inexplicable disk activity trying to load modules on devfs Daniel Jacobowitz
2002-06-15 22:44 ` Andrew Morton
@ 2002-06-17 10:10 ` bert hubert
1 sibling, 0 replies; 11+ messages in thread
From: bert hubert @ 2002-06-17 10:10 UTC (permalink / raw)
To: linux-kernel
On Sat, Jun 15, 2002 at 05:22:44PM -0500, Daniel Jacobowitz wrote:
> I just booted into 2.4.19-pre10-ac2 for the first time, and noticed
> something very odd: my disk activity light was flashing at about
> half-second intervals, very regularly, and I could hear the disk
I have a similar problem with the popular 'dig' utility. Running 'dig 2>
/dev/null > /dev/null' suffices to cause disk activity, even when run many
times in succession.
As far as stracing can tell (dig is multithreaded), there is no reason for
this.
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
http://www.tk the dot in .tk
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Inexplicable disk activity trying to load modules on devfs
@ 2002-06-17 6:59 Borsenkow Andrej
2002-06-17 15:01 ` Daniel Jacobowitz
2002-06-26 3:37 ` Richard Gooch
0 siblings, 2 replies; 11+ messages in thread
From: Borsenkow Andrej @ 2002-06-17 6:59 UTC (permalink / raw)
To: 'akpm@zip.com.au', 'drow@false.org'
Cc: 'linux-kernel@vger.kernel.org',
'devfs@oss.sgi.com'
>>
>> I just booted into 2.4.19-pre10-ac2 for the first time, and noticed
>> something very odd: my disk activity light was flashing at about
>> half-second intervals, very regularly, and I could hear the disk
>> moving. I was only able to track it down to which disk controller, via
>> /proc/interrupts (are there any tools for monitoring VFS activity?
>> They'd be really useful). Eventually I hunted down the program causing
>> it: xmms.
>>
>> The reason turned out to be that I hadn't remembered to build my sound
>> driver for this kernel version. Every half-second xmms tried to open
>> /dev/mixer (and failed, ENOENT). Every time it did that there was
>> actual disk activity. Easily reproducible without xmms. Reproducible
>> on any non-existant device in devfs, but not for nonexisting files on
>> other filesystems. Is something bypassing the normal disk cache
>> mechanisms here? That doesn't seem right at all.
>>
>
>
>syslog activity from a printk, perhaps?
No. It is most probably devfsd trying to load sound modules.
This is exactly the reason Mandrake does not enable devfs in kernel-secure.
You can badly hit your system by doing in a loop ls /dev/foo for some device
foo that is configured for module autoloading.
It is very fascist decision; the slightly more forgiving way is to disable
devfsd module autoloading (or disable devfsd entirely, just run it once
after all drivers are loaded to execute actions) but then you lose support
for hot plugging and some people do use kernel-secure on desktops.
-andrej
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Inexplicable disk activity trying to load modules on devfs
2002-06-17 6:59 Borsenkow Andrej
@ 2002-06-17 15:01 ` Daniel Jacobowitz
2002-06-26 3:38 ` Richard Gooch
2002-06-26 3:37 ` Richard Gooch
1 sibling, 1 reply; 11+ messages in thread
From: Daniel Jacobowitz @ 2002-06-17 15:01 UTC (permalink / raw)
To: Borsenkow Andrej
Cc: 'akpm@zip.com.au', 'linux-kernel@vger.kernel.org',
'devfs@oss.sgi.com'
On Mon, Jun 17, 2002 at 10:59:26AM +0400, Borsenkow Andrej wrote:
> >>
> >> I just booted into 2.4.19-pre10-ac2 for the first time, and noticed
> >> something very odd: my disk activity light was flashing at about
> >> half-second intervals, very regularly, and I could hear the disk
> >> moving. I was only able to track it down to which disk controller, via
> >> /proc/interrupts (are there any tools for monitoring VFS activity?
> >> They'd be really useful). Eventually I hunted down the program causing
> >> it: xmms.
> >>
> >> The reason turned out to be that I hadn't remembered to build my sound
> >> driver for this kernel version. Every half-second xmms tried to open
> >> /dev/mixer (and failed, ENOENT). Every time it did that there was
> >> actual disk activity. Easily reproducible without xmms. Reproducible
> >> on any non-existant device in devfs, but not for nonexisting files on
> >> other filesystems. Is something bypassing the normal disk cache
> >> mechanisms here? That doesn't seem right at all.
> >>
> >
> >
> >syslog activity from a printk, perhaps?
>
> No. It is most probably devfsd trying to load sound modules.
>
> This is exactly the reason Mandrake does not enable devfs in kernel-secure.
> You can badly hit your system by doing in a loop ls /dev/foo for some device
> foo that is configured for module autoloading.
>
> It is very fascist decision; the slightly more forgiving way is to disable
> devfsd module autoloading (or disable devfsd entirely, just run it once
> after all drivers are loaded to execute actions) but then you lose support
> for hot plugging and some people do use kernel-secure on desktops.
For the curious, the reason is that modprobe writes even failed attempts
to a log in /var/log/ksymoops, and calls fdatasync() on that file
afterwards. There is no way to disable this without removing that
directory, as a design decision. I don't personally see the point in
logging attempts which fail because there is no driver...
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Inexplicable disk activity trying to load modules on devfs
2002-06-17 15:01 ` Daniel Jacobowitz
@ 2002-06-26 3:38 ` Richard Gooch
2002-06-26 22:03 ` Keith Owens
0 siblings, 1 reply; 11+ messages in thread
From: Richard Gooch @ 2002-06-26 3:38 UTC (permalink / raw)
To: Daniel Jacobowitz
Cc: Borsenkow Andrej, 'akpm@zip.com.au',
'linux-kernel@vger.kernel.org',
'devfs@oss.sgi.com'
Daniel Jacobowitz writes:
> On Mon, Jun 17, 2002 at 10:59:26AM +0400, Borsenkow Andrej wrote:
> > >>
> > >> I just booted into 2.4.19-pre10-ac2 for the first time, and noticed
> > >> something very odd: my disk activity light was flashing at about
> > >> half-second intervals, very regularly, and I could hear the disk
> > >> moving. I was only able to track it down to which disk controller, via
> > >> /proc/interrupts (are there any tools for monitoring VFS activity?
> > >> They'd be really useful). Eventually I hunted down the program causing
> > >> it: xmms.
> > >>
> > >> The reason turned out to be that I hadn't remembered to build my sound
> > >> driver for this kernel version. Every half-second xmms tried to open
> > >> /dev/mixer (and failed, ENOENT). Every time it did that there was
> > >> actual disk activity. Easily reproducible without xmms. Reproducible
> > >> on any non-existant device in devfs, but not for nonexisting files on
> > >> other filesystems. Is something bypassing the normal disk cache
> > >> mechanisms here? That doesn't seem right at all.
> > >>
> > >
> > >
> > >syslog activity from a printk, perhaps?
> >
> > No. It is most probably devfsd trying to load sound modules.
> >
> > This is exactly the reason Mandrake does not enable devfs in kernel-secure.
> > You can badly hit your system by doing in a loop ls /dev/foo for some device
> > foo that is configured for module autoloading.
> >
> > It is very fascist decision; the slightly more forgiving way is to disable
> > devfsd module autoloading (or disable devfsd entirely, just run it once
> > after all drivers are loaded to execute actions) but then you lose support
> > for hot plugging and some people do use kernel-secure on desktops.
>
> For the curious, the reason is that modprobe writes even failed
> attempts to a log in /var/log/ksymoops, and calls fdatasync() on
> that file afterwards. There is no way to disable this without
> removing that directory, as a design decision. I don't personally
> see the point in logging attempts which fail because there is no
> driver...
Sounds like the behaviour of modprobe needs to be fixed.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Inexplicable disk activity trying to load modules on devfs
2002-06-26 3:38 ` Richard Gooch
@ 2002-06-26 22:03 ` Keith Owens
2002-07-19 0:22 ` Richard Gooch
0 siblings, 1 reply; 11+ messages in thread
From: Keith Owens @ 2002-06-26 22:03 UTC (permalink / raw)
To: Richard Gooch
Cc: 'linux-kernel@vger.kernel.org',
'devfs@oss.sgi.com'
On Tue, 25 Jun 2002 23:38:48 -0400,
Richard Gooch <rgooch@ras.ucalgary.ca> wrote:
>Daniel Jacobowitz writes:
>> For the curious, the reason is that modprobe writes even failed
>> attempts to a log in /var/log/ksymoops, and calls fdatasync() on
>> that file afterwards. There is no way to disable this without
>> removing that directory, as a design decision. I don't personally
>> see the point in logging attempts which fail because there is no
>> driver...
>
>Sounds like the behaviour of modprobe needs to be fixed.
People wanted to know what was invoking modprobe and with what
parameters, especially for failed attempts. The call to fdatasync() is
to "ensure" that the log data hits the disk _before_ the module is
loaded, otherwise debugging data is lost if the module init routine
oopses.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Inexplicable disk activity trying to load modules on devfs
2002-06-26 22:03 ` Keith Owens
@ 2002-07-19 0:22 ` Richard Gooch
0 siblings, 0 replies; 11+ messages in thread
From: Richard Gooch @ 2002-07-19 0:22 UTC (permalink / raw)
To: Keith Owens
Cc: 'linux-kernel@vger.kernel.org',
'devfs@oss.sgi.com'
Keith Owens writes:
> On Tue, 25 Jun 2002 23:38:48 -0400,
> Richard Gooch <rgooch@ras.ucalgary.ca> wrote:
> >Daniel Jacobowitz writes:
> >> For the curious, the reason is that modprobe writes even failed
> >> attempts to a log in /var/log/ksymoops, and calls fdatasync() on
> >> that file afterwards. There is no way to disable this without
> >> removing that directory, as a design decision. I don't personally
> >> see the point in logging attempts which fail because there is no
> >> driver...
> >
> >Sounds like the behaviour of modprobe needs to be fixed.
>
> People wanted to know what was invoking modprobe and with what
> parameters, especially for failed attempts. The call to fdatasync()
> is to "ensure" that the log data hits the disk _before_ the module
> is loaded, otherwise debugging data is lost if the module init
> routine oopses.
Then there needs to be a way of enabling/disabling this. Maybe a
run-time config option?
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Inexplicable disk activity trying to load modules on devfs
2002-06-17 6:59 Borsenkow Andrej
2002-06-17 15:01 ` Daniel Jacobowitz
@ 2002-06-26 3:37 ` Richard Gooch
1 sibling, 0 replies; 11+ messages in thread
From: Richard Gooch @ 2002-06-26 3:37 UTC (permalink / raw)
To: Borsenkow Andrej
Cc: 'akpm@zip.com.au', 'drow@false.org',
'linux-kernel@vger.kernel.org',
'devfs@oss.sgi.com'
Borsenkow Andrej writes:
> >>
> >> I just booted into 2.4.19-pre10-ac2 for the first time, and noticed
> >> something very odd: my disk activity light was flashing at about
> >> half-second intervals, very regularly, and I could hear the disk
> >> moving. I was only able to track it down to which disk controller, via
> >> /proc/interrupts (are there any tools for monitoring VFS activity?
> >> They'd be really useful). Eventually I hunted down the program causing
> >> it: xmms.
> >>
> >> The reason turned out to be that I hadn't remembered to build my sound
> >> driver for this kernel version. Every half-second xmms tried to open
> >> /dev/mixer (and failed, ENOENT). Every time it did that there was
> >> actual disk activity. Easily reproducible without xmms. Reproducible
> >> on any non-existant device in devfs, but not for nonexisting files on
> >> other filesystems. Is something bypassing the normal disk cache
> >> mechanisms here? That doesn't seem right at all.
> >>
> >
> >
> >syslog activity from a printk, perhaps?
>
> No. It is most probably devfsd trying to load sound modules.
>
> This is exactly the reason Mandrake does not enable devfs in
> kernel-secure. You can badly hit your system by doing in a loop ls
> /dev/foo for some device foo that is configured for module
> autoloading.
>
> It is very fascist decision; the slightly more forgiving way is to
> disable devfsd module autoloading (or disable devfsd entirely, just
> run it once after all drivers are loaded to execute actions) but
> then you lose support for hot plugging and some people do use
> kernel-secure on desktops.
Or you can use the IGNORE action to selectively disable loading of
some modules (whether or not they exist).
Another option is to write a shared object extension to devfsd which
has rate-limiting. All the mechanisms you need are there or can be
built on top of the existing infrastructure.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2002-07-19 0:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-15 22:22 Inexplicable disk activity trying to load modules on devfs Daniel Jacobowitz
2002-06-15 22:44 ` Andrew Morton
2002-06-15 23:04 ` Daniel Jacobowitz
2002-06-18 17:05 ` Rob Landley
2002-06-17 10:10 ` bert hubert
-- strict thread matches above, loose matches on Subject: below --
2002-06-17 6:59 Borsenkow Andrej
2002-06-17 15:01 ` Daniel Jacobowitz
2002-06-26 3:38 ` Richard Gooch
2002-06-26 22:03 ` Keith Owens
2002-07-19 0:22 ` Richard Gooch
2002-06-26 3:37 ` Richard Gooch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox