VirtualBox

Changeset 23093 in vbox for trunk/src


Ignore:
Timestamp:
Sep 17, 2009 1:46:30 PM (15 years ago)
Author:
vboxsync
Message:

PGM_SYNC_NR_PAGES increased for VT-x/AMD-V

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMInternal.h

    r23067 r23093  
    8383 * When PGMPOOL_WITH_GCPHYS_TRACKING is enabled using high values here
    8484 * causes a lot of unnecessary extents and also is slower than taking more \#PFs.
    85  */
    86 #define PGM_SYNC_NR_PAGES               8
     85 *
     86 * Note that \#PFs are much more expensive in the VT-x/AMD-V case due to
     87 * world switch overhead, so let's sync more.
     88 */
     89# ifdef IN_RING0
     90/* Chose 32 based on the compile test in #4219; 64 shows worse stats.
     91 * 32 again shows better results than 16; slightly more overhead in the \#PF handler,
     92 * but ~5% fewer faults.
     93 */
     94# define PGM_SYNC_NR_PAGES               32
     95#else
     96# define PGM_SYNC_NR_PAGES               8
     97#endif
    8798
    8899/**
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