Giter Club home page Giter Club logo

rotsniff's People

Contributors

kwarf avatar

Stargazers

 avatar  avatar

Watchers

 avatar

rotsniff's Issues

question: surprising performance

Hi,

I'm looking for a hash verification tool for my photos/videos collection, and came across rotsniff.

I've already had a look at some other projects, including https://github.com/laktak/chkbit-py - which is written in Python and uses md5. On my folder (400+ gbytes, 50k+ files) it finished building a database in 7 minutes (using 6 workers = num of my physical cores; with a single worker, it needed 30 minutes).

As far as I understand, blake2 is faster than md5, and Rust is faster than Python.
However, rotsniff actually took much, much longer on my data: 52 minutes
The command I'm running is just rotsniff append .

And that is the question: is it supposed to take that much longer?
My uninformed gut feeling is that something is wrong :)

My observations:

  • rotsniff starts with a rather high CPU usage, so I assume it is multi-threaded by default; looks like 12 threads (= number of virtual cores) are created
  • SSD read speeds are much lower than for the python tool; speed seems to be capped at around 150-160 mbytes/sec (while python tool definitely had 500+ mbytes/sec peaks). While read speed is low, SSD activity (number of requests) is very high. I wonder if there is a too small reading buffer somewhere? (This is further suggested by threads spending lots of time in a waiting state...)
  • very high RAM usage: up to 30GB VIRT and 15 GB RES (based on a random htop observation for a minute or so); it does decrease at times, but seems to be in multi-gigabyte (4-6+ or so?) RES range at all times.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.