Skip to content

Commit

Permalink
add ovis hpc as metric; (#14)
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
Co-authored-by: vsoch <[email protected]>
  • Loading branch information
vsoch and vsoch committed Aug 16, 2023
1 parent cd8e08a commit 4de37b9
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
["pennant", "ghcr.io/converged-computing/metric-pennant:latest"],
["qmcpack", "ghcr.io/converged-computing/metric-qmcpack:latest"],
["quicksilver", "ghcr.io/converged-computing/metric-quicksilver:latest"],
["ovis-hpc", "ghcr.io/converged-computing/metric-ovis-hpc:latest"],
["kripke", "ghcr.io/converged-computing/metric-kripke:latest"],
["nekbone", "ghcr.io/converged-computing/metric-nekbone:latest"],
["lammps", "ghcr.io/converged-computing/metric-lammps:latest"]]
Expand Down
55 changes: 55 additions & 0 deletions ovis-hpc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
ARG tag=latest
FROM ubuntu:${tag}

# docker build -t test .
# docker run -itd --name test test
# docker exec -it test bash

# Without -a munge because we've disabled auth
# ldms_ls -h localhost -x sock -p 10444
# ldms_ls -h localhost -x sock -p 10444 -v
# ldms_ls -h localhost -x sock -p 10444​ -l
# ldms_ls -h localhost -x sock -p 10444​ -l -v


# This container is intended for testing the fusion fileystem as an application.
RUN apt-get update && apt-get install -y \
autoconf \
autogen \
bison \
build-essential \
doxygen \
gcc g++ \
flex \
gettext \
libtool \
libreadline-dev \
libevent-dev \
libssl-dev \
libtool \
openssl \
pkg-config \
swig \
systemctl \
python3-yaml \
python3 \
python3-dev \
libglib2.0-dev \
git \
munge

WORKDIR /opt
RUN git clone https://github.com/ovis-hpc/ovis && \
cd ovis && \
./autogen.sh && \
./configure --prefix=/usr && make && make install

ENV LDMSD_PLUGIN_LIBPATH=/usr/lib/ovis-ldms
ENV ZAP_LIBPATH=/usr/lib/ovis-ldms
ENV COMPONENT_ID=1
ENV SAMPLE_INTERVAL=1000000
ENV SAMPLE_OFFSET=50000
COPY ./sampler.conf /opt/sampler.conf

COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
11 changes: 11 additions & 0 deletions ovis-hpc/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Setup munge
mkdir -p /run/munge
chown -R 0 /var/log/munge /var/lib/munge /etc/munge /run/munge


# Skip munge for now, not on a cluster
# ldmsd -x sock:10444 -c /opt/sampler.conf -l /tmp/demo_ldmsd_log -v DEBUG -a munge -r $(pwd)/ldmsd.pid
ldmsd -x sock:10444 -c /opt/sampler.conf -l /tmp/demo_ldmsd_log -v DEBUG -r $(pwd)/ldmsd.pid
sleep infinity
7 changes: 7 additions & 0 deletions ovis-hpc/sampler.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
load name=meminfo
config name=meminfo producer=${HOSTNAME} instance=${HOSTNAME}/meminfo component_id=${COMPONENT_ID} schema=meminfo job_set=${HOSTNAME}/jobinfo uid=12345 gid=12345 perm=0755
start name=meminfo interval=${SAMPLE_INTERVAL} offset=${SAMPLE_OFFSET}
#
load name=vmstat
config name=vmstat producer=${HOSTNAME} instance=${HOSTNAME}/vmstat component_id=${COMPONENT_ID} schema=vmstat job_set=${HOSTNAME}/jobinfo uid=0 gid=0 perm=0755
start name=vmstat interval=${SAMPLE_INTERVAL} offset=${SAMPLE_OFFSET}

0 comments on commit 4de37b9

Please sign in to comment.