Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU usage low... #70

Open
Gonzo2O28 opened this issue Jul 6, 2022 · 3 comments
Open

CPU usage low... #70

Gonzo2O28 opened this issue Jul 6, 2022 · 3 comments
Labels

Comments

@Gonzo2O28
Copy link

Today i found https://sharp.pixelplumbing.com/ and after reading i found your cli version. I am impressed by the results, it works great. Now i am running it on thousands of images and i wonder why it does not use the full power of my 16 cores 5950x. Load in htop looks pretty low. Is there anything i could do?
I found no switch to set a core-count, or something.

Regards.
Not sure if its an "issue"...

@vseventer
Copy link
Owner

Today i found https://sharp.pixelplumbing.com/ and after reading i found your cli version. I am impressed by the results, it works great. Now i am running it on thousands of images and i wonder why it does not use the full power of my 16 cores 5950x. Load in htop looks pretty low. Is there anything i could do? I found no switch to set a core-count, or something.

Regards. Not sure if its an "issue"...

What are you experiencing / expecting? Does it take too long?

The CLI invokes the sharp pipeline for (all) images in parallel, but I'm not sure about further specifics on how sharp deals with that - maybe this is helpful?

@Gonzo2O28
Copy link
Author

Hm, does it take long... Thats relative ;).
I am running it over thousands of images while merging a project from old to new software. And i was curious if there might be some performance switches i might have overseen.
I just want my 16 cores to be used like when they compile.

@mathieu-aubin
Copy link

Try using GNU Parallel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants