Perl: the Markov chain saw | |
PerlMonks |
Re^2: Multithreaded process on AIX slowby scunacc (Acolyte) |
on Nov 14, 2013 at 14:59 UTC ( [id://1062608]=note: print w/replies, xml ) | Need Help?? |
Hi Alex. Thanks for the thoughts. Essentially you are correct in your 2nd sentence. I do have a standalone version of the very simple REST piece I could try hammering away with as fast as possible in parallel I guess. I should do that to eliminate the cross-fertilization with the threading on AIX I suppose, but, it needs to work in this server, otherwise I'll have to use the Linux port instead which is not ideal in this situation but might be workable. (The server communicates with another similar (but-non-REST-call-making) server to store the results from the REST calls in a database among many other tasks, but that second server currently runs on the AIX box where it needs to sit - and does so very smoothly presently. However, they *are* on the same net and it is all interoperable - just that it means more net interactions between the two machines instead of having both servers on the same machine.) And, yes, if I reduce the # of REST calls by batching as I've mentioned, it works very quickly - quicker even than the Linux version. The REST resource is not in contention. + I have short-fuse alarm timeout handlers using eval built around the calls so if they do fail it bombs gracefully and moves on to the next call. Kind regards Derek
In Section
Seekers of Perl Wisdom
|
|