diff --git a/src/benchmarks/obj_pmalloc.cpp b/src/benchmarks/obj_pmalloc.cpp index 614bdf074e2..c0efdffd8bf 100644 --- a/src/benchmarks/obj_pmalloc.cpp +++ b/src/benchmarks/obj_pmalloc.cpp @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BSD-3-Clause -/* Copyright 2015-2020, Intel Corporation */ +/* Copyright 2015-2024, Intel Corporation */ /* * obj_pmalloc.cpp -- pmalloc benchmarks definition @@ -27,7 +27,7 @@ * The factor used for PMEM pool size calculation, accounts for metadata, * fragmentation and etc. */ -#define FACTOR 1.2f +#define FACTOR 1.9f /* The minimum allocation size that pmalloc can perform */ #define ALLOC_MIN_SIZE 64 @@ -236,7 +236,7 @@ pmalloc_op(struct benchmark *bench, struct operation_info *info) int ret = pmalloc(ob->pop, &ob->offs[i], ob->sizes[i], 0, 0); if (ret) { - fprintf(stderr, "pmalloc ret: %d\n", ret); + perror("pmalloc"); return ret; } diff --git a/src/benchmarks/pmemobj_tx.cpp b/src/benchmarks/pmemobj_tx.cpp index 9fca99cefbf..3c4ff0fbf33 100644 --- a/src/benchmarks/pmemobj_tx.cpp +++ b/src/benchmarks/pmemobj_tx.cpp @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BSD-3-Clause -/* Copyright 2015-2020, Intel Corporation */ +/* Copyright 2015-2024, Intel Corporation */ /* * pmemobj_tx.cpp -- pmemobj_tx_alloc(), pmemobj_tx_free(), @@ -19,7 +19,7 @@ #include "poolset_util.hpp" #define LAYOUT_NAME "benchmark" -#define FACTOR 1.2f +#define FACTOR 1.3f #define ALLOC_OVERHEAD 64 /* * operations number is limited to prevent stack overflow during