Skip to content

Commit

Permalink
pmembench: add rpmem_persist benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan M Michalski committed Oct 20, 2016
1 parent c6da8d5 commit b236af6
Show file tree
Hide file tree
Showing 3 changed files with 501 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/benchmarks/Makefile
Expand Up @@ -113,6 +113,16 @@ LIBS += -lpmemobj -lpmemlog -lpmemblk -lpmem -lvmem -pthread -lm -ldl
ifeq ($(call check_librt), n)
LIBS += -lrt
endif

ifeq ($(BUILD_RPMEM),y)
SRC += rpmem_persist.c
LIBS += -lrpmem
CONFIGS += pmembench_rpmem
else
$(info NOTE: Skipping librpmem benchmark because libfabric is missing \
-- see src/librpmem/README for details.)
endif

CFLAGS = -std=gnu99
CFLAGS += -Wall
CFLAGS += -Werror
Expand Down
25 changes: 25 additions & 0 deletions src/benchmarks/pmembench_rpmem.cfg
@@ -0,0 +1,25 @@
#
# pmembench_rpmem.cfg -- this is an example config file for pmembench
# with scenarios for rpmem benchmark
#

# Global parameters
[global]
group = rpmem
file = testfile.poolset.rpmem
ops-per-thread = 10000

[rpmem_persist_DS8]
bench = rpmem_persist
threads = 1:+1:32
data-size = 8

[rpmem_persist_DS512]
bench = rpmem_persist
threads = 1:+1:32
data-size = 512

[rpmem_persist_DS1024]
bench = rpmem_persist
threads = 1:+1:32
data-size = 1024

0 comments on commit b236af6

Please sign in to comment.