-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·376 lines (365 loc) · 42.6 KB
/
run.sh
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
#!/bin/bash
cd build
# Arguments:
# --id: unique id.
# --r-size: size of relation R (the one that is stored as hash table).
# --s-size: the size of relation S (the one that is probed).
# --total-cores: total number of cores to USE for the hash join.
# --task-size: size of build and probe tasks.
# --hj-threads: number of threads to be used for thread-based hash join. If 0, only one main thread uses for the process.
# --share-hashtable: [bool] if hash table sharing should be enabled.
# --monitor-cores: how many cores to monitor (regardless of how many are being used).
# --skew: type of skew to use for the data generation (0 = no skew).
# --core-pausing: [bool] is core pausing enabled.
# --program-pmu: [bool] should PMU be programmed and used (i.e. monitoring).
# MEMORY SIZE EXPERIMENTS
# 32 GB -- previous default max
#sudo perf stat -e cpu-clock sudo ./Pool-HashJoin-PCM --id=32 --r-size=2000000000 --s-size=2000000000 --total-cores=15 --task-size=1000000 --skew=0 --core-pausing=0 --program-pmu=1
## 40 GB
#sudo perf stat -e cpu-clock sudo ./Pool-HashJoin-PCM --id=40 --r-size=2500000000 --s-size=2500000000 --total-cores=15 --task-size=1000000 --skew=0 --core-pausing=0 --program-pmu=1
## 43 GB
#sudo perf stat -e cpu-clock sudo ./Pool-HashJoin-PCM --id=43 --r-size=2700000000 --s-size=2700000000 --total-cores=15 --task-size=1000000 --skew=0 --core-pausing=0 --program-pmu=1
## 46.5
#sudo perf stat -e cpu-clock sudo ./Pool-HashJoin-PCM --id=46 --r-size=2900000000 --s-size=2900000000 --total-cores=15 --task-size=1000000 --skew=0 --core-pausing=0 --program-pmu=1
## 48 GB
#sudo perf stat -e cpu-clock sudo ./Pool-HashJoin-PCM --id=48 --r-size=3000000000 --s-size=3000000000 --total-cores=15 --task-size=1000000 --skew=0 --core-pausing=0 --program-pmu=1
## 64 GB
#sudo perf stat -e cpu-clock sudo ./Pool-HashJoin-PCM --id=64 --r-size=4000000000 --s-size=4000000000 --total-cores=15 --task-size=1000000 --skew=0 --core-pausing=0 --program-pmu=1
## 96 GB
#sudo perf stat -e cpu-clock sudo ./Pool-HashJoin-PCM --id=1 --r-size=6000000000 --s-size=6000000000 --total-cores=15 --task-size=1000000 --skew=0 --core-pausing=0 --program-pmu=1
## 112 GB
#sudo perf stat -e cpu-clock sudo ./Pool-HashJoin-PCM --id=7 --r-size=7000000000 --s-size=7000000000 --total-cores=15 --task-size=1000000 --skew=0 --core-pausing=0 --program-pmu=1
## 128 GB
#sudo perf stat -e cpu-clock sudo ./Pool-HashJoin-PCM --id=8 --r-size=8000000000 --s-size=8000000000 --total-cores=15 --task-size=1000000 --skew=0 --core-pausing=0 --program-pmu=1
## 136 GB -- max possible
# SOCKET EXPERIMENTS
#sudo perf stat -e cpu-clock sudo ./Pool-HashJoin-PCM --id=1-8 --r-size=8500000000 --s-size=8500000000 --total-cores=4 --task-size=5000000 --skew=0 --core-pausing=0 --program-pmu=1
# SERIAL EXPERIMENTS
#start_time=$(date +%s.%N)
#
#sudo perf stat -o ../cpu-cycles/cpu-cycles-0.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=0 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-1.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=1 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-2.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=2 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-3.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=3 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-4.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=4 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-5.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=5 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-6.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=6 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-7.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=7 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-8.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=8 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-9.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=9 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-10.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=10 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-11.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=11 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-12.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=12 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-13.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=13 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-14.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=14 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-15.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=15 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-16.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=16 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-17.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=17 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-18.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=18 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-19.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=19 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
## CONCURRENT EXPERIMENTS
start_time=$(date +%s.%N)
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-0.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=0 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1)&
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-1.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=1 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-2.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=2 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-3.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=3 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-4.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=4 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-5.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=5 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-6.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=6 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-7.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=7 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-8.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=8 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-9.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=9 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-10.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=10 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-11.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=11 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-12.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=12 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-13.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=13 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-14.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=14 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-15.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=15 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
(
sudo perf stat -o ../cpu-cycles/cpu-cycles-16.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=16 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
##
### -- 17
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-17.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=17 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-18.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=18 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-19.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=19 --r-size=1000 --s-size=2000000000 --total-cores=4 --monitor-cores=4 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-20.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=20 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-21.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=21 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-22.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=22 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-23.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=23 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-24.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=24 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-25.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=25 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-26.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=26 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-27.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=27 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-28.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=28 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-29.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=29 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-30.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=30 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-31.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=31 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-32.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=32 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-33.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=33 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-34.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=34 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-35.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=35 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-36.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=36 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-37.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=37 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-38.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=38 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-39.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=39 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-40.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=40 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-41.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=41 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
wait
end_time=$(date +%s.%N)
execution_time=$(echo "$end_time - $start_time" | bc)
echo "Execution time: $execution_time seconds"
### CONCURRENT EXPERIMENTS
#start_time=$(date +%s.%N)
#
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-0.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=0 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-1.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=1 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-2.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=2 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-3.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=3 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-4.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=4 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-5.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=5 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-6.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=6 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-7.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=7 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-8.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=8 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-9.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=9 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-10.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=10 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-11.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=11 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-12.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=12 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-13.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=13 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-14.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=14 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-15.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=15 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-16.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=16 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-17.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=17 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-18.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=18 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-19.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=19 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-20.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=20 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-21.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=21 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-22.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=22 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-23.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=23 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-24.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=24 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-25.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=25 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-26.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=26 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-27.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=27 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-28.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=28 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-29.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=29 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-30.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=30 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-31.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=31 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-32.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=32 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-33.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=33 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-34.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=34 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-35.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=35 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-36.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=36 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=1 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-37.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=37 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-38.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=38 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-39.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=39 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-40.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=40 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
# (
# sudo perf stat -o ../cpu-cycles/cpu-cycles-41.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=41 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
## (
## sudo perf stat -o ../cpu-cycles/cpu-cycles-42.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=42 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1) &
#
#wait
#end_time=$(date +%s.%N)
#
#execution_time=$(echo "$end_time - $start_time" | bc)
#echo "Execution time: $execution_time seconds"
## SEQUENTIAL EXPERIMENTS
#start_time=$(date +%s.%N)
#
#sudo perf stat -o ../cpu-cycles/cpu-cycles-0.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=0 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-1.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=1 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-2.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=2 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-3.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=3 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-4.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=4 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-5.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=5 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-6.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=6 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-7.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=7 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-8.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=8 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-9.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=9 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-10.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=10 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-11.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=11 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-12.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=12 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-13.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=13 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-14.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=14 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-15.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=15 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-16.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=16 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-17.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=17 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-18.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=18 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-19.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=19 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-20.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=20 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-21.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=21 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-22.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=22 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-23.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=23 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-24.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=24 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-25.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=25 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-26.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=26 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-27.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=27 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-28.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=28 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-29.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=29 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-30.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=30 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-31.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=31 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-32.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=32 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-33.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=33 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-34.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=34 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-35.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=35 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-36.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=36 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-37.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=37 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-38.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=38 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-39.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=39 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-40.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=40 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#sudo perf stat -o ../cpu-cycles/cpu-cycles-41.txt -e cpu-cycles sudo ./Pool-HashJoin-PCM --id=41 --r-size=1000 --s-size=1000000000 --total-cores=4 --monitor-cores=15 --task-size=1000000 --hj-threads=0 --share-hash-table=0 --skew=0 --core-pausing=0 --program-pmu=1
#wait
#
#end_time=$(date +%s.%N)
#execution_time=$(echo "$end_time - $start_time" | bc)
#echo "Execution time: $execution_time seconds"
# LOOP EXPERIMENTS
#for i in {1..10}
#do
# cd build
# sudo ./Pool-HashJoin-PCM --r-size=2000000000 --s-size=2000000000 --total-cores=14 --task-size=1000000 --skew=0
#
# cd ..
# ./plot.sh
#done