ValentinBELYN / icmplib

Easily forge ICMP packets and make your own ping and traceroute.
GNU Lesser General Public License v3.0
276 stars 45 forks source link

Multiping scale #53

Closed Huthesh closed 2 years ago

Huthesh commented 2 years ago

How may host can we ping using multi ping. I tried with 1000 host. Ping was successful but CPU utilisation was more than 100%? Is there a known issue?

ValentinBELYN commented 2 years ago

Hi @Huthesh 👋

The multiping function can take an infinite number of hosts. By default, it performs 50 pings simultaneously. If you find that your CPU load is too high, you can influence this parameter using the concurrent_tasks option.

# Performs 25 pings simultaneously instead of 50
hosts = multiping(['10.0.0.5', '127.0.0.1', '::1', ...], concurrent_tasks=25)