ia64/xen-unstable

changeset 5933:c4cb2167d3c7

This patch renames balloon command to "set-mem", so instead of "xm
balloon", we will use "xm set-mem" (as suggested by TODO list)

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Jul 29 10:37:30 2005 +0000 (2005-07-29)
parents 2c0036a1cf4f
children 0e2461cdbad1
files docs/src/user.tex tools/python/xen/xm/main.py
line diff
     1.1 --- a/docs/src/user.tex	Fri Jul 29 10:36:53 2005 +0000
     1.2 +++ b/docs/src/user.tex	Fri Jul 29 10:37:30 2005 +0000
     1.3 @@ -930,12 +930,12 @@ memory at the request of the administrat
     1.4  \subsection{Setting memory footprints from dom0}
     1.5  
     1.6  The machine administrator can request that a domain alter its memory
     1.7 -footprint using the \path{xm balloon} command.  For instance, we can
     1.8 +footprint using the \path{xm set-mem} command.  For instance, we can
     1.9  request that our example ttylinux domain reduce its memory footprint
    1.10  to 32 megabytes.
    1.11  
    1.12  \begin{verbatim}
    1.13 -# xm balloon ttylinux 32
    1.14 +# xm set-mem ttylinux 32
    1.15  \end{verbatim}
    1.16  
    1.17  We can now see the result of this in the output of \path{xm list}:
    1.18 @@ -951,16 +951,16 @@ The domain has responded to the request 
    1.19  can restore the domain to its original size using the command line:
    1.20  
    1.21  \begin{verbatim}
    1.22 -# xm balloon ttylinux 64
    1.23 +# xm set-mem ttylinux 64
    1.24  \end{verbatim}
    1.25  
    1.26  \subsection{Setting memory footprints from within a domain}
    1.27  
    1.28 -The virtual file \path{/proc/xen/memory\_target} allows the owner of a
    1.29 +The virtual file \path{/proc/xen/balloon} allows the owner of a
    1.30  domain to adjust their own memory footprint.  Reading the file
    1.31 -(e.g. \path{cat /proc/xen/memory\_target}) prints out the current
    1.32 +(e.g. \path{cat /proc/xen/balloon}) prints out the current
    1.33  memory footprint of the domain.  Writing the file
    1.34 -(e.g. \path{echo new\_target > /proc/xen/memory\_target}) requests
    1.35 +(e.g. \path{echo new\_target > /proc/xen/balloon}) requests
    1.36  that the kernel adjust the domain's memory footprint to a new value.
    1.37  
    1.38  \subsection{Setting memory limits}
    1.39 @@ -1285,7 +1285,7 @@ custom variables (for instance, the \pat
    1.40  The available commands are as follows:
    1.41  
    1.42  \begin{description}
    1.43 -\item[balloon] Request a domain to adjust its memory footprint.
    1.44 +\item[set-mem] Request a domain to adjust its memory footprint.
    1.45  \item[create] Create a new domain.
    1.46  \item[destroy] Kill a domain immediately.
    1.47  \item[list] List running domains.
     2.1 --- a/tools/python/xen/xm/main.py	Fri Jul 29 10:36:53 2005 +0000
     2.2 +++ b/tools/python/xen/xm/main.py	Fri Jul 29 10:37:30 2005 +0000
     2.3 @@ -563,9 +563,9 @@ class ProgMaxmem(Prog):
     2.4  
     2.5  xm.prog(ProgMaxmem)
     2.6  
     2.7 -class ProgBalloon(Prog):
     2.8 +class ProgSetMem(Prog):
     2.9      group = 'domain'
    2.10 -    name  = 'balloon'
    2.11 +    name  = 'set-mem'
    2.12      info  = """Set the domain's memory footprint using the balloon driver."""
    2.13  
    2.14      def help(self, args):
    2.15 @@ -579,7 +579,7 @@ MEMORY_TARGET megabytes"""
    2.16          mem_target = int_unit(args[2], 'm')
    2.17          server.xend_domain_mem_target_set(dom, mem_target)
    2.18  
    2.19 -xm.prog(ProgBalloon)
    2.20 +xm.prog(ProgSetMem)
    2.21  
    2.22  class ProgVcpuhotplug(Prog):
    2.23      group = 'domain'