cfengine/core — pull request #1711 by jeffali (2014-05-15 14:02:26+00:00)
Title: Redmine #5637: increase the maximal mapsize for DB files with a lot of activity or a lot of expected data

There are two ways to reach the maximum number of pages used :

1. Too much data (the obvious one)
2. Too much long transactions (readers or writers). These tend to reserve special dirty pages for them that don't get reused until they are freed. (This can be triggered for example by a bug where a read operation takes a long time to commit or is stuck somewhere)

Unfortunately and unlike maxreaders, it is hard to modify the max mapsize after the creation of the DB file (although the lmdb documentation hints to the opposite).

Note that setting this to the maximum does not imply that the DB file will ever reach even the half of it.