From 47df2bc4e2d0ffcb4c5ca5ef04eccffbb3b9034f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 8 Jan 2020 14:58:24 -0800 Subject: [PATCH] ircd::m::events: FADV_DONTNEED on events dump fd. --- matrix/events.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/matrix/events.cc b/matrix/events.cc index 645e2a7f1..e4355f759 100644 --- a/matrix/events.cc +++ b/matrix/events.cc @@ -94,6 +94,9 @@ ircd::m::events::dump__file(const string_view &filename) filename, std::ios::out | std::ios::app }; + // POSIX_FADV_DONTNEED + fs::evict(file); + const unique_buffer buf { size_t(dump_buffer_size)