GithubHelp home page GithubHelp logo

Comments (5)

HynekPetrak avatar HynekPetrak commented on August 16, 2024 1

Added also —threads N argument for adjusting number of threads from command line

from log4shell-finder.

HynekPetrak avatar HynekPetrak commented on August 16, 2024

That's actually how it works. For each folder a number of threads is processing files in parallel. Try to show progress with --progress 1 argument. Once it get stuck run lsof (on Linux) to identify the problematic file.
Note I could not workaround zip-bombs. So it's better to skip them with --exclude-dirs argument. Also it's recommended to use --same-fs to avoid scanning mount points and rather list file system roots explicitly

from log4shell-finder.

jachstet-sea avatar jachstet-sea commented on August 16, 2024

Ah, okay, perfect then :) Thanks for the quick answer
I've checked with --progress 1 and it's not a single file that blocks it. It's the main thread that's constantly at 100% and worker threads come and go but no more than about 5 at a time or so.
Well, nevermind, system has been scanned, all good :)

from log4shell-finder.

HynekPetrak avatar HynekPetrak commented on August 16, 2024

@jachstet-sea If cpu is not utilized well enough, the i/o might be the bottleneck. I’m planning to do a bit more experiments and maybe delegate more work to threads, need to be empirically proven

from log4shell-finder.

HynekPetrak avatar HynekPetrak commented on August 16, 2024

Hi @jachstet-sea can you test current version from git? I was able to shorten run time by yet another 20% with the latest changes.

from log4shell-finder.

Related Issues (20)

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.