mdbx-test: limit DB-size 3Gb for long_stochastic.

Change-Id: I52bc6cd4aea7a41d5b1bdabc2c8e4bd6e34a78a9
This commit is contained in:
Leonid Yuriev 2019-06-27 10:53:35 +03:00
parent aaf49bb816
commit 08c334c8bc

View File

@ -35,6 +35,9 @@ fi
# system immediately, as well some space is required for logs.
#
db_size_mb=$(expr '(' ${ram_avail_mb} - ${ram_reserve4logs_mb} ')' / 4)
if [ ${db_size_mb} -gt 3072 ]; then
db_size_mb=3072
fi
echo "=== ${ram_avail_mb}M RAM available, use ${db_size_mb}M for DB"
make check