VirtualBox

Changeset 82990 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Feb 5, 2020 11:43:13 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136002
Message:

VMM/GMMR0: Added TLB statistics for GMMR0PageIdToVirt. bugref:9627

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GMMR0.cpp

    r82989 r82990  
    45584558        && pTlbe->idGeneration == ASMAtomicUoReadU64(&pGMM->idFreeGeneration)
    45594559        && pChunk->Core.Key    == idChunk)
    4560     { /* hopeful outcome */ }
     4560        pGVM->R0Stats.gmm.cChunkTlbHits++; /* hopefully this is a likely outcome */
    45614561    else
    45624562    {
     4563        pGVM->R0Stats.gmm.cChunkTlbMisses++;
     4564
     4565        /*
     4566         * Look it up in the chunk tree.
     4567         */
    45634568        RTSpinlockAcquire(pGMM->hSpinLockTree);
    45644569        pChunk = gmmR0GetChunkLocked(pGMM, idChunk);
  • trunk/src/VBox/VMM/VMMR0/GMMR0Internal.h

    r82989 r82990  
    107107    /** Spinlock protecting the chunk lookup TLB. */
    108108    RTSPINLOCK          hChunkTlbSpinLock;
     109    uint64_t            cChunkTlbHits;
     110    uint64_t            cChunkTlbMisses;
    109111    /** The chunk lookup TLB used by GMMR0PageIdToVirt. */
    110112    GMMPERVMCHUNKTLBE   aChunkTlbEntries[GMMPERVM_CHUNKTLB_ENTRIES];
Note: See TracChangeset for help on using the changeset viewer.

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