Hello team ,
So i was comparing my node’s data with one of my friends and came up with some strange (to me) results. Device 1 : old pc with intel i5, Device2: rasberry pi 4B 2GB
Both devices are running on ubuntu and have the same disk but in the pi (2) there is an adapter that cost some time, and probably the processor isn’t that strong (i don’t know what else can be causing this):
- Pc: Running for 2.5 months 1.4/2.67TB filled ~0.56tb/month
- Pi: Running for 7.5 months 2.65/2.67TB ~0.35tb/month (it was just filled a week before now doesn’t change a lot)
- Note also that they have same ISP (i clarify because this could explain p2p connection problems sometimes)
- DISK PERFORMANCE
pc:
sudo hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads: 19410 MB in 1.99 seconds = 9748.55 MB/sec
Timing buffered disk reads: 488 MB in 3.01 seconds = 162.28 MB/sec
pi:
sudo hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads: 1526 MB in 2.00 seconds = 763.91 MB/sec
Timing buffered disk reads: 116 MB in 3.09 seconds = 37.50 MB/sec
- SPEEDTEST
The problem is the the internet connections can never actually support these speeds in any of the places, and ironically speed in the pc is half as the one in the pi.
pc:
Idle Latency: 4.82 ms (jitter: 0.55ms, low: 4.53ms, high: 5.92ms)
Download: 102.21 Mbps (data used: 47.5 MB)
18.26 ms (jitter: 1.89ms, low: 6.90ms, high: 25.11ms)
Upload: 9.99 Mbps (data used: 4.6 MB)
40.75 ms (jitter: 28.48ms, low: 5.71ms, high: 497.41ms)
Packet Loss: 0.0%
pi:
Idle Latency: 4.30 ms (jitter: 0.24ms, low: 4.11ms, high: 4.70ms)
Download: 190.95 Mbps (data used: 176.7 MB)
15.62 ms (jitter: 5.30ms, low: 4.65ms, high: 83.59ms)
Upload: 20.88 Mbps (data used: 25.9 MB)
Packet Loss: 0.0%
- LOGS
But the logs on the pc are way more than the logs on pi and the differences here are insane:
pc:
docker logs storagenode --since 100m |wc -l
22189
pi:
docker logs storagenode --since 100m|wc -l
7302
so pc has roughly 3 TIMES the logs of pi.
ERRORS:
But also i found out that pi has more erros for some reason. Most are “used of closed internet connection” . (238/246)
pc:
docker logs storagenode --tail 100000|grep ERROR|wc -l
66
pi:
docker logs storagenode --tail 100000|grep ERROR|wc -l
246
Its still 180 errors more in 100k logs but in terms of percentage it is almost 4 times the errors
Does anyone have any ideas of what’s the problem here, can the disk speed make such a huge difference when these speeds can never be supported from the internet connection?
What could i do to fix this?
****EDIT after @Toyoo 's reply:
pc:
docker logs storagenode --since 100m | grep upload.started | wc -l
3485
pi:
docker logs storagenode --since 100m | grep upload.started | wc -l
110
we see huge difference on this traffic too…
SUCCESS RATE SCRIPT: (thanks for that whoever made it)
pc:
========== AUDIT ==============
Critically failed: 0
Critical Fail Rate: 0,000%
Recoverable failed: 0
Recoverable Fail Rate: 0,000%
Successful: 151
Success Rate: 100,000%
========== DOWNLOAD ===========
Failed: 1153
Fail Rate: 0,717%
Canceled: 1433
Cancel Rate: 0,891%
Successful: 158323
Success Rate: 98,393%
========== UPLOAD =============
Rejected: 0
Acceptance Rate: 100,000%
---------- accepted -----------
Failed: 63
Fail Rate: 0,015%
Canceled: 745
Cancel Rate: 0,174%
Successful: 427549
Success Rate: 99,811%
========== REPAIR DOWNLOAD ====
Failed: 0
Fail Rate: 0,000%
Canceled: 0
Cancel Rate: 0,000%
Successful: 1270
Success Rate: 100,000%
========== REPAIR UPLOAD ======
Failed: 0
Fail Rate: 0,000%
Canceled: 0
Cancel Rate: 0,000%
Successful: 27029
Success Rate: 100,000%
========== DELETE =============
Failed: 0
Fail Rate: 0,000%
Successful: 80619
Success Rate: 100,000%
pi:
========== AUDIT ==============
Critically failed: 0
Critical Fail Rate: 0.000%
Recoverable failed: 0
Recoverable Fail Rate: 0.000%
Successful: 168
Success Rate: 100.000%
========== DOWNLOAD ===========
Failed: 1154
Fail Rate: 0.749%
Canceled: 3607
Cancel Rate: 2.341%
Successful: 149338
Success Rate: 96.910%
========== UPLOAD =============
Rejected: 0
Acceptance Rate: 100.000%
---------- accepted -----------
Failed: 6
Fail Rate: 0.015%
Canceled: 141
Cancel Rate: 0.352%
Successful: 39865
Success Rate: 99.633%
========== REPAIR DOWNLOAD ====
Failed: 0
Fail Rate: 0.000%
Canceled: 0
Cancel Rate: 0.000%
Successful: 9872
Success Rate: 100.000%
========== REPAIR UPLOAD ======
Failed: 0
Fail Rate: 0.000%
Canceled: 0
Cancel Rate: 0.000%
Successful: 3338
Success Rate: 100.000%
========== DELETE =============
Failed: 0
Fail Rate: 0.000%
Successful: 24305
Success Rate: 100.000%
@BrightSilence more lost races from pc?
TRASH:
pc:47.26GB
pi:22.81GB
It seems trash is bigger on the pc but if we see the stats above it doesn’t seem pc is losing more races…