This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizers] Set default allocator_release_to_os_interval_ms to 5 seconds
ClosedPublic

Authored by alekseyshl on Oct 25 2017, 9:48 PM.

Details

Summary

With new release to OS approach (see D38245) it's reasonable to enable
it by default. Setting allocator_release_to_os_interval_ms to 5000 seems
to be a reasonable default (might be tuned later, based on the
feedback).

Also delaying the first release to OS in each bucket for at least
allocator_release_to_os_interval_ms after the first allocation to
prevent just allocated memory to be madvised back to OS and let short
lived processes to avoid release to OS overhead altogether.

Diff Detail

Repository
rL LLVM

Event Timeline

alekseyshl created this revision.Oct 25 2017, 9:48 PM
cryptoad accepted this revision.Oct 26 2017, 8:02 AM
This revision is now accepted and ready to land.Oct 26 2017, 8:02 AM
  • Comment edit.
This revision was automatically updated to reflect the committed changes.