HP Benchmark安装记录
操作系统信息
#uname -r
2.6.32-220.el6.x86_64
#cat /etc/issue
CentOS release 6.2 (Final)
#gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)
MonetDB+tpc-h
#tar -xjvf MonetDB-11.5.9.tar.bz2
#`pwd`/configure --enable-monetdb5 --enable-sql --enable-optimize --with-java=/usr/lib/jvm/java-1.6.0
//configure: error: OpenSSL library not found but required for MonetDB5
#yum install openssl-devel
//configure: error: PCRE library not found but required for MonetDB5
#yum install pcre-devel pcre
//configure: error: libxml2 library not found but required for MonetDB5
#yum install libxml2-devel
#make && make install
#monetdbd create MonetDB-data
#monetdbd start MonetDB-data
#monetdb create SF4
#monetdb start SF4
#monetdb release SF4
#cd ./sql/benchmarks/tpch/dbgen
#cp makefile.suite makefile
#make
#./dbgen -s 4 //produce 4G data for test
#cd ..
#vim load.sh //change the following stuff
SQL='mclient -l sql -d SF4'
SF='dbgen'
#vim run.all //change the following stuff
SQL="mclient -l sql -d SF4"
#vim .monetdb //add the defult user and password
user=monetdb
password=monetdb
#cp -r dbgen DBGEN //rename the folder for load.sh
voltdb+tpc-c
#unzip voltdb-master.zip //get this file from github
//add the EPEL yum source
//and make sure the ant's version is 1.7 or later
#ant dist
#cd tests/test_apps/tpcc
#./run.sh //run the server
#./run.sh client //run the client
memcached+britus
//install libevent,download the file then
#./configure --prefix=/usr && make && make install
//install php and extensions
#yum install php php-pecl-memcached php-pear-noarch
//install memcached
#./configure && make && make install
//start the memcached
#/usr/local/bin/memcached -d -m 1024 -u root -l [your ip address] -p 12000 -c 1024 -P memcached.pid
//if you want to stop memcached
#kill `cat memcached.pid`
//restart the apache
#service httpd restart
#./brutis -t tests/append.xml -x [your ip address]:12000 -o append -v
more tips
//solution for PHP Fatal error: Call to undefined function posix_getppid()
#install php-process
//solution for function XXX is deprecated,in php
#add a '@' before the deprecated function
//solution for XML. Class DOMDocument missing
#yum install php-xml.x86_64