Skip to content

Print status of file-hashing #2749

Closed as not planned
Closed as not planned

Description

@MrCheeze96

This issue can be read about in the following thread of the rclone forum: https://forum.rclone.org/t/hash-status-progress-bar/7582/9

ncw edit: When transferring big files from the local backend, they often take an extremely long time to generate the hash. It would be nice if this was visible to the user somehow.

Activity

  1. added this to the Help Wanted milestone on Nov 23, 2018
  2. modified the milestones: Help Wanted, Soon on Dec 4, 2020
  3. ivandeex commented on Dec 4, 2020

    @ivandeex
    Member

    Implementation of this request is somewhat related to #2740 as it activates pacer/accounting inside the call stack hash>download>localfs.

  4. self-assigned this
    on Dec 4, 2020
  5. modified the milestones: Soon, v1.55 on Feb 13, 2021
  6. modified the milestones: v1.55, v1.56 on Feb 27, 2021
  7. modified the milestones: v1.56, v1.57, Soon on May 16, 2021
  8. modified the milestones: Soon, v1.57 on May 26, 2021
  9. ivandeex commented on May 29, 2021

    @ivandeex
    Member

    Let me copy here a comment by @ncw from #5352 (comment)

    In an ideal world we'd have local checkers counting transfers like downloads do - there have been loads of requests for that.

    This could use a similar mechanism to this

    // ServerSideCopyStart should be called at the start of a server-side copy
    //
    // This pretends a transfer has started
    func (acc *Account) ServerSideCopyStart() {
    acc.values.mu.Lock()
    // Set start time.
    if acc.values.start.IsZero() {
    acc.values.start = time.Now()
    }
    acc.values.mu.Unlock()
    }
    // ServerSideCopyEnd accounts for a read of n bytes in a sever side copy
    func (acc *Account) ServerSideCopyEnd(n int64) {
    // Update Stats
    acc.values.mu.Lock()
    acc.values.bytes += n
    acc.values.mu.Unlock()
    acc.stats.Bytes(n)
    }

    If checksums for the local backend always used this mechanism then it would solve the UI problem were users are wondering why their B2/S3 uploads don't start because the local backend is making the checksum in advance...

    I still don't like current pacer. In case of many files it walks up next --checkers files, calculates ETA, then adds next checker, updates ETA and so on. This way ETA is pretty small all the time seeing only partial work, then steadily decreases close to zero, then jumps back to another small duration, then again. This is useless in practice.

    To achieve this we'd want to move some of the logic from fs/sync into fs/march or possibly run rclone check from the rclone sync framework rather than using fs/march.

    The logic missing is queuing the checks so we have an idea of how many we need to do which is only in fs/sync.

    Anyway I think any of these suggestions should probably go in a new PR

  10. modified the milestones: v1.57, v1.58 on Oct 20, 2021
  11. modified the milestones: v1.58, v1.59 on Jan 14, 2022
  12. modified the milestones: v1.59, v1.60 on Feb 13, 2022
  13. modified the milestones: v1.60, Help Wanted on Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions