User Tools

Site Tools


Sidebar

software:performance_co-pilot

This is an old revision of the document!


Compiling on RHEL7

  • install rhel7.5 x86_64
# activate base and optional channels

yum install \
  https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

yum -y install git flex python-devel make tar \
  bison perl-ExtUtils-MakeMaker.noarch gcc-c++
  
# ensure pcp user/group exist.
# 'make install' relies on this
useradd pcp

mkdir /pcpserv && cd /pcpserv
git clone https://github.com/performancecopilot/pcp
cd pcp
./Makepkgs
cd ./pcp-4.2.0/build/tar
./preinstall 
here=`pwd`
( cd /; tar xpf $here/pcp-*-[0-9]*.tar.gz )
./postinstall
systemctl start pmcd
systemctl status pmcd
pminfo 

# ./configure --prefix=/
# make
# make install

Compiling on Fedora30

  • install Fedora30
yum -y install git flex python-devel make tar \
  bison perl-ExtUtils-MakeMaker.noarch gcc-c++ \
  python3-devel rpm-build initscripts ncurses-devel \
  readline-devel zlib-devel
  
# ensure pcp user/group exist.
# 'make install' relies on this
useradd pcp

mkdir /pcpserv && cd /pcpserv
git clone https://github.com/performancecopilot/pcp
cd pcp
./Makepkgs
cd ./pcp-5*/build/rpm

<install rpms>

systemctl start pmcd
systemctl status pmcd
pminfo 

Compiling on Debian Buster

# libuv1-dev is important for pmseries binary/redis
apt-get install git dpkg-dev libpython3.7-dev debhelper libreadline-dev \
  chrpath python-all python3-all python3-dev libnspr4-dev libnss3-dev \
  libmicrohttpd-dev libavahi-common-dev libclass-dbi-perl \
  libdbd-mysql-perl python3-psycopg2 dh-python libcairo2-dev \
  libextutils-autoinstall-perl libxml-tokeparser-perl libjson-perl \
  libnet-snmp-perl libnss3-tools libuv1-dev

# ensure pcp user/group exist.
# 'make install' relies on this
# useradd pcp

mkdir ~pcpserv && cd ~pcpserv
git clone https://github.com/performancecopilot/pcp
cd pcp
./Makepkgs
cd build/deb

# remove/install
apt-get remove libpcp-gui2 libpcp-import1 libpcp-pmda-perl \
  libpcp-mmv1 libpcp-pmda3 libpcp-trace2 libpcp-web1 libpcp3 \
  pcp pcp-conf pcp-webapi python3-pcp
dpkg -i pcp_5.*_amd64.deb libpcp-gui2_5.*_amd64.deb \
  libpcp-import1_5.*_amd64.deb libpcp-mmv1_5.*_amd64.deb \
  libpcp-pmda-perl_*_amd64.deb \
  libpcp-pmda3_5.*_amd64.deb libpcp-trace2_5.*_amd64.deb \
  libpcp-web1_5.*_amd64.deb libpcp3_5.*_amd64.deb \
  pcp-conf_5.*_amd64.deb python3-pcp_5.*_amd64.deb

systemctl start pmcd
systemctl status pmcd

# in my setup:
# systemctl restart pmcd pmlogger pmproxy grafana-server redis-server
pminfo 

running the qa suite

# preparing for QA tests
useradd -m pcpqa
echo 'pcpqa   ALL=(ALL) NOPASSWD: ALL' >>/etc/sudoers
mkdir ~pcpqa/.ssh
cp /root/.ssh/authorized_keys ~pcpqa/.ssh
chown -R pcpqa:pcpqa ~pcpqa/.ssh

cd /var/lib/pcp/testsuite
./chk.setup
admin/check-vm
./check 000

$ cat ~/.gitconfig
[user]
email = chorn@redhat.com
name = Christian Horn
[push]
default = simple

own branches

# checkout own branch
git clone -b fix-lmsensors-parser \
  https://github.com/christianhorn/pcp.git fix-lmsensors-parser
  
# modify files
git commit .
git push

# pylint --output-format=colorized pmdalmsensors.python
# pylint --rcfile=/home/chris/Downloads/.pylintrc \
    --output-format=colorized pmdalmsensors.python
software/performance_co-pilot.1575510314.txt ยท Last modified: 2019/12/05 02:45 by chris