-
Notifications
You must be signed in to change notification settings - Fork 190
/
Copy pathptree.cfg
executable file
·60 lines (54 loc) · 1.5 KB
/
ptree.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Test nested processes
sys = {
cores = {
nehalem = {
type = "OOO";
cores = 2;
//icache and dcache can be the same group, but are still split.
//Even ones are i (l1-0 and 2), odd are d (l1-1 and 3)
icache = "l1";
dcache = "l1";
};
};
caches = {
l1 = {
size = 65536;
caches = 4;
};
l2 = {
caches = 1;
size = 2097152;
array = {
ways = 16;
hash = "H3";
};
children = "l1";
};
};
};
sim = {
phaseLength = 10000;
//attachDebugger = True; //this would be madness :)
};
// NOTE: This is useful when you spawn multiple processes that create other
// processes --- they are assigned in tree order. However, at this point if you
// don't specify any subprocesses, the simulation will work (but process ids
// are assigned in FCFS order, which is non-deterministic, and the children will
// inherit the parent's configuration).
process0 = { //bash
command = "bash -c \"bash -c '/bin/echo Foo | cat; sleep 2 ; echo Bar' | cat | cat \"";
process0 = { //bash
process0 = { // /bin/echo
};
process1 = { //cat
};
process2 = { //sleep
};
process3 = { //echo (actually, when you call echo in bash, it's just a fork, it doesn't exec echo)
};
};
process1 = { //cat
};
process2 = { //cat
};
};