VirtualBox

Changeset 30430 in vbox


Ignore:
Timestamp:
Jun 24, 2010 12:41:57 PM (15 years ago)
Author:
vboxsync
Message:

Log virtual address space limit for win32 hosts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r30324 r30430  
    51625162        RTLogRelLogger(loggerRelease, 0, ~0U, "Host RAM: %uMB RAM, available: %uMB\n",
    51635163                       cMbHostRam, cMbHostRamAvail);
     5164
     5165#if defined(RT_OS_WINDOWS) && HC_ARCH_BITS == 32
     5166        /* @todo move this in RT, but too lazy now */
     5167        uint32_t maxRAMArch;
     5168        SYSTEM_INFO sysInfo;
     5169        GetSystemInfo(&sysInfo);
     5170
     5171        if (sysInfo.lpMaximumApplicationAddress >= (LPVOID)0xC0000000)   /* 3.0 GB */
     5172            maxRAMArch = UINT32_C(2560);
     5173        else
     5174        if (sysInfo.lpMaximumApplicationAddress > (LPVOID)0xA0000000)    /* 2.5 GB */
     5175            maxRAMArch = UINT32_C(2048);
     5176        else
     5177            maxRAMArch = UINT32_C(1500);
     5178
     5179        RTLogRelLogger(loggerRelease, 0, ~0U, "Maximum user application address: %p\n", sysInfo.lpMaximumApplicationAddress);
     5180        RTLogRelLogger(loggerRelease, 0, ~0U, "Maximum allowed guest RAM size:   %d MB\n", maxRAMArch);
     5181#endif
    51645182
    51655183        /* the package type is interesting for Linux distributions */
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