-
Notifications
You must be signed in to change notification settings - Fork 142
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
filterAndTrim error messages when multithreading #273
Comments
Agreed, we should add the potential memory issues to the documentation. The error reporting out of multithreaded |
A good solution is an informative warning/stop up-front so that the users is (at least somewhat) protected from the waisted time/resources of a run that will hit a memory fail. One possibility might be to check available memory up-front with some rules-of-thumb against the sequence file size. In some of our earlier work we found a decent correlation between compressed file size and peak memory required. This could be operationalized into a formal prediction with some reasonable default margin, knowing that the prediction isn't perfect. Better fail messages are also helpful, of course. |
I also have a similar error occurred when running filterAndTrim: Do anyone of you know how it occurs and how to fix it? I just set multithread=FALSE |
Windows doesn't support forking: |
So does "Windows doesn't support forking" means I should just set multithread=FALSE? It is the only way I make my code run successfully. |
@xinbaiusc For now you just have to do as you've done, set As a reminder to myself: This needs to be added to the documentation and tutorial 1.4, and for 1.6 a graceful fail-back on windows should be implemented. |
@benjjneb I just started using dada2 on a Windows system and would like to apply multithreading. However since forking is not supported in windows, I was wondering if anyone has thoughts on using the foreach package to multithread? |
Error messages from the individual cores on which errors were encountered are now propagated to standard output by |
I've noticed in some of my automated runs that filterAndTrim was crashing with this error:
I believe this has to do with the multithreading - specifically if enough threads are requested such that there is insufficient memory on the machine, some of them die silently and lead to the
mcmapply
error above. This easily remedied by settingmultithread=ncores
wherencores
is something reasonable (16 in my case). Just thought I'd share in case anyone else has run into this as the error message is not informative.I don't see any good place to catch this (as it seems internal to
mcmapply
) but perhaps a note in the tutorial or FAQs/troubleshooting might be helpful.The text was updated successfully, but these errors were encountered: