Use cases for MADV_DONTNEED in Voron

added by DotNetKicks
11/15/2018 1:56:42 PM

1 Kicks, 2634 Views

MADV_FREE, on the other hand, does exactly what we want, but will only work on anonymous maps. Our scratch files use actual files, not anonymous maps. This is because we want to give the memory a backing store in the case of memory overload (and to avoid the wrath of the OOM killer).


0 comments