From 75c92ba474e7cd68360b94c90a09a10f0cab61d0 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Tue, 29 Aug 2023 17:53:17 +0000 Subject: [PATCH] metrics: Add memory inside container to metrics report This PR adds memory inside container to metrics report. Signed-off-by: Gabriela Cervantes (cherry picked from commit 3b0d6538f2c3eae0919b0ae85d377c924d5c9022) --- .../report/report_dockerfile/metrics_report.Rmd | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/metrics/report/report_dockerfile/metrics_report.Rmd b/tests/metrics/report/report_dockerfile/metrics_report.Rmd index 27f4e2b1d7..68ff50923f 100644 --- a/tests/metrics/report/report_dockerfile/metrics_report.Rmd +++ b/tests/metrics/report/report_dockerfile/metrics_report.Rmd @@ -27,3 +27,15 @@ source('footprint-density.R') rm(test_name_extra) ``` \pagebreak + +# Memory used inside container +This [test](https://github.com/kata-containers/kata-containers/blob/main/metrics/density/memory_usage_inside_container.sh) +measures the memory inside a container taken by the container runtime. It shows the difference between the amount of memory requested for the container, and the amount the container can actually 'see'. + +The *% Consumed* is the key row in the table, which compares the *Requested* against *Total* values. + + +```{r mem-in-cont, echo=FALSE, fig.cap="System Memory density"} +source('mem-in-cont.R') +``` +\pagebreak