-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
128 lines (107 loc) · 2.85 KB
/
config.h
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#ifndef __CONFIG_H_
#define __CONFIG_H_
/*
* config.h - malloc lab configuration file
*
* Copyright (c) 2002, R. Bryant and D. O'Hallaron, All rights reserved.
* May not be used, modified, or copied without permission.
*/
/*
* This is the default path where the driver will look for the
* default tracefiles. You can override it at runtime with the -t flag.
*/
#define TRACEDIR "./traces/"
/*
* This is the list of default tracefiles in TRACEDIR that the driver
* will use for testing. Modify this if you want to add or delete
* traces from the driver's test suite.
*/
#define DEFAULT_TRACEFILES \
"syn-array-short.rep", \
"syn-struct-short.rep", \
"syn-string-short.rep", \
"syn-mix-short.rep", \
"syn-largemem-short.rep", \
"ngram-fox1.rep", \
"syn-mix-realloc.rep", \
"bdd-aa4.rep", \
"bdd-aa32.rep", \
"bdd-ma4.rep", \
"bdd-nq7.rep", \
"cbit-abs.rep", \
"cbit-parity.rep", \
"cbit-satadd.rep", \
"cbit-xyz.rep", \
"ngram-gulliver1.rep", \
"ngram-gulliver2.rep", \
"ngram-moby1.rep", \
"ngram-shake1.rep", \
"syn-array.rep", \
"syn-mix.rep", \
"syn-string.rep", \
"syn-struct.rep"
/*
* Programs for measuring reference throughputs
*/
#define REF_DRIVER "./mdriver-ref"
/*
* Speeds measured relative to a benchmark. Express thresholds
* relative to benchmark throughput
* Students get 0 points for this point or below (ops / sec)
*/
#define MIN_SPEED_RATIO_CHECKPOINT 0.00
#define MIN_SPEED_RATIO 0.30
/*
* Students get 0 points for this allocation fraction or below
*/
#define MIN_SPACE_CHECKPOINT 0.30
#define MIN_SPACE 0.40
/*
* Students can get more points for building faster allocators, up to
* this point (in ops / sec)
*/
#define MAX_SPEED_RATIO_CHECKPOINT 0.05
#define MAX_SPEED_RATIO 0.35
/*
* Students can get more points for building more efficient allocators,
* up to this point (1 is perfect).
*/
#define MAX_SPACE_CHECKPOINT 0.50
#define MAX_SPACE 0.63
/*
* This constant determines the contributions of space utilization
* (UTIL_WEIGHT) and throughput (1 - UTIL_WEIGHT) to the performance
* index.
*/
#define UTIL_WEIGHT .60
/*
* Max number of random values written to each allocation
*/
#define MAXFILL 1024
/*
* Alignment requirement in bytes (either 4, 8, or 16)
*/
#define ALIGNMENT 16
/*********** Parameters controlling dense memory version of heap ***********/
/*
* Maximum heap size in bytes
*/
#define MAX_HEAP_SIZE (1ull*(1ull<<40)) /* 1 TB */
/***************** Parameters for looking up reference throughput *********/
/*
* Location of information on CPU type
*/
#define CPU_FILE "/proc/cpuinfo"
/*
* Key in file (spaces removed)
*/
#define CPU_KEY "modelname"
/*
* File containing throughputs
*/
#define THROUGHPUT_FILE "./throughputs.txt"
/*
* Keys for checkpoint vs. regular
*/
#define BENCH_KEY "regular"
#endif /* __CONFIG_H */