From 8524c53d307dfa94e5bde85bbea1b98dd0b392f0 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Mon, 22 May 2017 08:47:24 +0000 Subject: [PATCH] Increase the size of the translation cache to keep up with the demands of running modern large applications: * the maximum number of sectors is increased from 24 to 48 * the default number of sectors is increased from 16 to 32 on all targets except Android * the default number of sectors is increased from 6 to 12 on Android targets git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16406 --- coregrind/pub_core_transtab.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/coregrind/pub_core_transtab.h b/coregrind/pub_core_transtab.h index 62f2c5d237..951cbd9496 100644 --- a/coregrind/pub_core_transtab.h +++ b/coregrind/pub_core_transtab.h @@ -66,20 +66,20 @@ extern void VG_(init_tt_tc) ( void ); /* Limits for number of sectors the TC is divided into. If you need a larger overall translation cache, increase MAX_N_SECTORS. */ #define MIN_N_SECTORS 2 -#define MAX_N_SECTORS 24 +#define MAX_N_SECTORS 48 /* Default for the nr of sectors, if not overridden by command line. On Android, space is limited, so try to get by with fewer sectors. - On other platforms we can go to town. 16 sectors gives theoretical - capacity of about 440MB of JITted code in 1.05 million translations + On other platforms we can go to town. 32 sectors gives theoretical + capacity of about 880MB of JITted code in 2.1 million translations (realistically, about 2/3 of that) for Memcheck. */ #if defined(VGPV_arm_linux_android) \ || defined(VGPV_x86_linux_android) \ || defined(VGPV_mips32_linux_android) \ || defined(VGPV_arm64_linux_android) -# define N_SECTORS_DEFAULT 6 +# define N_SECTORS_DEFAULT 12 #else -# define N_SECTORS_DEFAULT 16 +# define N_SECTORS_DEFAULT 32 #endif extern @@ -116,6 +116,7 @@ extern void VG_(discard_translations) ( Addr start, ULong range, extern void VG_(print_tt_tc_stats) ( void ); extern UInt VG_(get_bbs_translated) ( void ); +extern UInt VG_(get_bbs_discarded_or_dumped) ( void ); /* Add to / search the auxiliary, small, unredirected translation table. */ -- 2.47.2