[all-commits] [llvm/llvm-project] f5f3c6: [BOLT] Page out .dwo files

Rafael Auler via All-commits all-commits at lists.llvm.org
Fri Aug 7 17:52:54 PDT 2026


  Branch: refs/heads/users/rafaelauler/incremental_context_2
  Home:   https://github.com/llvm/llvm-project
  Commit: f5f3c6afc62ce6d8e2e31821bcebcf83668ea3ab
      https://github.com/llvm/llvm-project/commit/f5f3c6afc62ce6d8e2e31821bcebcf83668ea3ab
  Author: Rafael Auler <rafaelauler at fb.com>
  Date:   2026-08-07 (Fri, 07 Aug 2026)

  Changed paths:
    M bolt/include/bolt/Utils/Utils.h
    M bolt/lib/Core/BinaryContext.cpp
    M bolt/lib/Utils/Utils.cpp

  Log Message:
  -----------
  [BOLT] Page out .dwo files

Split-DWARF inputs at big binaries scale ship 100+ GiB of .dwo
files. BOLT opened a fair number of them during readDebugInfo, putting
a lot of pressure on the OS memory management: mmap'd reads always
populate the page cache; with every .dwo mapped at once those pages
accumulated, refaulted, and registered as memory pressure that got the
process oomd-killed.

Now, .dwo page-cache pages are reclaimed as soon as BOLT is done with
each file: madvise(MADV_PAGEOUT) on the live mapping, then
posix_fadvise(POSIX_FADV_DONTNEED) once it is unmapped. Controlled by
-drop-dwo-page-cache, OFF by default, as it is unlikely upstream
will be processing gigantic sets of dwo files.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list