[all-commits] [llvm/llvm-project] 92dd65: [Support][Caching] Don't use `mmap` in `localCache...

Juan Manuel Martinez Caamaño via All-commits all-commits at lists.llvm.org
Mon Sep 7 02:32:35 PDT 2026


  Branch: refs/heads/users/jmmartinez/nfs_headache
  Home:   https://github.com/llvm/llvm-project
  Commit: 92dd65f09773d98e360bddc7025a3ee4c632c57b
      https://github.com/llvm/llvm-project/commit/92dd65f09773d98e360bddc7025a3ee4c632c57b
  Author: Juan Manuel Martinez Caamaño <jmartinezcaamao at gmail.com>
  Date:   2026-09-07 (Mon, 07 Sep 2026)

  Changed paths:
    M llvm/lib/Support/Caching.cpp

  Log Message:
  -----------
  [Support][Caching] Don't use `mmap` in `localCache`, on NFS

When the cache directory is on an NFS, we may hit a SIGBUS signal
when there is contention on the cache.

This happens typically with MPI jobs running on an NFS mounted $HOME
directory.

If we execute through the regular `read()` path, we also fail with a
`Stale file descriptor` error. But at least this path is properly handled
and we can continue without using the cache.

To achieve this, we pass `OnNFS` to `IsVolatile` and `RequiresNullTerminator`,
which makes `shouldUseMmap` return `false`.


  Commit: 691b2a15ee52d97da297244d1a898f9e54d19182
      https://github.com/llvm/llvm-project/commit/691b2a15ee52d97da297244d1a898f9e54d19182
  Author: Juan Manuel Martinez Caamaño <jmartinezcaamao at gmail.com>
  Date:   2026-09-07 (Mon, 07 Sep 2026)

  Changed paths:
    M llvm/lib/Support/Caching.cpp

  Log Message:
  -----------
  review: OnNFS -> IsNFS


  Commit: 6b9916eca6ee2115bd9754fae4aef0865304200f
      https://github.com/llvm/llvm-project/commit/6b9916eca6ee2115bd9754fae4aef0865304200f
  Author: Juan Manuel Martinez Caamaño <jmartinezcaamao at gmail.com>
  Date:   2026-09-07 (Mon, 07 Sep 2026)

  Changed paths:
    M llvm/lib/Support/Caching.cpp

  Log Message:
  -----------
  review: sink is_local condition to ensure the cache directory path is already created


Compare: https://github.com/llvm/llvm-project/compare/b2b405f21558...6b9916eca6ee

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