Skip to content

Commit

Permalink
Helm chart for pcm:
Browse files Browse the repository at this point in the history
old comments:

sys/pci/mcfg mounts are unnessesary for indirect method
fix old wrong defaults in README
fix formatting
possible fix for issue with resctrl
remove hacks to handle /pcm/resctrl and unessesary out-of-date files
update License to use the same as pcm itself
update README, remove out-of-date info
links do values
formatting + links do values
update README an values comments
update README
address jcfunk comments: interval and extra labels for PodMonitor + refactor readme
fix typos
readme: reminder about removing msr kernel module
after rebasing: point to correct default pcm image from intel organization

Refactoring:

- explicit values file for privileged direct method,
- hide (into docs directory) "unprivileged" direct method (and fixes),
- remove unnessesary mounts (mcfg, /dev/cpu/dev/mem for privileged access),
- add instructions to collection methods,
- fixes (extra builder) for build local development image,
- silent mode
- move collection methods to the top

fix values files for direct privileged method

New: support for PERFMON capability, silent mode and some extra env
debug variables

VPA: v1 - first version of vertical pod autoscaler

Grafana dashboard: instructions

rename resctrlHostMount to resctrlMount

fix dashboard rate interval

pcm-sensor-server: add new metrics DRAM Local percantage

Fix dockerbuild by using separate Dockerfile + build in dockerignore

improve dockerfile.debug

extra env PCM_NO_MAIN_EXCEPTION_HANDLER
  • Loading branch information
ppalucki committed Jun 5, 2024
1 parent 2a914c8 commit cdb10cd
Show file tree
Hide file tree
Showing 25 changed files with 1,242 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
/deployment
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ latex/
.vs/
.idea/
build
src/simdjson
src/simdjson
/deployment/pcm/smarter-device-manager/
/deployment/pcm/nri/
/deployment/pcm/kind-with-registry.sh
/deployment/pcm/autoscaler
6 changes: 6 additions & 0 deletions Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM fedora:40@sha256:4e007f288dce23966216be81ef62ba05d139b9338f327c1d1c73b7167dd47312 as builder

RUN dnf -y install gcc-c++ git findutils make cmake strace gdb util-linux
COPY . /tmp/pcm
RUN --mount=type=cache,target=/tmp/pcm/build cd /tmp/pcm/build && cmake -D CMAKE_BUILD_TYPE=Debug .. && cmake --build . -t pcm pcm-sensor-server pcm-tpmi -j && cp -v /tmp/pcm/build/bin/pcm* /bin/
#ENV PCM_NO_PERF=1
26 changes: 26 additions & 0 deletions deployment/pcm/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
smarter-device-manager/
nri/
autoscaler/
9 changes: 9 additions & 0 deletions deployment/pcm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v2
name: pcm
version: 0.1.0
appVersion: "202403"
description: A PCM Helm chart for Kubernetes
home: https://github.com/intel/pcm
maintainers:
- name: Pawel Palucki
email: [email protected]
30 changes: 30 additions & 0 deletions deployment/pcm/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
BSD 3-Clause License

Copyright (c) 2009-2024, Intel Corporation
Copyright (c) 2016-2020, opcm
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading

0 comments on commit cdb10cd

Please sign in to comment.