VirtualBox

Changeset 61921 in vbox


Ignore:
Timestamp:
Jun 29, 2016 8:03:09 AM (8 years ago)
Author:
vboxsync
Message:

VMM: in case of "Failed to procure handy page" / VERR_NO_MEMORY, print the amount of available host memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r60401 r61921  
    44274427        }
    44284428
     4429        if (rc == VERR_NO_MEMORY)
     4430        {
     4431            uint64_t cbHostRamAvail = 0;
     4432            int rc2 = RTSystemQueryAvailableRam(&cbHostRamAvail);
     4433            if (RT_SUCCESS(rc2))
     4434                LogRel(("Host RAM: %RU64MB available\n", cbHostRamAvail));
     4435            else
     4436                LogRel(("Cannot determine the amount of available host memory\n"));
     4437        }
     4438
    44294439        /* Set the FFs and adjust rc. */
    44304440        VM_FF_SET(pVM, VM_FF_PGM_NEED_HANDY_PAGES);
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