diff --git a/velox/common/memory/MmapAllocator.cpp b/velox/common/memory/MmapAllocator.cpp index 88839e6b26622..2a4f26174ab2f 100644 --- a/velox/common/memory/MmapAllocator.cpp +++ b/velox/common/memory/MmapAllocator.cpp @@ -340,10 +340,11 @@ bool MmapAllocator::allocateContiguousImpl( } if (data == nullptr || data == MAP_FAILED) { const std::string errorMsg = fmt::format( - "Mmap failed with {} pages use MmapArena {}, errno {}", + "Mmap failed with {} pages use MmapArena {}, errno {}, Mmap Allocator: {}", numPages, (useMmapArena_ ? "true" : "false"), - folly::errnoStr(errno)); + folly::errnoStr(errno), + toString()); VELOX_MEM_LOG(ERROR) << errorMsg; setAllocatorFailureMessage(errorMsg); // If the mmap failed, we have unmapped former 'allocation' and the extra to