VirtualBox

Changeset 91450 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 28, 2021 8:22:31 PM (3 years ago)
Author:
vboxsync
Message:

VMM: Use RTR0MemObjAllocLarge w/ RTMEMOBJ_ALLOC_LARGE_F_FAST for allocating a large page. bugref:5324

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r91247 r91450  
    961961               fragmented; don't bother trying again. */
    962962            LogFlow(("pgmPhysAllocLargePage failed with %Rrc\n", rc));
    963             PGMSetLargePageUsage(pVM, false);
     963            if (rc != VERR_TRY_AGAIN)
     964                PGMSetLargePageUsage(pVM, false);
    964965            return rc;
    965966        }
  • trunk/src/VBox/VMM/VMMR0/GMMR0.cpp

    r91321 r91450  
    31673167 * @retval  VINF_SUCCESS on success.
    31683168 * @retval  VERR_NOT_OWNER if the caller is not an EMT.
    3169  * @retval  VERR_GMM_SEED_ME if seeding via GMMR0SeedChunk is necessary.
    31703169 * @retval  VERR_GMM_HIT_GLOBAL_LIMIT if we've exhausted the available pages.
    31713170 * @retval  VERR_GMM_HIT_VM_ACCOUNT_LIMIT if we've hit the VM account limit,
    31723171 *          that is we're trying to allocate more than we've reserved.
     3172 * @retval  VERR_TRY_AGAIN if the host is temporarily out of large pages.
    31733173 * @returns see GMMR0AllocatePages.
    31743174 *
     
    32283228
    32293229        RTR0MEMOBJ hMemObj;
    3230         rc = RTR0MemObjAllocPhysEx(&hMemObj, GMM_CHUNK_SIZE, NIL_RTHCPHYS, GMM_CHUNK_SIZE);
     3230        rc = RTR0MemObjAllocLarge(&hMemObj, GMM_CHUNK_SIZE, GMM_CHUNK_SIZE, RTMEMOBJ_ALLOC_LARGE_F_FAST);
    32313231        if (RT_SUCCESS(rc))
    32323232        {
  • trunk/src/VBox/VMM/include/PGMInternal.h

    r91345 r91450  
    120120 * world switch overhead, so let's sync more.
    121121 */
    122 # ifdef IN_RING0
     122#ifdef IN_RING0
    123123/* Chose 32 based on the compile test in @bugref{4219}; 64 shows worse stats.
    124124 * 32 again shows better results than 16; slightly more overhead in the \#PF handler,
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