I'm doing a project for a group that's using IRC as the guts of a chatroom,
and I'm load-testing the irc daemon with a Perl script. It uses Net::IRC to
make one connection to the server, then blathers endlessly, every $X seconds,
on a channel until it's stopped. (All machines concerned here are running Linux 2.2.)
I need to run arbitrary huge numbers of connections (500+ per bot machine would be nice), so
I can find out what the ircd can take. Problem is, I can only
run about 100 bot processes before the bot machine starts flailing against the open-files
limit of the OS. What can I do about this problem, short of recompiling the kernel?
Are there any general things I should be doing to increase the efficiency of the bot?
I'm avoiding threads because I've heard they're unstable in Perl. Thoughts?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.