jotta / jotta-cli-issues

45 stars 1 forks source link

Checksumming is slow, not using available CPU #141

Closed magnush0lm closed 3 years ago

magnush0lm commented 3 years ago

Make sure you are running the latest version of jotta-cli before reporting an issue.

jotta-cli release (jotta-cli version): jottad version : 0.9.41303 jotta-cli version : 0.9.41303

Description of problem: Checksumming files take much more time than expected

Expected: Checksumming should (be able to) use all available CPU power to do the calculations. A couple of tests show that checksumming speed averages at ~30MiB/s on my computer, the CPU is comfortable below 15% utilization.

Upload speed, however is range from about 30MiB/s up to 80MiB/s.

One would think that calculating the checksum of a file would be faster than uploading it to Jottacloud.

jotta-cli status (jotta-cli status):

Relevant logs for the issue (~/.jottad/jottabackup.log or /var/lib/jotta/jottabackup.log )

Traceback

Additional info:

coopersimon commented 3 years ago

You can try jotta-cli config set checksumreadrate [rate in B/s]. The default is 50MiB/s.

magnush0lm commented 3 years ago

You can try jotta-cli config set checksumreadrate [rate in B/s]. The default is 50MiB/s.

Thanks! Should this config value be shown when you do jotta-cli config get before setting it? It looks like the other options output their default values:

jotta-cli.exe config get
downloadrate          : unlimited
uploadrate            : unlimited
maxdownloads          : 2
maxuploads            : 2
scaninterval          : 1h0m0s
webhookstatusinterval : 6h0m0s
logscanignores        : false
slowmomode            : 0
logtransfers          : false
photosmonthastext     : true
OK
magnush0lm commented 3 years ago

Also, can you set checksumreadrate to "unlimited" ?

coopersimon commented 3 years ago

checksumreadrate is a hidden config option so it won't show up in config get. We are planning on showing it in the next release. We also identified a bug with it that will be fixed in the next release - the option isn't saved correctly and needs to be re-set each time you start jottad.

You can set it to unlimited.

coopersimon commented 3 years ago

We released 0.10.42740 which exposes and fixes this option.

michalsykora commented 11 months ago

to set unlimited checksum read rate: jotta-cli config set checksumreadrate 0