Provide simple option for limiting total memory usage

gonzojive commented :

Although I have a fix for the backup restoration issue, this issue as a whole has not been addressed.

I’m not aware of what causes badger to take up the amount of memory that it does. That seems like the first step towards introducing a flag for setting a fixed memory limit. May someone from the badger team weigh in?