in reply to Re^12: PANIC: underlying join failed threded tcp server
in thread PANIC: underlying join failed threded tcp server
Would it be possible for you to revert the perl in your VM to 5.10.1?
It seems that somewhere between 5.10.1 and 5.16.1, somebody has dicked around with the threading and totally screwed the pooch.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^14: PANIC: underlying join failed threded tcp server
by rmahin (Scribe) on Oct 24, 2012 at 23:33 UTC | |
HEY! Got the server working by putting some of Thread::Queue into my code, and now it seems to be running like a champ. If you'd like to see the code let me know, but I'm guessing you have a fair idea of how its working. Ran 200k commands in 2 hours without a hiccup. And that is really interesting that threads got messed up. I'll definitely try downgrading perl and testing it out but as it is no longer a time critical thing, and more a matter of interest, I probably wont get to it until next week. Again, I really cannot stress enough how thankful I am for all your help debugging. Could not have gotten this far without you. | [reply] |
by BrowserUk (Patriarch) on Oct 24, 2012 at 23:52 UTC | |
HEY! Got the server working by putting some of Thread::Queue into my code, and now it seems to be running like a champ. If you'd like to see the code let me know, but I'm guessing you have a fair idea of how its working. Ran 200k commands in 2 hours without a hiccup. Cool. (Yes. I would really like to see the code. You have my email id.) And that is really interesting that threads got messed up. I'll definitely try downgrading perl and testing it out but as it is no longer a time critical thing, and more a matter of interest, I probably wont get to it until next week. I took your latest code -- stripped out the defensive stuff out of rxd.pl:
Tweaked the client (rx,pl) to run many commands in loop and do so from multiple threads:
With 5.16.1, this falls in a heap with 1 thread after just a few seconds. The same "invalid handle" stuff as you've been seeing. With 5.10.1, I ran the above with those numbers -- 1000 concurrent clients, each running 1000 commands (the simple dir /s) and it ran to completion (after 1,000,000 commands served :), without errors in a little over 1 1/2 hours. And that's with 3 cores running the server and 1 core running the clients. Peak memory usage for the server was around 1.5 GB. Again, I really cannot stress enough how thankful I am for all your help debugging. Could not have gotten this far without you. YW. I learn almost as much from each of these real-world uses as the people I'm helping do. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] [select] |
by rmahin (Scribe) on Nov 16, 2012 at 00:21 UTC | |
| [reply] [d/l] |