I’m running my script that uploads batches of 100 1MB random files and the uploads have really slowed down the last few hours.
It was previously taking about 40 minutes to upload the files. For the last 12 hours or so it’s been taking about 3 hours to upload them.
I’ve only ever seen a cost of 4 or 8 tokens per record. But maybe those blips up to 16 tokens per record were too brief for me to catch. I think what I’ll do next is write something that will just upload 1 random file to get much better resolution data on the cost over time.
Update regarding my two nodes: #1 with 40 hours of uptime: at 24 hours mark it got bunch of records (~132) and slowly getting more since then (182 right now). #2 with 24 hours of uptime: have 0 records. I decided not to wait more and stop it, because it uses its own console window, which is not convenient for me.
When uploading, it seems to start off well with good upload speed, then slows down and I get a LOT of incoming traffic and only when that slackens does the upload rate increase…
willie@gagarin:~$ SN_LOG=all safe files upload ~/Videos/cooking/madhur/madhur.jaffrey\'s.flavours.of.india.episode.01.avi
Built with git version: aba95fb / main / aba95fb
Instantiating a SAFE client...
🔗 Connected to the Network Loaded wallet from "/home/willie/.local/share/safe/client/wallet" with balance Token(99999976754)
Preparing (chunking) files at '/home/willie/Videos/cooking/madhur/madhur.jaffrey's.flavours.of.india.episode.01.avi'...
Making payment for 703 Chunks that belong to 1 file/s.
Successfully made payment of 5624 for 703 records. (At a cost per record of Token(8).)
Successfully stored wallet with cached payment proofs, and new balance 99.999971130.
Successfully paid for storage and generated the proofs. They can now be sent to the storage nodes when uploading paid chunks.
Storing file 'madhur.jaffrey's.flavours.of.india.episode.01.avi' of 358941706 bytes (703 chunk/s)..
more evidence of the client getting flooded with msgs during upload.
I cannot do other internet stuffs on this box right now, my connection is saturated
EDIT: Its like you are telling someone about some subject and a great deal of info has to be transferred. THen they start asking questions, looking for confirmationand the volume of the responses causes you to be unable to continue imparting the info. The responses become a flood and you are effectively silenced. Only when they pause for breath can you return to delivering the requested info. - or something like that…
I have logging turned on so if/when this upload completes, I will have a look at the logs - but I suspect quic is getting VERY chatty about something.
OK - do you want these logs? It seems the same pattern repeats every 2 mins or so…
I will adjust the graph to show a 20-30min window to see if indeed the pattern repeats reliably with different files. But certainly have seen similar over past day or two.
Also - despite kicking this off a good while back, I have seen ZERO confirmation of any blocks stored - or is that only for downloads for now?
Hmm, it may be that there’s more bugs in the storage/verification flow here. We’re reworking the naiive implementation at the moment to avoid some issues this testnet has raised. (If the testnet isn’t working well I’ll perhaps just can it; we’ve learnt a good deal from this already).
with the -n flag the command completed suspiciously quickly
willie@gagarin:~$ SN_LOG=all time safe files upload -n ~/Videos/cooking/madhur/madhur.jaffrey\'s.flavours.of.india.episode.03.avi
Built with git version: aba95fb / main / aba95fb
Instantiating a SAFE client...
🔗 Connected to the Network Loaded wallet from "/home/willie/.local/share/safe/client/wallet" with balance Token(99999959962)
Preparing (chunking) files at '/home/willie/Videos/cooking/madhur/madhur.jaffrey's.flavours.of.india.episode.03.avi'...
Making payment for 705 Chunks that belong to 1 file/s.
Successfully made payment of 5640 for 705 records. (At a cost per record of Token(8).)
Successfully stored wallet with cached payment proofs, and new balance 99.999954322.
Successfully paid for storage and generated the proofs. They can now be sent to the storage nodes when uploading paid chunks.
Storing file 'madhur.jaffrey's.flavours.of.india.episode.03.avi' of 360133404 bytes (705 chunk/s)..
Successfully stored 'madhur.jaffrey's.flavours.of.india.episode.03.avi' to 62901265b7a2caf437983ddedb9d1adc90d6581d15521f40914da87fc95017ad
Writing 97 bytes to "/home/willie/.local/share/safe/client/uploaded_files/file_names_2023-08-16_12-47-24"
12.87user 5.62system 1:12.54elapsed 25%CPU (0avgtext+0avgdata 760132maxresident)k
703392inputs+11264outputs (0major+1654581minor)pagefaults 0swaps
willie@gagarin:~$ safe files download madhur.jaffrey’s.flavours.of.india.episode.03.avi 62901265b7a2caf437983ddedb9d1adc90d6581d15521f40914da87fc95017ad
Built with git version: aba95fb / main / aba95fb
Instantiating a SAFE client...
🔗 Connected to the Network Downloading file "madhur.jaffrey’s.flavours.of.india.episode.03.avi" with address 62901265b7a2caf437983ddedb9d1adc90d6581d15521f40914da87fc95017ad
Did not get file "madhur.jaffrey’s.flavours.of.india.episode.03.avi" from the network! Network Error Record was not found locally.
As I suspected… Network Error Record was not found locally
willie@gagarin:~$ safe files download madhur.jaffrey’s.flavours.of.india.episode.03.avi 62901265b7a2caf437983ddedb9d1adc90d6581d15521f40914da87fc95017ad
Built with git version: aba95fb / main / aba95fb
Instantiating a SAFE client...
🔗 Connected to the Network Downloading file "madhur.jaffrey’s.flavours.of.india.episode.03.avi" with address 62901265b7a2caf437983ddedb9d1adc90d6581d15521f40914da87fc95017ad
Did not get file "madhur.jaffrey’s.flavours.of.india.episode.03.avi" from the network! Network Error Record was not found locally.
So in effect SN_Log=all without a --log-output-dest=data-dir param will do zilch?
I may need to withdraw my offer of these logs, sorry…
OK what should this command be?
willie@gagarin:~$ SN_LOG=all time safe files upload -n --log-output-dest=data-dir ~/Videos/cooking/madhur/madhur.jaffrey\'s.flavours.of.india.episode.04.avi
error: unexpected argument '--log-output-dest' found
tip: to pass '--log-output-dest' as a value, use '-- --log-output-dest'
Usage: safe files upload -n <DIRECTORY>
For more information, try '--help'.
Command exited with non-zero status 2
0.00user 0.00system 0:00.00elapsed 100%CPU (0avgtext+0avgdata 4352maxresident)k
0inputs+0outputs (0major+323minor)pagefaults 0swaps