VirtualBox

Ignore:
Timestamp:
Dec 13, 2016 12:42:29 PM (8 years ago)
Author:
vboxsync
Message:

ValdiationKit/storaage: Increase the timeout for the benchmarks to 2 hourse because running the complete benchmark with QCOW exceeds the timeout. The 4K block size hurts performance too much

Location:
trunk/src/VBox/ValidationKit/tests/storage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/storage/remoteexecutor.py

    r62190 r64847  
    139139        return (True, str(sOutput));
    140140
    141     def _execLocallyOrThroughTxs(self, sExec, asArgs, sInput):
     141    def _execLocallyOrThroughTxs(self, sExec, asArgs, sInput, cMsTimeout):
    142142        """
    143143        Executes the given program locally or through TXS based on the
     
    154154                oStdIn = '/dev/null'; # pylint: disable=R0204
    155155            fRc = self.oTxsSession.syncExecEx(sExec, (sExec,) + asArgs,
    156                                               oStdIn = oStdIn, oStdOut = oStdOut);
     156                                              oStdIn = oStdIn, oStdOut = oStdOut,
     157                                              cMsTimeout = cMsTimeout);
    157158            sOutput = oStdOut.getOutput();
    158159        else:
     
    160161        return (fRc, sOutput);
    161162
    162     def execBinary(self, sExec, asArgs, sInput = None):
     163    def execBinary(self, sExec, asArgs, sInput = None, cMsTimeout = 3600000):
    163164        """
    164165        Executes the given binary with the given arguments
     
    172173        sBinary = self._getBinaryPath(sExec);
    173174        if sBinary is not None:
    174             fRc, sOutput = self._execLocallyOrThroughTxs(sBinary, asArgs, sInput);
     175            fRc, sOutput = self._execLocallyOrThroughTxs(sBinary, asArgs, sInput, cMsTimeout);
    175176        else:
    176177            fRc = False;
  • trunk/src/VBox/ValidationKit/tests/storage/storagecfg.py

    r63761 r64847  
    392392
    393393        # Destroy all volumes first.
    394         for sMountPoint in self.dVols.keys():
     394        for sMountPoint in self.dVols.keys(): # pylint: disable=C0201
    395395            self.destroyVolume(sMountPoint);
    396396
    397397        # Destroy all pools.
    398         for sPool in self.dPools.keys():
     398        for sPool in self.dPools.keys(): # pylint: disable=C0201
    399399            self.destroyStoragePool(sPool);
    400400
  • trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py

    r64787 r64847  
    127127        """ Runs the testcase """
    128128        _ = cMsTimeout
    129         fRc, sOutput = self.oExecutor.execBinary('fio', (self.sCfgFileId,));
     129        fRc, sOutput = self.oExecutor.execBinary('fio', (self.sCfgFileId,), cMsTimeout = cMsTimeout);
    130130        # @todo: Parse output.
    131131        _ = sOutput;
     
    182182        if self.fDirectIo:
    183183            tupArgs += ('-I',);
    184         fRc, sOutput = self.oExecutor.execBinary('iozone', tupArgs);
     184        fRc, sOutput = self.oExecutor.execBinary('iozone', tupArgs, cMsTimeout = cMsTimeout);
    185185        if fRc:
    186186            self.sResult = sOutput;
     
    835835        return self.kdHostIoCacheDescs[sHostIoCache];
    836836
    837     def testBenchmark(self, sTargetOs, sBenchmark, sMountpoint, oExecutor, dTestSet):
     837    def testBenchmark(self, sTargetOs, sBenchmark, sMountpoint, oExecutor, dTestSet, \
     838                      cMsTimeout = 3600000):
    838839        """
    839840        Runs the given benchmark on the test host.
     
    852853            fRc = oTst.prepare();
    853854            if fRc:
    854                 fRc = oTst.run();
     855                fRc = oTst.run(cMsTimeout);
    855856                if fRc:
    856857                    if self.fReportBenchmarkResults:
     
    10091010                    sMountPoint = self.prepareStorage(oStorCfgVm);
    10101011                    if sMountPoint is not None:
    1011                         self.testBenchmark('linux', sIoTest, sMountPoint, oExecVm, dTestSet);
     1012                        self.testBenchmark('linux', sIoTest, sMountPoint, oExecVm, dTestSet, \
     1013                                           cMsTimeout = 2 * 3600 * 1000); # 2 hours max (Benchmark and QCOW takes some time)
    10121014                        self.cleanupStorage(oStorCfgVm);
    10131015                    else:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette