Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: maddingue/xenballoond
base: 030efaf464
...
head fork: maddingue/xenballoond
compare: 96c8236ca7
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
1  Changes
@@ -1,5 +1,6 @@
Release history for xenballoond
+1.1.0 - 2011.08.27
- [FEATURE] Add support for the 'soft_max_mem' config parameter and XenBus
path {memory/minmem} to control the maximum allowed size.
- [FEATURE] Allow to override minmem from XenBus path {memory/minmem}.
View
2  lib/xenballoond/meta.py
@@ -2,7 +2,7 @@
""" program meta-information """
name = "xenballoond"
-version = "1.0.0"
+version = "1.1.0"
license = "GPL"
authors = "Nicolas Agius, Sebastien Aperghis-Tramoni, David Passante"
url = "https://github.com/maddingue/xenballoond"
View
12 lib/xenballoond/xenballoon.py
@@ -40,6 +40,7 @@ class Xenballoon:
# --------
## Initialisation
# @param config a ConfigParser instance
+ #
def __init__(self, config):
self.config = config
@@ -47,7 +48,7 @@ def __init__(self, config):
#
# minmb()
# -----
- # @return integer
+ # @return integer minimum memory size, in megabytes
#
def minmb(self):
if self.xenstore_enabled:
@@ -153,6 +154,9 @@ def softmaxmem(self):
#
# selfballoon()
# -----------
+ ## Indicates whether self-ballooning is enabled or not.
+ # @return boolean true when self-ballooning is enabled
+ #
def selfballoon(self):
if self.xenstore_enabled:
cmd = [self.xs_read, "memory/selfballoon"]
@@ -211,6 +215,8 @@ def balloon_to_target(self, target=None):
#
# fetch_memory_stats()
# ------------------
+ ## Fetch and parse the memory stats from /proc/meminfo
+ #
def fetch_memory_stats(self):
input = open(self.proc_meminfo, "r")
@@ -231,6 +237,8 @@ def fetch_memory_stats(self):
#
# send_memory_stats()
# -----------------
+ ## Post the memory stats to XenBus, when configured to do so.
+ #
def send_memory_stats(self):
if not self.xenstore_enabled:
return
@@ -250,6 +258,8 @@ def send_memory_stats(self):
#
# send_cpu_stats()
# --------------
+ ## Post the CPU stats to XenBus, when configured to do so.
+ #
def send_cpu_stats(self):
if self.config.getboolean("xenballoond", "send_cpustat"):
param_lst = [ 'loadavg', 'loadavg5', 'loadavg10', 'run_proc',

No commit comments for this range

Something went wrong with that request. Please try again.