VirtualBox

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


Ignore:
Timestamp:
Oct 15, 2010 2:21:06 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66696
Message:

Reduce the maximum number of extents allocated from the hyper heap. Otherwise it eats up 256kb (out of 640k for a single cpu VM), which quickly leads up to out of memory guru meditations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMPool.cpp

    r33008 r33162  
    191191     */
    192192    uint16_t cMaxPhysExts;
    193     rc = CFGMR3QueryU16Def(pCfg, "MaxPhysExts", &cMaxPhysExts, RT_MAX(cMaxPages * 2, PGMPOOL_IDX_LAST));
     193    rc = CFGMR3QueryU16Def(pCfg, "MaxPhysExts", &cMaxPhysExts, RT_MAX(cMaxPages * 2, 2048 /* 2k max as this eat too much hyper heap */));
    194194    AssertLogRelRCReturn(rc, rc);
    195195    AssertLogRelMsgReturn(cMaxPhysExts >= 16 && cMaxPages <= PGMPOOL_IDX_LAST,
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