Re: POE Tk excessive CPU usage

2007-08-05 Thread John R.
John wrote: On Mon, May 21, 2007 at 09:01:36AM -0500, Craig Votava wrote: Folks- Has anybody come up with a solution to this problem? According to the changelog for POE 0. this has been fixed. I think I posted in this thread or another similar what worked for me (recompling

Re: POE Tk excessive CPU usage

2007-05-21 Thread John
On Mon, May 21, 2007 at 09:01:36AM -0500, Craig Votava wrote: Folks- Has anybody come up with a solution to this problem? I think I posted in this thread or another similar what worked for me (recompling libevent). This may not have been it as I still have the following behavior: - If

Re: POE Tk excessive CPU usage

2007-05-03 Thread Craig Votava
Are the previous comments hinting at the story? # This is the select loop itself. We do a Bad Thing here by polling # for socket activity, but it's necessary with ActiveState's Tk. # # -- We should really stop the poller when there are no handles to # watch and resume it as needed. Any

Re: POE Tk excessive CPU usage

2007-05-03 Thread John R.
Craig Votava wrote: Are the previous comments hinting at the story? The problem occurs for me, but I am not using ActiveState. I dug around a little in the code and could not find where the looping is occurring (I focused on where the select statements were). I was going to try and dig

Re: POE Tk excessive CPU usage

2007-05-03 Thread John R.
I recompiled glibc (didn't reduce cpu usage) and then recompiled libevent. That seems to have fixed it. I will work some more with it. John

Re: POE Tk excessive CPU usage?

2007-05-02 Thread Craig Votava
Folks- Anybody have any thoughts on this? I haven't heard a whisper yet. Do others see the same thing? Thanks -Craig On Apr 27, 2007, at 11:15 AM, Craig Votava wrote: Folks- When I use POE and Tk together, I see the process using up a constant 50% of my CPU, even when there's nothing going

Re: POE Tk excessive CPU usage?

2007-05-02 Thread Mark Swayne
I see the same thing on my system, using: POE 0.9989 Tk 804.27 Perl 5.8.8 (ActivePerl build 819) The process is eating a whole CPU. Since I have a dual processor setup, the script is pegged at 50% CPU utilization. --Mark Swayne Craig Votava wrote: Folks- When I use POE and Tk

Re: POE Tk excessive CPU usage

2007-05-02 Thread David Davis
POE::Loop::TkActiveState is using select with a timeout of 0. That doesn't look right to me. my $hits = select( my $rout = $loop_vectors[MODE_RD], my $wout = $loop_vectors[MODE_WR], my $eout = $loop_vectors[MODE_EX], 0, ); David On 5/2/07, John R. [EMAIL

POE Tk excessive CPU usage?

2007-04-27 Thread Craig Votava
Folks- When I use POE and Tk together, I see the process using up a constant 50% of my CPU, even when there's nothing going on. Am I doing something wrong, or is there a good explanation for this? Is there any way to reduce this? Attached is a small test program. Thanks -Craig