diff lxcstats.h @ 9:6f2e13f5fcfd

Add the memory probe
author Louis Opter <louis@dotcloud.com>
date Sun, 02 Jan 2011 01:50:27 +0100
parents 8339ab15527d
children cff6be97dae1
line wrap: on
line diff
--- a/lxcstats.h	Sun Jan 02 01:14:56 2011 +0100
+++ b/lxcstats.h	Sun Jan 02 01:50:27 2011 +0100
@@ -19,6 +19,12 @@
         uint32_t    system;     /*< CPU time spent in kernelland                        */
         uint32_t    *percpu;    /*< CPU time per CPU (zero-terminated array or NULL)    */
     }               cpuacct;    /*< CPU accounting in USER_HZ                           */
+    struct {
+        uint64_t    used;       /*< RAM used by applications                            */
+        uint64_t    mapped;     /*< RAM used for mapped file (includes tmpfs/shmem)     */
+        uint64_t    cached;     /*< RAM cached by the kernel                            */
+        uint64_t    swapped;    /*< SWAP used                                           */
+    }               memory;     /*< Memory accounting in bytes                          */
 };
 
 /**