mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:14:12 +08:00
mdbx-test: 17Gb DB size for long-stochastic.
This commit is contained in:
parent
02ebd4db78
commit
ffa29f9466
@ -116,8 +116,8 @@ fi
|
|||||||
# system immediately, as well some space is required for logs.
|
# system immediately, as well some space is required for logs.
|
||||||
#
|
#
|
||||||
db_size_mb=$(((ram_avail_mb - ram_reserve4logs_mb) / 4))
|
db_size_mb=$(((ram_avail_mb - ram_reserve4logs_mb) / 4))
|
||||||
if [ $db_size_mb -gt 3072 ]; then
|
if [ $db_size_mb -gt 17408 ]; then
|
||||||
db_size_mb=3072
|
db_size_mb=17408
|
||||||
fi
|
fi
|
||||||
echo "=== use ${db_size_mb}M for DB"
|
echo "=== use ${db_size_mb}M for DB"
|
||||||
|
|
||||||
@ -191,7 +191,6 @@ for nops in 10 100 1000 10000 100000 1000000 10000000 100000000 1000000000; do
|
|||||||
echo "======================================================================="
|
echo "======================================================================="
|
||||||
wbatch=$((nops / 10 + 1))
|
wbatch=$((nops / 10 + 1))
|
||||||
while true; do
|
while true; do
|
||||||
wbatch=$(((wbatch > 9) ? wbatch / 10 : 1))
|
|
||||||
echo "======================================================================="
|
echo "======================================================================="
|
||||||
banner "$nops / $wbatch"
|
banner "$nops / $wbatch"
|
||||||
subcase=0
|
subcase=0
|
||||||
@ -263,6 +262,7 @@ for nops in 10 100 1000 10000 100000 1000000 10000000 100000000 1000000000; do
|
|||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
done # options
|
done # options
|
||||||
cases="${subcase}"
|
cases="${subcase}"
|
||||||
|
wbatch=$(((wbatch > 9) ? wbatch / 10 : 1))
|
||||||
if [ $wbatch -eq 1 -o $((nops / wbatch)) -gt 1000 ]; then break; fi
|
if [ $wbatch -eq 1 -o $((nops / wbatch)) -gt 1000 ]; then break; fi
|
||||||
done # batch (write-ops per txn)
|
done # batch (write-ops per txn)
|
||||||
done # n-ops
|
done # n-ops
|
||||||
|
Loading…
x
Reference in New Issue
Block a user