Don't post DoS source in public.

pfft, even the most lame ass script kiddie can download far better dossing tools than this from a plethora of locations.

The script is more about stress testing than dossing tbh, because very quickly you run into your own pipe's bandwidth limitations anyway, and even a tiny little $20 a month server which is coded properly can handle the worst anyone could throw using a script like this.

A Quad Core Phenom II can easily handle running 128 workers, and when you remove the bandwidth bottleneck by running this script against localhost, the result is 100% CPU utilisation for quite a short period of time before the test is complete. (a matter of seconds rather than minutes)

The point is seeing how well the server copes with large amounts of concurrent requests which an inefficient system would struggle with because it would exceed the available memory and start to grind around in virtual memory before crashing.

That's why on modern hardware with multi-core multi-ghz processors, CPU utilisation is less important these days than memory utilisation, and older code which is optimised for slow single core CPU's by using large amounts of caching and so forth is less efficient on modern hardware than code which relies on using larger amounts of CPU whilst using memory sparingly.

The computer industry is going through a change in the way it works and thinks because of the relentless increase in processor power. The game keeps changing and progress marches forwards without stopping. Anyone who thinks otherwise is a fool to be ignored.


In reply to Re^2: Can your site handle this? by Anonymous Monk
in thread Can your site handle this? by Logicus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.