mining, cleanup
This commit is contained in:
32
MINE/xmr/test_performance.sh
Normal file
32
MINE/xmr/test_performance.sh
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Quick Performance Test Script
|
||||
# Tests mining performance for 60 seconds
|
||||
|
||||
echo "Quick Performance Test (60 seconds)"
|
||||
echo "Testing optimal configuration in ROCm container..."
|
||||
echo ""
|
||||
|
||||
# Check if container is running
|
||||
if ! sudo docker ps | grep -q "amd-strix-halo-llama-rocm"; then
|
||||
echo "Error: amd-strix-halo-llama-rocm container is not running!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Ensure xmrig is available
|
||||
sudo docker exec amd-strix-halo-llama-rocm test -f /tmp/xmrig-6.21.0/xmrig || {
|
||||
echo "Copying xmrig to container..."
|
||||
sudo docker cp /home/db/Downloads/xmrig-6.21.0 amd-strix-halo-llama-rocm:/tmp/
|
||||
}
|
||||
|
||||
echo "Starting 60-second performance test..."
|
||||
echo "Expected performance: ~14,700 H/s"
|
||||
echo ""
|
||||
|
||||
# Run test for 60 seconds
|
||||
sudo docker exec amd-strix-halo-llama-rocm bash -c "cd /tmp/xmrig-6.21.0 && timeout 60s ./xmrig -o pool.supportxmr.com:443 -u bc1qjn4m6rmrveuxhk02a5qhe4r6kdcsvvt3vhdn9j -p NUC --tls -t 32"
|
||||
|
||||
echo ""
|
||||
echo "Performance test completed!"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user