VirtualBox

Ignore:
Timestamp:
Nov 8, 2021 2:37:50 PM (3 years ago)
Author:
vboxsync
Message:

ValKit: New test driver: tdBenchmark2.py. This does some simple guest RAM allocation benchmarking using bs3-memalloc-1. It should also help make sure we work with max memory configs. bugref:10093

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py

    r92244 r92269  
    17211721        return fRc;
    17221722
     1723    def setLargePages(self, fUseLargePages):
     1724        """
     1725        Configures whether the VM should use large pages or not.
     1726        Returns True on success and False on failure.  Error information is logged.
     1727        """
     1728        fRc = True;
     1729        try:
     1730            self.o.machine.setHWVirtExProperty(vboxcon.HWVirtExPropertyType_LargePages, fUseLargePages);
     1731        except:
     1732            reporter.errorXcpt('failed to set large pages of "%s" to %s' % (self.sName, fUseLargePages));
     1733            fRc = False;
     1734        else:
     1735            reporter.log('set the large pages of "%s" to %s' % (self.sName, fUseLargePages));
     1736        self.oTstDrv.processPendingEvents();
     1737        return fRc;
     1738
    17231739    def setVRamSize(self, cMB):
    17241740        """
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