-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path_start_prover-node-service.sh
More file actions
31 lines (24 loc) · 1.19 KB
/
_start_prover-node-service.sh
File metadata and controls
31 lines (24 loc) · 1.19 KB
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
nvidia-smi && \
# Check available memory
mem_available=$(grep MemAvailable /proc/meminfo | awk '{print $2}')
mem_available_gb=$((mem_available / 1024 / 1024))
echo "----------Available memory: $mem_available_gb GB---------------------------"
# Set your required memory threshold here (in GB)
required_memory=80
if [ "$mem_available_gb" -lt "$required_memory" ]; then
echo "Error: Available memory ($mem_available_gb GB) is less than the required $required_memory GB."
exit 1
fi
# Huge Pages
echo 'Checking Huge Pages configuration:'
cat /proc/meminfo | grep Huge
ls -lh /dev/hugepages
# Check HugePages_Free
hugepages_free=$(cat /proc/meminfo | grep -i hugepages_free | awk '{print $2}')
echo "HugePages_Free: $hugepages_free"
if [ $hugepages_free -lt 15000 ]; then
echo "Error: HugePages_Free ($hugepages_free) is less than 15000. Please make sure HugePages is configured correctly on the host machine. Requires 15000 HugePages configured per node."
exit 1
fi
sudo chown -R 1001:1001 rocksdb
CUDA_VISIBLE_DEVICES=0 RUST_LOG=info RUST_BACKTRACE=1 ./target/release/zkwasm-playground --config prover_config.json -w workspace --proversystemconfig prover_system_config.json -p --rocksdbworkspace rocksdb