Closed danielealbano closed 1 year ago
Patch coverage: 87.86
% and project coverage change: -0.02
:warning:
Comparison is base (
d0202e2
) 81.71% compared to head (1584935
) 81.70%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This branch adds support for Fast Fixed Memory Allocator (FFMA) to function without hugepages and using only mmap.
Overall, it makes FFMA more versatile by allowing it to work without hugepages and with only mmap, which can improve its performance and efficiency in certain scenarios, but most importantly as FFMA doesn't suffer from memory fragmentation makes it a perfect choice for a long-running software like cachegrand as reduce the scope of any garbage collector that will be implemented down the line.
The only downside, currently, is that the storage_db has to operate using blocks of 64kb and this limits the maximum size of the chunks to about ~170MB of data.
This limitation will be removed with a future PR.
There are also some additional PRs planned to make FFMA less dependant on malloc and rely instead on mmap for its own internal allocations.