Blob Blame History Raw
commit 7be598c7ffdf1f934e43af88a42e8b1e6391f91e
Author: Aravinda Prasad <aravinda@linux.vnet.ibm.com>
Date:   Thu Dec 6 16:21:10 2018 +0530

    lparstat: Enable desired and maximum memory stats
    
    This patch enables the display of desired memory
    and maximum memory stats with lparstat -i flag.
    The value for these stats are already available
    in /proc/powerpc/lparcfg file.
    
    v2: updated man pages.
    
    Signed-off-by: Aravinda Prasad <aravinda@linux.vnet.ibm.com>
    Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

diff --git a/man/lparstat.8 b/man/lparstat.8
index 4872a37..9721580 100644
--- a/man/lparstat.8
+++ b/man/lparstat.8
@@ -136,6 +136,12 @@ Amount of memory currently online.
 Minimum Memory
     Minimum memory this LPAR was defined to ever have. 
 .TP
+Desired Memory
+    Indicates the desired amount of memory.
+.TP
+Maximum Memory
+    Maximum possible amount of memory.
+.TP
 Variable Capacity Weight
     The priority weight assigned to this LPAR which controls how extra (idle) capacity is allocated to it. A weight of -1 indicates a soft cap is in place. 
 .TP
diff --git a/src/lparstat.h b/src/lparstat.h
index 20bb939..c447692 100644
--- a/src/lparstat.h
+++ b/src/lparstat.h
@@ -142,6 +142,8 @@ struct sysentry system_data[] = {
 	 .descr = "Minimum Memory"},
 	{.name = "DesMem",
 	 .descr = "Desired Memory"},
+	{.name = "MaxMem",
+	 .descr = "Maximum Memory"},
 	{.name = "entitled_memory",
 	 .descr = "Total I/O Memory Entitlement"},
 	{.name = "mapped_entitled_memory",
@@ -261,6 +263,7 @@ char *iflag_entries[] = {
 	"MinProcs",
 	"MemTotal",
 	"MinMem",
+	"DesMem",
 	"MaxMem",
 	"MinEntCap",
 	"partition_max_entitled_capacity",