threading a thread

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Tue Feb 27 19:33:42 EST 2007


tubby wrote:

> Have you tried it? Nmap is sequential.

RTFM?

| NMAP(1)                Nmap Reference Guide                NMAP(1)
| [...]
| TIMING AND PERFORMANCE
|       [...] While Nmap utilizes parallelism and many advanced
|       algorithms to accelerate these scans, the user has ultimate
|       control over how Nmap runs. 
|
|       --min-hostgroup <numhosts>; --max-hostgroup <numhosts>
|             (Adjust parallel scan group sizes)
|             [...] 
|       --min-parallelism <numprobes>; --max-parallelism <numprobes>
|             (Adjust probe parallelization)
|             [...]

> I can do the same thing in roughly 15 minutes with Python or Ruby
> using threads.

Have fun.

> Also remember that we're dealing with IPv4 networks now. How will
> we deal with larger IPv6 address spaces. Besides clustering and
> distributed processing (mapreduce), it seems that threads may help
> deal with some of the scaling issues I face right now.

Please observe that there are simpler and easier (in many cases)
means of parallelisation. For example Unix' select().

Regards,


Björn

-- 
BOFH excuse #368:

Failure to adjust for daylight savings time.




More information about the Python-list mailing list