diff --git a/test/blobfs/rocksdb/rocksdb.sh b/test/blobfs/rocksdb/rocksdb.sh index 406156905..5e00f8653 100755 --- a/test/blobfs/rocksdb/rocksdb.sh +++ b/test/blobfs/rocksdb/rocksdb.sh @@ -91,6 +91,15 @@ else DURATION=20 NUM_KEYS=20000000 fi +# Make sure that there's enough memory available for the mempool. Unfortunately, +# db_bench doesn't seem to allocate memory from all numa nodes since all of it +# comes exclusively from node0. With that in mind, try to allocate CACHE_SIZE +# + some_overhead (1G) of pages but only on node0 to make sure that we end up +# with the right amount not allowing setup.sh to split it by using the global +# nr_hugepages setting. Instead of bypassing it completely, we use it to also +# get the right size of hugepages. +HUGEMEM=$((CACHE_SIZE + 1024)) HUGENODE=0 \ + "$rootdir/scripts/setup.sh" cd $RESULTS_DIR cp $testdir/common_flags.txt insert_flags.txt