-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fast scanning ADF with long post-processing steps will consume all resources #4
Comments
Yup, that was the intended behavior to parallelize the processing. Has running out of resources actually been an issue for you, or is this more of an academic concern? I find it difficult to believe a scanner could scan pages fast enough to cause a problem. |
Yeah. We have a Fujitsu that can scan upto 60PPM. I was doing some testing on a laptop with the scanner on duplex, producing 78~ pages, and it'd spawn an absurd amount of |
Nice scanner :-) Ok, good thing to fix. |
@jarrodsfarrell Probably the easiest way I've found to do this is to use |
Taking a look into the project's man page it seems perfectly fine to use and a non-issue to have another dependency. |
@jarrodsfarrell Can you grab the changes in pull #5 and see if that solves your problem? If it works for you, I'll merge it. |
Currently at work, but I will give it a try whenever I can.
|
Unfortunately we don't have the 60PPM like before so I'm using a 25PPM model instead. Regardless, it seems like using
Nevermind. It'd help if I read the documentation. |
Thanks for reporting and testing. I'll merge this. |
I use my Raspberry Pi 4 because my Scansnap has not WebDAV or FTP feature. The resources of the pi runs out very quickly. @rocketraman Can you please add |
It's already listed under optional requirements, but perhaps this issue deserves a more extensive call out. |
@MoD01 I added an explanatory line in features for future people in your situation... |
Since every page will spawn a new instance of the
scan_perpage
script (unless verbose logging is enabled) and if the scanner is scanning pages rapidly, it'll spawn too many processes and consume all resources as a result.Perhaps should limit the amount of scripts to as many CPU cores the host has.
The text was updated successfully, but these errors were encountered: