Skip to content
aglitke edited this page Dec 29, 2010 · 25 revisions

MOM is designed to enable dynamic tuning of a KVM host in response to statistics that are continuously collected from the host and its running guests. This tuning policy is described using a LISP-like mini-language as described here.

Comments

Comments are expressed with the ‘#’ symbol. When ‘#’ is encountered, it and all remaining characters on the line are ignored.

Example:

# This is a full line comment
(+ 1 1) # This is a partial-line comment

Numbers

Arithmetic Operators

Compound Statements

Remember to state that the result of a compound statement is the last value in the block.

Logic and Comparison

Variables and Scope

Macros

The let Statement

The if Statement

Entities

The Input Entities: Host and Guests

Input Entity Methods

Prop, Stat, StatAvg, SetVar, GetVar

Controller Entities

Control()

The with Guests Construct

External Functions

  • (abs x): Return the absolute value of ‘x’
Clone this wiki locally