When using big indexes it seems like the memory used by the oldindex that was mapped in are still lying around in the buffercache. These is troublsome for linux memory management. So we tell them explicit that we do not need it anymore. We already do that in FileUtil::LoadedMmap::~LoadedMmap() {     madvise(_mapBuffer, _mapSize, MADV_DONTNEED);     munmap(_mapBuffer, _mapSize); }
When using big indexes it seems like the memory used by the oldindex that was mapped in are still lying around in the buffercache.
These is troublsome for linux memory management.
So we tell them explicit that we do not need it anymore.
We already do that in
FileUtil::LoadedMmap::~LoadedMmap()
{
    madvise(_mapBuffer, _mapSize, MADV_DONTNEED);
    munmap(_mapBuffer, _mapSize);
}

vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa