VirtualBox

Changeset 22348 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Aug 19, 2009 2:04:03 PM (15 years ago)
Author:
vboxsync
Message:

Tweak the defaults a bit to prevent kicking out pages too quickly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r22343 r22348  
    11471147    /* Maximum nr of modifications depends on the guest mode. */
    11481148    if (pDis->mode == CPUMODE_32BIT)
    1149         cMaxModifications = 32;
     1149        cMaxModifications = 48;
    11501150    else
    1151         cMaxModifications = 16;
     1151        cMaxModifications = 24;
    11521152
    11531153    /*
     
    11611161        &&  pVCpu->pgm.s.cPoolAccessHandler == (pPage->cLastAccessHandlerCount + 1))
    11621162    {
    1163         Log(("Possible page reuse cMods=%d -> %d\n", pPage->cModifications, (pPage->cModifications + 2) * 2));
    1164         pPage->cModifications           = (pPage->cModifications + 1) * 2;
     1163        Log(("Possible page reuse cMods=%d -> %d (locked=%d type=%s)\n", pPage->cModifications, pPage->cModifications * 2, pgmPoolIsPageLocked(&pVM->pgm.s, pPage), pgmPoolPoolKindToStr(pPage->enmKind)));
     1164        pPage->cModifications           = pPage->cModifications * 2;
    11651165        pPage->pvLastAccessHandlerFault = pvFault;
    11661166        pPage->cLastAccessHandlerCount  = pVCpu->pgm.s.cPoolAccessHandler;
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