提交 5ba7de3d 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

use jemalloc. user-space microbenchmark scales better now.

上级 085b8849
......@@ -54,5 +54,6 @@
* user-space version
$ apt-get install libjemalloc-dev
$ make HW=user o.user/utest
......@@ -6,5 +6,5 @@ $(O)/utest: $(O)/kernel/crange.o \
$(O)/user/umain.o
@echo " LD $@"
$(Q)mkdir -p $(@D)
$(Q)$(CXX) -o $@ $^ -lpthread -lrt
$(Q)$(CXX) -o $@ $^ -lpthread -lrt -ljemalloc
......@@ -87,7 +87,7 @@ struct my_range : public range {
static pthread_barrier_t worker_b, populate_b;
enum { iter_total = 1000000 };
enum { iter_total = 10000000 };
enum { crange_items = 1024 };
static void
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论