Changeset 33726 in vbox for trunk/src/VBox/VMM/PGMPhys.cpp
- Timestamp:
- Nov 3, 2010 1:35:35 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67355
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMPhys.cpp
r33725 r33726 3925 3925 { 3926 3926 static uint32_t cTimeOut = 0; 3927 3928 if (u64TimeStamp2 - u64TimeStamp1 > 100) 3927 uint64_t u64TimeStampDelta = u64TimeStamp2 - u64TimeStamp1; 3928 3929 if (u64TimeStampDelta > 100) 3929 3930 { 3930 3931 STAM_COUNTER_INC(&pVM->pgm.s.CTX_SUFF(pStats)->StatLargePageOverflow); 3931 if (++cTimeOut > 10) 3932 if ( ++cTimeOut > 10 3933 || u64TimeStampDelta > 1000 /* more than one second forces an early retirement from allocating large pages. */) 3932 3934 { 3933 3935 /* If repeated attempts to allocate a large page takes more than 100 ms, then we fall back to normal 4k pages. 3934 3936 * E.g. Vista 64 tries to move memory around, which takes a huge amount of time. 3935 3937 */ 3936 LogRel(("PGMR3PhysAllocateLargePage: allocating large pages takes too long (last attempt %d ms ); DISABLE\n", u64TimeStamp2 - u64TimeStamp1));3938 LogRel(("PGMR3PhysAllocateLargePage: allocating large pages takes too long (last attempt %d ms; nr of timeouts %d); DISABLE\n", u64TimeStampDelta, cTimeOut)); 3937 3939 PGMSetLargePageUsage(pVM, false); 3938 3940 }
Note:
See TracChangeset
for help on using the changeset viewer.