Re: [2.6.25 on Power5 64bit] badness in fs/sysfs/dir.c:424

From: Folkert van Heusden
Date: Thu Oct 09 2008 - 15:40:57 EST


> > While running my modprobe-killerscript I got the following in dmesg:
>
> Where are your scripts, please?

I've got two versions. The one one intel is:
----------------------------------------------------------------------
#! /usr/bin/perl -w

use POSIX;

@mods = <>;

for(;;)
{
$n = floor(rand(@mods));

print $mods[$n]."\n";
if (rand(2) < 1.0)
{
system('rmmod ' . $mods[$n]);
}
else
{
system('modprobe ' . $mods[$n]);
}
}
----------------------------------------------------------------------
invoked as:
lsmod | awk '{ print $1; }' | ./pyk-perl.mod


The script I used on the power5-platform is:
----------------------------------------------------------------------
#! /usr/bin/perl -w

use POSIX;

@mods = <>;

fork();
fork();

srand(time() ^ getpid() ^ getppid());

for(;;)
{
$n = floor(rand(@mods));

print $mods[$n]."\n";
if (rand(2) < 1.0)
{
system('rmmod ' . $mods[$n]);
}
else
{
system('modprobe ' . $mods[$n]);
}
}
----------------------------------------------------------------------
invoked as:
lsmod | grep -v -e ibmveth -v -e windfarm_cpufreq_clamp | awk '{ print $1; }' | ./pyk-perl.mod

I'm removing ibmveth from the list or else I would loose connection
during tests and windfarm_cpufreq_clamp because the script would hang
during a modprobe on that. Maybe something to investigate later.


Folkert van Heusden

--
To MultiTail einai ena polymorfiko ergaleio gia ta logfiles kai tin
eksodo twn entolwn. Prosferei: filtrarisma, xrwmatismo, sygxwneysi,
diaforetikes provoles. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/