SLATest Tools

Load Generator

SYNOPSIS java -jar lg.jar [options] url DESCRIPTION

lg.jar generate request to a single url. The requests are generated in a poisson process and the percentage of requests that were not conformoed with the given SLA is recorded.

OPTIONS

Bandwidth Tester

SYNOPSIS java -jar bw.jar url DESCRIPTION

bw.jar simply download the file at the specified url and calculate the available bandwidth to this server. The output of bw.jar is the bandwidth in MBits / sec.

Migration Simulator

SYNOPSIS java -jar ms.jar [options] C trace_file cost_function_class migration_alg_class DESCRIPTION

The migration simulator simulate a live migration of a VM described by the trace_file, on a machine with a link capacity C (Mbits / sec), a cost function implemented by cost_function_class, using migration algorithem implemented by the migration_alg_class and optionaly using a configuration file for the cost function and the migration algorithm.

OPTIONS TRACE FILE FORMAT

The first line of the trace file contains a single integer value that is the number of pages the VM has. All other lines have the following format <time stamp in millisecond> <page id> which mean that a write operation was performed to the page with <page id> at time <time stamp in millisecond>.

Example Of a trace file:

1024 0 5 12 34 38 8

NOTE: page ids MUST be in the range [0..size - 1]

COST FUNCTION CLASS

This is a Java class which implements the interface main.CostFunction which defines the following method:

void init(String configFile); double cost(double bwServiceMbits); ALGORITHM CLASS

This is a Java class which implements the interface main.MigrationAlgorithm.

void init(String configFile); void run(MigrationManager mm);

Uniform Trace Generator

SYNOPSIS java -jar utg.jar size time p trace_file DESCRIPTION

utg.jar generates a uniforme trace file. The size is the number of pages, time is the time in milliseconds, p is the probability for page to get dirty and trace_file is the output file.