summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fastos/src/vespa/fastos/unix_file.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/fastos/src/vespa/fastos/unix_file.cpp b/fastos/src/vespa/fastos/unix_file.cpp
index bf8f337fdab..43cf14cafd9 100644
--- a/fastos/src/vespa/fastos/unix_file.cpp
+++ b/fastos/src/vespa/fastos/unix_file.cpp
@@ -255,6 +255,7 @@ FastOS_UNIX_File::Close(void)
}
if (_mmapbase != NULL) {
+ madvise(_mmapbase, _mmaplen, MADV_DONTNEED)
munmap(static_cast<char *>(_mmapbase), _mmaplen);
_mmapbase = NULL;
_mmaplen = 0;