]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Increase the size of the translation cache to keep up with the demands
authorJulian Seward <jseward@acm.org>
Mon, 22 May 2017 08:47:24 +0000 (08:47 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 22 May 2017 08:47:24 +0000 (08:47 +0000)
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

index 62f2c5d237807e0a07ed03d895e2da9c836715c7..951cbd94963133aaa6abf76fd85c9e66d62b6965 100644 (file)
@@ -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. */