diff --git a/tcmalloc/parameters.cc b/tcmalloc/parameters.cc index 9eeed66a4..bc5e55055 100644 --- a/tcmalloc/parameters.cc +++ b/tcmalloc/parameters.cc @@ -109,7 +109,7 @@ static std::atomic& skip_subrelease_short_interval_ns() { #if defined(TCMALLOC_INTERNAL_SMALL_BUT_SLOW) interval = absl::ZeroDuration(); #else - interval = absl::Seconds(60); + interval = absl::Seconds(10); #endif absl::base_internal::LowLevelCallOnce(&flag, [&]() { @@ -127,7 +127,7 @@ static std::atomic& skip_subrelease_long_interval_ns() { #if defined(TCMALLOC_INTERNAL_SMALL_BUT_SLOW) interval = absl::ZeroDuration(); #else - interval = absl::Seconds(300); + interval = absl::Seconds(120); #endif absl::base_internal::LowLevelCallOnce(&flag, [&]() { diff --git a/tcmalloc/testing/default_parameters_test.cc b/tcmalloc/testing/default_parameters_test.cc index 3f9e01eba..c56ae23e5 100644 --- a/tcmalloc/testing/default_parameters_test.cc +++ b/tcmalloc/testing/default_parameters_test.cc @@ -36,7 +36,7 @@ constexpr absl::Duration kDefaultSkipSubreleaseShortInterval = #if defined(TCMALLOC_INTERNAL_SMALL_BUT_SLOW) absl::ZeroDuration() #else - absl::Seconds(60) + absl::Seconds(10) #endif ; constexpr MallocExtension::BytesPerSecond kDefaultBackgroundReleaseRate{ @@ -46,7 +46,7 @@ constexpr absl::Duration kDefaultSkipSubreleaseLongInterval = #if defined(TCMALLOC_INTERNAL_SMALL_BUT_SLOW) absl::ZeroDuration() #else - absl::Seconds(300) + absl::Seconds(120) #endif ; diff --git a/tcmalloc/testing/get_stats_test.cc b/tcmalloc/testing/get_stats_test.cc index 4b62ff52e..6631a134e 100644 --- a/tcmalloc/testing/get_stats_test.cc +++ b/tcmalloc/testing/get_stats_test.cc @@ -111,10 +111,10 @@ TEST_F(GetStatsTest, Pbtxt) { #else EXPECT_THAT( buf, - HasSubstr("tcmalloc_skip_subrelease_short_interval_ns: 60000000000")); + HasSubstr("tcmalloc_skip_subrelease_short_interval_ns: 10000000000")); EXPECT_THAT( buf, - HasSubstr("tcmalloc_skip_subrelease_long_interval_ns: 300000000000")); + HasSubstr("tcmalloc_skip_subrelease_long_interval_ns: 120000000000")); #endif EXPECT_THAT(buf, HasSubstr("tcmalloc_release_partial_alloc_pages: true"));