Discussion:
[Valgrind-developers] Valgrind: r16406 - /trunk/coregrind/pub_core_transtab.h
s***@valgrind.org
2017-05-22 08:47:24 UTC
Permalink
Author: sewardj
Date: Mon May 22 09:47:24 2017
New Revision: 16406

Log:
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


Modified:
trunk/coregrind/pub_core_transtab.h

Modified: trunk/coregrind/pub_core_transtab.h
==============================================================================
--- trunk/coregrind/pub_core_transtab.h (original)
+++ trunk/coregrind/pub_core_transtab.h Mon May 22 09:47:24 2017
@@ -66,20 +66,20 @@
/* 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_(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. */

Loading...