Re: perl multithreading performance
- From: dniq00@xxxxxxxxx
- Date: Wed, 27 Aug 2008 14:15:34 -0700 (PDT)
On Aug 27, 5:06 pm, Ted Zlatanov <t...@xxxxxxxxxxxx> wrote:
You may be hitting the limits of I/O. Try feeding your script
pre-canned data from memory in a loop and see if that improves
performance.
No, the IO is fine - there are pretty much always $q_in->pending > 1,
and as the script does its thing, number of pending buffers sometimes
goes beyond 10.
It also depends on what kind of processing you are doing
on input lines.
Just trying to match multiple regexps against each line.
Also, check out the swatch log file monitor, it may do what you need
already.
Nope, it doesn't :( I already have the single-threaded script, which
has been working for years now, but the amount of logs it needs to
process keeps growing, and I'm basically at the point where it can
only keep up with the speed with which logs are being written, so if
there's back-log for whatever reason - it might not catch up, so I'm
looking into how I can improve its performance.
.
- References:
- perl multithreading performance
- From: dniq00
- Re: perl multithreading performance
- From: Ted Zlatanov
- perl multithreading performance
- Prev by Date: Re: perl multithreading performance
- Next by Date: Re: perl multithreading performance
- Previous by thread: Re: perl multithreading performance
- Next by thread: Re: perl multithreading performance
- Index(es):
Relevant Pages
|