All of lore.kernel.org
 help / color / mirror / Atom feed
From: Folkert van Heusden <folkert@vanheusden.com>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [2.6.25 on Power5 64bit] badness in fs/sysfs/dir.c:424
Date: Thu, 9 Oct 2008 21:40:34 +0200	[thread overview]
Message-ID: <20081009194033.GJ28224@vanheusden.com> (raw)
In-Reply-To: <20081009122643.0fe3ec07.randy.dunlap@oracle.com>

> > 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

      reply	other threads:[~2008-10-09 19:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-09 14:09 [2.6.25 on Power5 64bit] badness in fs/sysfs/dir.c:424 Folkert van Heusden
2008-10-09 19:26 ` Randy Dunlap
2008-10-09 19:40   ` Folkert van Heusden [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081009194033.GJ28224@vanheusden.com \
    --to=folkert@vanheusden.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=randy.dunlap@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.