Ticket #1437 (new defect)

Opened 2 years ago

Last modified 5 months ago

100% CPU when idling

Reported by: danboo Owned by: adamk
Priority: major Milestone:
Component: performance Version: 0.96
Keywords: cpu performance idle Cc:

Description

When I minimize Padre the CPU utilization sits near zero for about 30-45 minutes, but then starts to climb gradually. I would estimate that it climbs about 20 percentage points per hour until it hits 100%.

During this whole time 'perl -d:Trace' shows it repeatedly running the following once per second:

>> /home/danboo/perl5142/lib/site_perl/5.14.2/Padre/Wx/ActionQueue.pm:44:                       $self->on_timer( $_[1], $_[2] );
>> /home/danboo/perl5142/lib/site_perl/5.14.2/Padre/Wx/ActionQueue.pm:87:       my $self  = shift;
>> /home/danboo/perl5142/lib/site_perl/5.14.2/Padre/Wx/ActionQueue.pm:88:       my $event = shift;
>> /home/danboo/perl5142/lib/site_perl/5.14.2/Padre/Wx/ActionQueue.pm:89:       my $force = shift;
>> /home/danboo/perl5142/lib/site_perl/5.14.2/Padre/Wx/ActionQueue.pm:91:       if ( $#{ $self->{queue} } > -1 ) {
>> /home/danboo/perl5142/lib/site_perl/5.14.2/Padre/Wx/ActionQueue.pm:91:       if ( $#{ $self->{queue} } > -1 ) {
>> /home/danboo/perl5142/lib/site_perl/5.14.2/Padre/Wx/ActionQueue.pm:111:      $event->Skip(0) if defined $event;
>> /home/danboo/perl5142/lib/site_perl/5.14.2/Padre/Wx/ActionQueue.pm:113:      return 1;

strace shows it repeatedly executing:

[pid 28031] ioctl(5, FIONREAD, [0])     = 0
[pid 28031] gettimeofday({1336403530, 275458}, NULL) = 0
[pid 28031] poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=21, events=POLLIN}], 5, 0) = 0
[pid 28031] ioctl(5, FIONREAD, [0])     = 0
[pid 28031] gettimeofday({1336403530, 275684}, NULL) = 0
[pid 28031] poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=21, events=POLLIN}], 5, 0) = 0
[pid 28031] write(5, "\2\0\4\0\320\2\300\1\0@\0\0uA\315\1\2\0\4\0\306\2\300\1\0@\0\0\v\0\300\1"...,
944) = 944

System Info:

                   Padre 0.96
Core...
                  osname linux
                archname i686-linux-thread-multi
            Distribution This is a private computer system with access restricted tothose with proper authorization.  If you are not specificallyauthorized to access data on this system, disconnect now.All information and communications on this system aresubject to review, monitoring, and recording at any timewithout notice or permission.  Unauthorized use or accessmay be subject to prosecution or disciplinary action.
                  Kernel 2.6.9-78.0.1.ELhugemem
                    Perl 5.14.2
                 Threads 6
                     RAM 218.8MB
Wx...
                      Wx 0.9906
               WxWidgets 2.8.10
                 unicode 1
        Alien::wxWidgets 0.54
 Wx::Perl::ProcessStream 0.32
           Wx::Scintilla 0.3801
Other...
                     PPI 1.215
           Debug::Client 0.20
                  Config /home/danboo/.padre

Change History

comment:1 Changed 2 years ago by danboo

It looks like minimizing Padre isn't necessary. Just hiding it behind another window, so it receives no input, is sufficient.

comment:2 Changed 5 months ago by andmott

  • Keywords cpu performance idle added
  • Owner set to adamk
  • Component changed from not classified yet to performance
Note: See TracTickets for help on using tickets.