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
Added upper bound on number of threads ZMap can use #811
Conversation
I think this is a good warning to have, but I'm wary of overriding if they're explicitly setting it. ZMap would certainly be slower but it should still operate correctly when using a large number of threads. |
Well it at least has issues with very high number of threads on Mac.
IIRC, Mac has a much smaller number of packet filters compared to linux. Either way, the warning should be sufficient to inform the user that they shouldn't be doing that 😄 . |
Yeah, I think that error explains that pretty well. We could add some more helpful text to that error that says "Try using fewer sender threads" |
Updated! |
Logic looks good. That said, most of the changed files in this commit seem to be autogenerated using an older version of ronn than what's currently checked in, and aren't real changes. Probably makes sense to pull those out of the PR. |
…/zmap into phillip/809-zmap-fails-to-terminate
@zakird If this looks good to you, I'm good to merge. |
We had an issue opened because ZMap had strange behavior with
--sender-threads=200
. I mentioned that there isn't any performance benefit, but I think ZMap itself should prevent usage of the tool that is counter-productive or leads to unexpected behavior. I can't think of any drawbacks to capping sender threads tonumber of cores - 1
.Changes
--sender-threads=number of cores - 1
and warn the user and override their-T
if they exceed the cap