#!/bin/sh while sleep 1 ; do xenstore-write memory/meminfo "`cat /proc/meminfo`" done