gdunlap/sched-sim.hg

view workloads.c @ 2:1d7310217c5a

Add command-line options
author George Dunlap <gdunlap@xensource.com>
date Wed Oct 14 16:12:26 2009 +0100 (2009-10-14)
parents ec2d50e41437
children 92a58ca1e356
line source
1 #include <stdlib.h>
2 #include "workload.h"
4 const int default_workload = 0;
5 struct workload builtin_workloads[] =
6 {
7 {
8 .name="r1",
9 .vm_count=3,
10 .vm_workloads = {
11 { .phase_count = 2,
12 .list = {
13 {
14 .type=PHASE_RUN,
15 .time=70
16 },
17 {
18 .type=PHASE_BLOCK,
19 .time=250
20 },
21 }
22 },
23 { .phase_count = 2,
24 .list = {
25 {
26 .type=PHASE_RUN,
27 .time=500
28 },
29 {
30 .type=PHASE_BLOCK,
31 .time=500
32 },
33 }
34 },
35 { .phase_count = 2,
36 .list = {
37 {
38 .type=PHASE_RUN,
39 .time=1295
40 },
41 {
42 .type=PHASE_BLOCK,
43 .time=5
44 },
45 }
46 },
47 }
48 },
49 {
50 .name="Sx3",
51 .vm_count=3,
52 .vm_workloads = {
53 { .phase_count = 2,
54 .list = {
55 {
56 .type=PHASE_RUN,
57 .time=695
58 },
59 {
60 .type=PHASE_BLOCK,
61 .time=5
62 },
63 }
64 },
65 { .phase_count = 2,
66 .list = {
67 {
68 .type=PHASE_RUN,
69 .time=1095
70 },
71 {
72 .type=PHASE_BLOCK,
73 .time=5
74 },
75 }
76 },
77 { .phase_count = 2,
78 .list = {
79 {
80 .type=PHASE_RUN,
81 .time=1295
82 },
83 {
84 .type=PHASE_BLOCK,
85 .time=5
86 },
87 }
88 },
89 }
90 },
91 { .name=NULL }
93 };