forked from sebawild/nearly-optimal-mergesort-code
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainInt.sh
executable file
·29 lines (22 loc) · 831 Bytes
/
mainInt.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
#!/bin/bash
lscpu
./cpu_fixed.sh
echo "JAVA:"
java -version
# define CPU core to use
# Note: use linux kernel GRUB_CMDLINE_LINUX="isolcpus=3" in /etc/default/grub
CORE=3
# define Java options
# -XX:+UnlockDiagnosticVMOptions -XX:+PrintCompilation
# -XX:-TieredCompilation
# -verbose:gc -Xloggc:gc.log
# -XX:+PrintGCApplicationStoppedTime
#JAVA_OPTS="-Xms1g -Xmx1g"
#JAVA_OPTS="-Xms1g -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:GuaranteedSafepointInterval=300000"
#JAVA_OPTS="-Xms1g -Xmx1g -XX:-TieredCompilation -XX:+UnlockDiagnosticVMOptions -XX:GuaranteedSafepointInterval=300000"
JAVA_OPTS="-Xms1g -Xmx1g -XX:+UseParallelGC -XX:-BackgroundCompilation"
echo "JAVA_OPTS: $JAVA_OPTS"
echo "Running MainInt"
#taskset -c $CORE
java $JAVA_OPTS -cp out/edu-sorting.jar edu.sorting.test.MainInt > mainInt-results.out
echo "done."