Hi, In testing one of the distros (unreleased), i recently discovered a problem where the kernel hangs while loading all the modules sequentially. This was a random testing conducted through the following simple script. The distro kernel hanged in several instances of testing, and, the machine had to be rebooted each time.
When i verified the same script through some other already stable distros, i found that those stable kernels handle the situation well by not laoding those modules for which controllers does not exist. Module loading errors were expected, nevertheless i expected the kernel to hang each time this script executed. I thought this could be a good stress generation script for any system. Regards-- Subrata Signed-Off-By: Subrata Modak <[email protected]> --- diff -uprN ltp-full-20090228/testscripts.orig/load_stress_all_kernel_modules.sh ltp-full-20090228/testscripts/load_stress_all_kernel_modules.sh --- ltp-full-20090228/testscripts.orig/load_stress_all_kernel_modules.sh 1970-01-01 05:30:00.000000000 +0530 +++ ltp-full-20090228/testscripts/load_stress_all_kernel_modules.sh 2009-03-13 22:37:09.000000000 +0530 @@ -0,0 +1,35 @@ +#!/bin/sh +################################################################################ +## ## +## Copyright (c) International Business Machines Corp., 2009 ## +## ## +## This program is free software; you can redistribute it and#or modify ## +## it under the terms of the GNU General Public License as published by ## +## the Free Software Foundation; either version 2 of the License, or ## +## (at your option) any later version. ## +## ## +## This program is distributed in the hope that it will be useful, but ## +## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## +## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## +## for more details. ## +## ## +## You should have received a copy of the GNU General Public License ## +## along with this program; if not, write to the Free Software ## +## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## +## ## +################################################################################ +# ## +# File : load_stress_all_kernel_modules.sh ## +# ## +# Description: Try to load all the modules present in the system, installed ## +# both during Distro installation, or, custom kernel build. ## +# ## +# Author: Subrata Modak <[email protected]> ## +################################################################################ + +for module in `modprobe -l | tr '\n' ' '` + do + insert_module=`basename $module .ko` + modprobe -v $insert_module +done + ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
