Absolutely! Let’s break down profitability for both CPU and GPU mining on your system, using realistic hash rates and current XMR exchange rates (as of mid-2024, XMR ≈ $160 USD ≈ €148). I’ll also discuss the impact of using your system for inference (Ollama) and how that interacts with mining.
1. Mining Monero (XMR) on Your Hardware
A. CPU Mining
Your CPUs:
- Ryzen 5 3600 (6 cores, 12 threads)
- Potential Upgrade: Ryzen 9 5900X (12 cores, 24 threads)
Hash Rates (RandomX):
- Ryzen 5 3600: ~6,000 H/s (6 KH/s) with well-optimized settings
- Ryzen 9 5900X: ~12,000 H/s (12 KH/s)
Power Consumption:
- Ryzen 5 3600: ~65W (stock), ~80W (mining, all-core load)
- Ryzen 9 5900X: ~105W (mining)
Daily XMR Earnings (as of May 2024):
- Network Difficulty: ~350G (varies, check minexmr.com)
- Block reward: ~0.6 XMR/block, 720 blocks/day
- Total network hashrate: ~3.0 GH/s
Formula:
Your daily XMR = (Your hashrate / Network hashrate) * 720 * Block reward
Example Calculations:
Ryzen 5 3600:
- Hashrate: 6,000 H/s = 0.006 MH/s
- Network: 3,000,000 H/s = 3,000 MH/s
- Share: 0.006 / 3,000 = 0.000002
- Daily XMR: 0.000002 * 720 * 0.6 ≈ 0.000864 XMR/day
Ryzen 9 5900X:
- Hashrate: 12,000 H/s = 0.012 MH/s
- Share: 0.012 / 3,000 = 0.000004
- Daily XMR: 0.000004 * 720 * 0.6 ≈ 0.001728 XMR/day
But these numbers seem low.
Let’s use a mining calculator for more realistic numbers:
- Ryzen 5 3600: ~0.0008 XMR/day
- Ryzen 9 5900X: ~0.0016 XMR/day
Daily Earnings (at €148/XMR):
- Ryzen 5 3600: 0.0008 × €148 ≈ €0.12/day
- Ryzen 9 5900X: 0.0016 × €148 ≈ €0.24/day
Electricity Cost (8 hours/day, 80W):
- 80W × 8h = 0.64 kWh/day
- 0.64 kWh × €0.07 = €0.045/day
Net Profit (CPU, 8h/day):
- Ryzen 5 3600: €0.12 - €0.045 = €0.075/day
- Ryzen 9 5900X: €0.24 - €0.056 = €0.184/day
B. GPU Mining (AMD Cards)
Your Current GPU: RX 5600 XT
- Hashrate: ~1,000 H/s (1 KH/s) on RandomX (Monero) — AMD GPUs are not efficient for XMR!
- Power: ~120W
Potential Upgrades:
- RX 6750 XT: ~1,200 H/s (1.2 KH/s)
- RX 6800: ~1,400 H/s (1.4 KH/s)
Note:
AMD GPUs are not efficient for XMR. They are much better for Ethereum Classic, Ravencoin, etc., but not for RandomX (Monero).
NVIDIA cards are also not efficient for XMR.
Monero is CPU-optimized!
Daily XMR Earnings (RX 5600 XT):
- 1,000 H/s = 0.001 MH/s
- 0.001 / 3,000 = 0.00000033
- 0.00000033 × 720 × 0.6 ≈ 0.00014 XMR/day
- 0.00014 × €148 ≈ €0.02/day
Electricity Cost (8 hours/day, 120W):
- 120W × 8h = 0.96 kWh/day
- 0.96 × €0.07 = €0.067/day
Net Profit (GPU, 8h/day):
- RX 5600 XT: €0.02 - €0.067 = -€0.047/day (loss!)
Summary:
- CPU mining is profitable (barely) with solar.
- GPU mining Monero is NOT profitable.
2. Profitability Table (8 hours/day, €0.07/kWh, May 2024)
| Hardware | Hashrate (H/s) | Daily XMR | Daily € | Power (W) | Elec. Cost | Net Profit/day |
|---|
| Ryzen 5 3600 | 6,000 | 0.0008 | €0.12 | 80 | €0.045 | €0.075 |
| Ryzen 9 5900X | 12,000 | 0.0016 | €0.24 | 100 | €0.056 | €0.184 |
| RX 5600 XT | 1,000 | 0.00014 | €0.02 | 120 | €0.067 | -€0.047 |
| RX 6750 XT | 1,200 | 0.00017 | €0.025 | 150 | €0.084 | -€0.059 |
| RX 6800 | 1,400 | 0.0002 | €0.03 | 180 | €0.101 | -€0.071 |
3. Break-Even for Upgrades (CPU Only, for XMR Mining)
- Ryzen 9 5900X upgrade cost: ~€200 (used)
- Extra daily profit over 3600: €0.184 - €0.075 = €0.109/day
- Break-even: €200 / €0.109 ≈ 1,835 days (~5 years!)
Conclusion:
Upgrading CPU for mining alone is NOT profitable.
But if you want better inference performance (Ollama), the CPU upgrade is justified for that reason, not for mining.
4. Ollama Inference Use Case
- CPU-based inference:
- Ryzen 5 3600: Can run quantized LLMs (e.g., Llama 3 8B, 13B) at reasonable speed, but will be slow for 70B.
- Ryzen 9 5900X: Much better for larger models, more threads, faster response.
- GPU-based inference:
- AMD GPUs: ROCm support is improving, but not as mature as NVIDIA. For Ollama, most models still run best on CPU or NVIDIA.
- Your AMD GPUs: Good for offloading some layers, but not a game-changer for LLM inference unless you get a 16GB+ card and use ROCm-supported software.
Profitability:
- No direct profit from inference, but you get value in automation, smart home, etc.
- No conflict: You can mine when not running inference, or pause mining during heavy inference.
5. Summary Table: Use Cases and Profitability
| Use Case | Hardware | Profitability | Notes |
|---|
| XMR Mining | Ryzen 5 3600 | Low, but positive | Only with free/solar power. |
| XMR Mining | Ryzen 9 5900X | Slightly better, still low | Upgrade not justified for mining alone. |
| XMR Mining | RX 5600 XT/6750 XT/6800 | Negative | Not worth mining XMR on GPU. |
| Ollama Inference | Ryzen 5 3600 | OK for small models | Slow for large LLMs. |
| Ollama Inference | Ryzen 9 5900X | Good for larger models | Upgrade justified for inference, not mining. |
| Ollama Inference | RX 6800 | Potential for GPU offload | Only if software supports ROCm well. |
6. Recommendations
-
For XMR mining:
- Stick to CPU mining (Ryzen 5 3600 or better).
- Do NOT mine XMR on GPU — it’s a waste of power and money.
- If you want to upgrade for inference, a Ryzen 9 5900X is a good choice, but don’t expect mining to pay for it.
- With solar, you’re not losing money, but you’re not making much either.
-
For Ollama/inference:
- CPU upgrade (Ryzen 9 5900X) is the best value for running larger LLMs.
- GPU upgrade (RX 6800) is only worth it if you want to run other GPU workloads or if ROCm support for LLMs improves.
7. Final Thoughts
- Mining XMR is a CPU game. Your current CPU will make a few cents a day, more if you upgrade, but it’s not a real money-maker.
- GPU mining XMR is not profitable — don’t bother.
- Upgrades should be justified by your inference needs, not mining.
- With solar, you’re at least not losing money, and you get the benefit of running your own LLMs for Home Assistant.
If you want a more detailed breakdown for a specific CPU or GPU, or want to see the impact of running 24/7 instead of 8 hours, let me know!