From dbc30d321bd385e5cd5bce1e6f567ade9ca1aa25 Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Tue, 12 Sep 2017 08:22:07 +0200 Subject: HONEYCOMB-392 - Footprint measuring support Change-Id: I079c8ceef84cda43159e1823fe42ad77cdc981e8 Signed-off-by: Jan Srnicek --- .../footprint-api/src/main/yang/footprint.yang | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 infra/footprint/footprint-api/src/main/yang/footprint.yang (limited to 'infra/footprint/footprint-api/src') diff --git a/infra/footprint/footprint-api/src/main/yang/footprint.yang b/infra/footprint/footprint-api/src/main/yang/footprint.yang new file mode 100644 index 000000000..680f15c2a --- /dev/null +++ b/infra/footprint/footprint-api/src/main/yang/footprint.yang @@ -0,0 +1,28 @@ +module footprint { + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:footprint"; + prefix "footprint"; + + revision "2017-08-30" { + description "HC model for requesting current memory consumption"; + } + + container memory-footprint-state { + config false; + + leaf footprint { + type uint32; + description "Memory footprint in kilobytes. Footprint is parsed as output of ps command, where RSS field is + read. + + RSS is the Resident Set Size and is used to show how much memory is allocated to that process and is in RAM. + It does not include memory that is swapped out. It does include memory from shared libraries + as long as the pages from those libraries are actually in memory. It does include all stack and heap memory."; + } + + leaf pid { + type uint32; + description "Process id of honeycomb"; + } + } +} -- cgit