def setUp(self): if not memory.check_hotplug(): self.cancel("UnSupported : memory hotplug not enabled\n") smm = SoftwareManager() if not smm.check_installed('stress') and not smm.install('stress'): tarball = self.fetch_asset( 'https://fossies.org/linux/privat/old/stress-1.0.4.tar.gz') archive.extract(tarball, self.teststmpdir) self.sourcedir = os.path.join( self.teststmpdir, os.path.basename(tarball.split('.tar.')[0])) os.chdir(self.sourcedir) process.run('[ -x configure ] && ./configure', shell=True) build.make(self.sourcedir) build.make(self.sourcedir, extra_args='install') self.iteration = self.params.get('iteration', default=1) self.stresstime = self.params.get('stresstime', default=10) self.vmcount = self.params.get('vmcount', default=4) self.iocount = self.params.get('iocount', default=4) self.memratio = self.params.get('memratio', default=5) self.blocks_hotpluggable = get_hotpluggable_blocks( (os.path.join('%s', 'memory*') % MEM_PATH), self.memratio) if os.path.exists("%s/auto_online_blocks" % MEM_PATH): if not self.__is_auto_online(): self.hotplug_all(self.blocks_hotpluggable) clear_dmesg()
def setUp(self): if not memory.check_hotplug(): self.cancel("UnSupported : memory hotplug not enabled\n") sm = SoftwareManager() if not sm.check_installed('stress') and not sm.install('stress'): tarball = self.fetch_asset( 'https://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz') archive.extract(tarball, self.teststmpdir) self.sourcedir = os.path.join( self.teststmpdir, os.path.basename(tarball.split('.tar.')[0])) os.chdir(self.sourcedir) process.run('[ -x configure ] && ./configure', shell=True) build.make(self.sourcedir) build.make(self.sourcedir, extra_args='install') self.iteration = self.params.get('iteration', default=1) self.stresstime = self.params.get('stresstime', default=10) self.vmcount = self.params.get('vmcount', default=4) self.iocount = self.params.get('iocount', default=4) self.memratio = self.params.get('memratio', default=5) self.blocks_hotpluggable = get_hotpluggable_blocks( (os.path.join('%s', 'memory*') % mem_path), self.memratio) if os.path.exists("%s/auto_online_blocks" % mem_path): if not self.__is_auto_online(): self.hotplug_all(self.blocks_hotpluggable) clear_dmesg()
def setUp(self): if not memory.check_hotplug(): self.cancel("UnSupported : memory hotplug not enabled\n") sm = SoftwareManager() if not sm.check_installed('stress') and not sm.install('stress'): tarball = self.fetch_asset( 'https://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz') archive.extract(tarball, self.teststmpdir) self.sourcedir = os.path.join( self.teststmpdir, os.path.basename(tarball.split('.tar.')[0])) os.chdir(self.sourcedir) process.run('[ -x configure ] && ./configure', shell=True) build.make(self.sourcedir) build.make(self.sourcedir, extra_args='install') self.tests = self.params.get('test', default='all') self.iteration = int(self.params.get('iteration', default='1')) self.stresstime = int(self.params.get('stresstime', default='10')) self.vmcount = int(self.params.get('vmcount', default='4')) self.iocount = int(self.params.get('iocount', default='4')) self.memratio = self.params.get('memratio', default=None) self.blocks_hotpluggable = get_hotpluggable_blocks( '%s/memory*' % mem_path)
def setUp(self): if not memory.check_hotplug(): self.cancel("UnSupported : memory hotplug not enabled\n") sm = SoftwareManager() if not sm.check_installed('stress') and not sm.install('stress'): self.cancel(' stress package is needed for the test to be run') self.tests = self.params.get('test', default='all') self.iteration = int(self.params.get('iteration', default='1')) self.stresstime = int(self.params.get('stresstime', default='10')) self.vmcount = int(self.params.get('vmcount', default='4')) self.iocount = int(self.params.get('iocount', default='4')) self.memratio = self.params.get('memratio', default=None) self.blocks_hotpluggable = get_hotpluggable_blocks('%s/memory*' % mem_path)
def setUp(self): if not memory.check_hotplug(): self.cancel("UnSupported : memory hotplug not enabled\n") sm = SoftwareManager() if not sm.check_installed('stress') and not sm.install('stress'): self.cancel(' stress package is needed for the test to be run') self.tests = self.params.get('test', default='all') self.iteration = int(self.params.get('iteration', default='1')) self.stresstime = int(self.params.get('stresstime', default='10')) self.vmcount = int(self.params.get('vmcount', default='4')) self.iocount = int(self.params.get('iocount', default='4')) self.memratio = self.params.get('memratio', default=None) self.blocks_hotpluggable = get_hotpluggable_blocks( '%s/memory*' % mem_path)