Modify how MemCap collects util and saturation

This CL modifies how MemCap collects utilization such that
the only the percentage usage of main memory is captured. It also
modifies how saturation is collected such that a percentage of the
total Swap memory is used as a threshold. If total swap memory is 0,
a threshold is placed on utilization. This CL also modifies unit tests
accordingly.

Change-Id: I066d55c534c857572790598869ab3c9078708654
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/21110
Reviewed-by: Dexter Rivera <riverade@google.com>
Tested-by: Dexter Rivera <riverade@google.com>
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
2 files changed
tree: 2638b89f411f8323df397627c83380c1c08fdec1
  1. release/
  2. src/
  3. testing/
  4. BUILD.bazel
  5. cloudbuild.yaml
  6. CONTRIBUTING.md
  7. deps.bzl
  8. go.mod
  9. go.sum
  10. LICENSE
  11. README.md
  12. run_tests.sh
  13. WORKSPACE
README.md

Tools for Container-Optimized OS

This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.

See CONTRIBUTING.md for how to contribute.