Skip to content

Commit e145540

Browse files
committed
Merge branch 'master' into detect_allocators_present_and_functional
2 parents 1dcc7a5 + 1856433 commit e145540

3 files changed

Lines changed: 20 additions & 37 deletions

File tree

bench.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Allocators and tests
77
# --------------------------------------------------------------------
88

9-
readonly alloc_all="sys dh ff fg gd hd hm hml iso je lf lp lt mi mi-dbg mi-sec mi2 mi2-dbg mi2-sec mng mesh nomesh pa rp sc scudo sg sm sn sn-sec tbb tc tcg xmi xsmi xmi-dbg yal"
9+
readonly alloc_all="sys dh ff fg gd hd hm hml iso je lf lp lt mi mi-sec mi2 mi2-sec mng mesh nomesh pa rp sc scudo sg sm sn sn-sec tbb tc tcg mi-dbg mi2-dbg xmi xsmi xmi-dbg yal rmalloc"
1010
readonly alloc_secure="dh ff gd hm hml iso mi-sec mi2-sec mng pa scudo sg sn-sec sg"
1111
alloc_run="" # allocators to run (expanded by command line options)
1212
alloc_libs="sys=" # mapping from allocator to its .so as "<allocator>=<sofile> ..."
@@ -28,7 +28,7 @@ readonly tests_exclude_macos="sh6bench sh8bench redis"
2828
# --------------------------------------------------------------------
2929

3030
readonly version_redis=6.2.7
31-
readonly version_rocksdb=8.1.1
31+
readonly version_rocksdb=10.10.1
3232
readonly version_linux=6.5.1
3333

3434
# --------------------------------------------------------------------
@@ -124,6 +124,7 @@ alloc_lib_add "tbb" "$lib_tbb"
124124
alloc_lib_add "tc" "$localdevdir/tc/.libs/libtcmalloc_minimal$extso"
125125
alloc_lib_add "tcg" "$localdevdir/tcg/bazel-bin/tcmalloc/libtcmalloc$extso"
126126
alloc_lib_add "yal" "$localdevdir/yal/yalloc$extso"
127+
alloc_lib_add "rmalloc" "$localdevdir/rmalloc/lib/librmalloc$extso"
127128

128129
alloc_lib_add "mi" "$localdevdir/mi/out/release/libmimalloc$extso"
129130
alloc_lib_add "mi-sec" "$localdevdir/mi/out/secure/libmimalloc-secure$extso"

build-bench-env.sh

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,17 @@ readonly version_sc=master # unmaintained since 2016
5959
readonly version_scudo=main
6060
readonly version_sg=master # ~unmaintained since 2021
6161
readonly version_sm=master # ~unmaintained since 2017
62-
readonly version_sn=0.7.2
62+
readonly version_sn=0.7.4
6363
readonly version_tbb=v2021.9.0
64-
readonly version_tc=gperftools-2.16.90
65-
readonly version_tcg=98fd24303c7b5ef5e30da625f11fb623a5e038b6 # 2025-07-18
64+
readonly version_tc=gperftools-2.18
65+
readonly version_tcg=81f4e44f23f2936303f9404fee7315119b9df623 # 2026-02-23
6666
readonly version_yal=main
67+
readonly version_rmalloc=master
6768

6869
# benchmark versions
6970
readonly version_redis=6.2.7
7071
readonly version_lean=21d264a66d53b0a910178ae7d9529cb5886a39b6 # build fix for recent compilers
71-
readonly version_rocksdb=8.1.1
72+
readonly version_rocksdb=10.10.1
7273
readonly version_lua=v5.4.7
7374
readonly version_linux=6.5.1
7475

@@ -104,6 +105,7 @@ setup_tbb=0
104105
setup_tc=0
105106
setup_tcg=0
106107
setup_yal=0
108+
setup_rmalloc=0
107109

108110
# bigger benchmarks
109111
setup_bench=0
@@ -147,6 +149,7 @@ while : ; do
147149
setup_tbb=$flag_arg
148150
setup_tc=$flag_arg
149151
setup_yal=$flag_arg
152+
setup_rmalloc=$flag_arg
150153
if [ -z "$darwin" ]; then
151154
setup_tcg=$flag_arg # lacking 'malloc.h'
152155
setup_dh=$flag_arg
@@ -176,6 +179,8 @@ while : ; do
176179
;;
177180
bench)
178181
setup_bench=$flag_arg;;
182+
rmalloc)
183+
setup_rmalloc=$flag_arg;;
179184
ff)
180185
setup_ff=$flag_arg;;
181186
fg)
@@ -280,6 +285,7 @@ while : ; do
280285
echo " tc setup tcmalloc ($version_tc)"
281286
echo " tcg setup Google's tcmalloc ($version_tcg)"
282287
echo " yal setup yalloc ($version_yal)"
288+
echo " rmalloc setup rmalloc($version_rmalloc)"
283289
echo ""
284290
echo " bench build all local benchmarks"
285291
echo " lean setup lean 3 benchmark"
@@ -467,6 +473,13 @@ if test "$setup_packages" = "1"; then
467473
fi
468474
fi
469475

476+
if test "$setup_rmalloc" = "1"; then
477+
checkout rmalloc $version_rmalloc https://github.com/newell-romario/rmalloc
478+
cmake -DCMAKE_BUILD_TYPE=RELEASE .
479+
make
480+
popd
481+
fi
482+
470483
if test "$setup_hm" = "1"; then
471484
checkout hm $version_hm https://github.com/GrapheneOS/hardened_malloc
472485
make CONFIG_NATIVE=true CONFIG_WERROR=false VARIANT=light -j $proc
@@ -770,9 +783,6 @@ if test "$setup_rocksdb" = "1"; then
770783
fi
771784

772785
cd "rocksdb-$version_rocksdb"
773-
set +e
774-
patch -p1 -N -r- < ../../patches/rocksdb_build.patch > /dev/null
775-
set -e
776786
DISABLE_WARNING_AS_ERROR=1 DISABLE_JEMALLOC=1 ROCKSDB_DISABLE_TCMALLOC=1 make db_bench -j $procs
777787
[ "$CI" ] && find . -name '*.o' -delete
778788
popd

patches/rocksdb_build.patch

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)