google / fleetbench

Benchmarking suite for Google workloads
Apache License 2.0
116 stars 10 forks source link

Provide a way to bench memory allocators #2

Open jvoisin opened 2 years ago

jvoisin commented 2 years ago

Mimalloc-bench would like to make use of fleetbench, but unfortunately, it seems that the usage of tcmalloc is hardcoded into the binaries. Would it be possible to make it optional, since mimalloc-bench is using LD_PRELOAD to override malloc/free/….

aysylu commented 2 years ago

Hi @jvoisin,

Fleetbench is built with Bazel, which supports --custom_malloc option (bazel docs). This should allow you to override the malloc attributed configured to take tcmalloc as the default. Could you please try this and let us know?

Yasaswinig7 commented 1 month ago

Hi @jvoisin and @aysylu , Are you able to run fleetbench with other allocators (other than tcmalloc and system/glibc) ?

jvoisin commented 2 hours ago

I haven't tried :/