--On Monday, January 16, 2023 10:47 AM +0530 Bhanush Mehta bhanush.mehta@flipkart.com wrote:
Hi Quanah,
We see the same issue with 2.4.58 (compiled from source).
I am able to debug that mod operations are fast on a fresh mdb, but after a certain number of operations the mdb size is going from 300 MB to 10 GB.
Hello,
Are you sure that the database is actually 10GB in size? Keep in mind that back-mdb uses a sparse file, so the filesystem will often show the database as being the "size" of the MDB maxsize value, regardless of what the actual DB size is.
You can use du -h "file.mdb" to see the actual filesize.
For example, in a test system, I have:
maxsize 1073741824
which is 1GB.
If we look at the output of ls:
total 2704 -rw------- 1 root root 1073741824 May 17 2022 data.mdb
but the actual size on disk is:
du -h data.mdb 2.7M data.mdb
Regards, Quanah