-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsimustore.cfg
150 lines (126 loc) · 6.05 KB
/
simustore.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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*
* Sample configuration file for Simutrace 3.1
*
* This is the server configuration file. It contains all options that the
* server understands. Simutrace utilizes the libconfig library to read
* structured configuration files. For more information on the grammar please
* refer to the libconfig documentation.
*
* To use the configuration file start the server with the -c option (full name
* "--server.configuration"), specifying the name of the file:
*
* ./simustore -c simustore.cfg
*
* You may also set all options as command line parameters using their full
* path, proceeded by "--", or their short name (if available), proceeded
* by "-". For example to specify the logging level you may write:
*
* ./simustore --server.loglevel 5
* or ./simustore -v 5
*
* Supplying the same option in both, the configuration file and the command
* line, will lead the server to ignore the setting in the configuration file
* and apply the value given via the command line.
*
* Options in this configuration file are set according to their default
* values and thus may be commented-out or removed without effect. Alternative
* values which might be helpful are commented-out with "//".
*
* NOTE: All paths must comply with the operating system's syntax. This sample
* defaults to the Linux format. Change the paths for Windows accordingly.
*
* Most important settings for...
* ...general setup: server.workspace, server.bindings,
* ...performance : server.memmgmt.poolSize, server.memmgmt.readAhead,
* client.memmgmt.poolSize
*/
// ======================= Server Settings =======================
server: {
// ===== Logging and Verbosity =====
/* An optional file to output the log to. The log will be appended, not
replaced. The file log is not affected by the quiet setting (-l). */
logfile = "simustore.log";
/* The detail level of logging (-v). Value in the range [0;6], with higher
values delivering more details. The values correspond to:
0 = Fatal, 1 = Error, 2 = Warning, 3 = Information, 4 = Debug,
5 = Memory Debug, 6 = Rpc Debug. Levels 4+ require a debug build. */
loglevel = 3;
/* If set, the server won't print output to stdout (-q). */
quiet = false;
// ===== Environment =====
/* Path to workspace (-w). Will be used as base for relative file paths
(e.g., for trace files). If not set, the current working directory (CWD)
of the process is used. */
workspace = "";
//workspace = "/home/myuser/myproject/";
// ===== Services =====
/* The port bindings that the server will establish (-b). Multiple bindings
can be separated by ','. For more details on the binding syntax refer to
the StSessionCreate() function in the public API documentation.
Note: the given pipe path is also valid on Windows. */
//bindings = "@CFG_SERVER_BINDINGS@";
bindings = "local:/tmp/.simutrace";
// ===== Memory Management =====
memmgmt: {
/* The size of the server's internal memory pool in MiB. To perform
compression/decompression, the server needs to allocate temporary
memory, which is satisfied from the internal pool. The pool size
also limits the amount of trace data, which can be cached in RAM. */
poolSize = 4096;
/* If the server cannot allocate memory from its internal pool or
a store's memory pool, the allocator will retry the operation.
retrySleep specifies the time in ms that the allocator will wait,
retryCount limits the number of retries until the operation fails.*/
retrySleep = 5000;
retryCount = 100;
/* If set, disables caching of trace data in the server. This reduces
memory consumption, but also heavily harms performance for complex
compressors such as the built-in memory trace compressor. */
// disableCache =
/* The number of 64 MiB segments in a stream to read in speculatively
ahead of the user's request when using sequential scan access. This
number should not greatly exceed the amount of available CPU cores.
Finding the right value for a system requires a bit of
experimentation. A value of 0 deactivates read-ahead.
Note: While read-ahead greatly improves sequential read performance,
it also requires a lot of memory. Ensure to configure the pool sizes
appropriately high. */
readAhead = 4;
};
// ===== Session Management =====
session: {
/* The number of milliseconds the session manager waits for each worker
thread to close gracefully. */
closeTimeout = 10000;
};
// ===== Worker Pool Management =====
workerpool: {
/* The number of worker threads that will be allocated to perform
trace data compression/decompression. Simutrace will manage the
number automatically when specifying a value of 0. */
size = 0;
};
requestworkerpool: {
/* The number of worker threads that will be allocated to accept new
server connections. Simutrace will manage the number automatically
when specifying a value of 0.
Note: Each connection will get a designated thread after successful
establishment */
size = 0;
};
};
// ======================= Client Settings =======================
client: {
// ===== Memory Management =====
memmgmt: {
/* Size of the store memory pool. A buffer of the specified size will
be allocated for each open store. Since the buffer is shared with
the client, the client determines the pool size and tells the server
which size it supports. Specifying the setting here, will force the
server to use this value and ignore the client's request. This can
be helpful when choosing a different pool size without having to
add a call to StSessionSetConfiguration() in the client ahead of
store creation. */
// poolSize = 1024;
};
};