Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 3 files changed
  • 0 comments
  • 1 contributor
1  Changes
... ... @@ -1,5 +1,6 @@
1 1 Release history for xenballoond
2 2
  3 +1.1.0 - 2011.08.27
3 4 - [FEATURE] Add support for the 'soft_max_mem' config parameter and XenBus
4 5 path {memory/minmem} to control the maximum allowed size.
5 6 - [FEATURE] Allow to override minmem from XenBus path {memory/minmem}.
2  lib/xenballoond/meta.py
@@ -2,7 +2,7 @@
2 2 """ program meta-information """
3 3
4 4 name = "xenballoond"
5   -version = "1.0.0"
  5 +version = "1.1.0"
6 6 license = "GPL"
7 7 authors = "Nicolas Agius, Sebastien Aperghis-Tramoni, David Passante"
8 8 url = "https://github.com/maddingue/xenballoond"
12 lib/xenballoond/xenballoon.py
@@ -40,6 +40,7 @@ class Xenballoon:
40 40 # --------
41 41 ## Initialisation
42 42 # @param config a ConfigParser instance
  43 + #
43 44 def __init__(self, config):
44 45 self.config = config
45 46
@@ -47,7 +48,7 @@ def __init__(self, config):
47 48 #
48 49 # minmb()
49 50 # -----
50   - # @return integer
  51 + # @return integer minimum memory size, in megabytes
51 52 #
52 53 def minmb(self):
53 54 if self.xenstore_enabled:
@@ -153,6 +154,9 @@ def softmaxmem(self):
153 154 #
154 155 # selfballoon()
155 156 # -----------
  157 + ## Indicates whether self-ballooning is enabled or not.
  158 + # @return boolean true when self-ballooning is enabled
  159 + #
156 160 def selfballoon(self):
157 161 if self.xenstore_enabled:
158 162 cmd = [self.xs_read, "memory/selfballoon"]
@@ -211,6 +215,8 @@ def balloon_to_target(self, target=None):
211 215 #
212 216 # fetch_memory_stats()
213 217 # ------------------
  218 + ## Fetch and parse the memory stats from /proc/meminfo
  219 + #
214 220 def fetch_memory_stats(self):
215 221 input = open(self.proc_meminfo, "r")
216 222
@@ -231,6 +237,8 @@ def fetch_memory_stats(self):
231 237 #
232 238 # send_memory_stats()
233 239 # -----------------
  240 + ## Post the memory stats to XenBus, when configured to do so.
  241 + #
234 242 def send_memory_stats(self):
235 243 if not self.xenstore_enabled:
236 244 return
@@ -250,6 +258,8 @@ def send_memory_stats(self):
250 258 #
251 259 # send_cpu_stats()
252 260 # --------------
  261 + ## Post the CPU stats to XenBus, when configured to do so.
  262 + #
253 263 def send_cpu_stats(self):
254 264 if self.config.getboolean("xenballoond", "send_cpustat"):
255 265 param_lst = [ 'loadavg', 'loadavg5', 'loadavg10', 'run_proc',

No commit comments for this range

Something went wrong with that request. Please try again.