import socket
import time
-# util-vserver/python/vserver.py allows us to control slices directly
-# from Python
-from vserver import VServer
-
# bwlimit exports a few useful functions like run(), get_xid(), and get_slice()
import bwlimit
while True:
used = swap_used()
if last_used is None: last_used = used
-
if used >= reboot_thresh:
# Dump slice state before rebooting