GoogleCloudPlatform / PerfKitBenchmarker

PerfKit Benchmarker (PKB) contains a set of benchmarks to measure and compare cloud offerings. The benchmarks use default settings to reflect what most users will see. PerfKit Benchmarker is licensed under the Apache 2 license terms. Please make sure to read, understand and agree to the terms of the LICENSE and CONTRIBUTING files before proceeding.
https://googlecloudplatform.github.io/PerfKitBenchmarker/
Apache License 2.0
1.89k stars 480 forks source link

Redis benchmark doesn't compile on POWERpc #911

Open mlpesant opened 8 years ago

mlpesant commented 8 years ago

I'm trying to run the redis test with the command

./pkb.py --static_vm_file=tul121p1.json --benchmarks=redis --os_type=ubuntu_container --image=ubuntu_ssh --redis_clients=4

and I get the error below

MAKE jemalloc
cd jemalloc && ./configure --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops " LDFLAGS=""
checking for xsltproc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of void *... 8
checking size of int... 4
checking size of long... 8
checking size of intmax_t... 8
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2012-02-10, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2012-02-10

uname -m = ppc64le
uname -r = 4.2.0-34-generic
uname -s = Linux
uname -v = #39-Ubuntu SMP Thu Mar 10 22:11:28 UTC 2016

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = ppc64le
UNAME_RELEASE = 4.2.0-34-generic
UNAME_SYSTEM  = Linux
UNAME_VERSION = #39-Ubuntu SMP Thu Mar 10 22:11:28 UTC 2016
configure: error: cannot guess build type; you must specify one
Makefile:74: recipe for target 'jemalloc' failed
make[2]: *** [jemalloc] Error 1
make[2]: Leaving directory '/tmp/pkb/redis-2.8.9/deps'
Makefile:136: recipe for target 'persist-settings' failed
make[1]: [persist-settings] Error 2 (ignored)
    CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
compilation terminated.
Makefile:191: recipe for target 'adlist.o' failed
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory '/tmp/pkb/redis-2.8.9/src'
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 2
root@e56676aaed95:/tmp/pkb/redis-2.8.9# 

I tried downloading the latest stable version of redis (3.0) and it compiled without complaints. Is there a reason PerfKitBenchmarker download an old version of redis instead of wget http://download.redis.io/releases/redis-stable.tar.gz?

Thanks!

voellm commented 8 years ago

Thanks for both trying this and root causing the problem.

We are happy to update to the latest Redis. Are you able to put together a pull request?

mlpesant commented 8 years ago

On it!