Bug#1012227: webkitgtk: CPU usage

tmcconnell168 at gmail.com tmcconnell168 at gmail.com
Fri Jun 10 17:27:39 BST 2022


HI Alberto, 
I ran top and got this: 
 5533 tmick     20   0   84.3g 620608  60480 R  98.3   8.7   4:36.70
WebKitWebProces                                      
  81329 tmick     20   0  630188  54172  40612 S   3.0   0.8   0:08.15
kgx                                                  
   2435 root      20   0  549452  39024   9696 S   2.3   0.5  21:49.73
Suricata-Main                                        
  81228 tmick     20   0   85404  81028  32700 S   2.3   1.1   0:08.00
tor                                                  
     26 root      -2   0       0      0      0 S   1.7   0.0  12:28.53
ktimers/1                                            
   5351 tmick     20   0  604232   6988   4304 S   1.7   0.1  12:48.10
conky                                                
     14 root      -2   0       0      0      0 S   1.3   0.0  12:24.36
ktimers/0                                            
  10567 tmick     10 -10  683520  62100  35208 S   1.3   0.9  12:14.97
steam                                                
   4606 tmick     20   0 2714596 100340  19624 S   1.0   1.4   5:16.95
java                                                 
   4763 tmick     20   0  617604  63860  37256 S   0.7   0.9   8:34.09
Xwayland                                             
    914 root      20   0  258060  16240  13700 S   0.3   0.2   0:05.96
NetworkManager                                       
  81506 root      20   0   10668   4308   3380 R   0.3   0.1   0:00.13
top                                                  
      1 root      20   0  167420  11080   7004 S   0.0   0.2   0:09.06
systemd                                              
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.02
kthreadd                                             
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00
rcu_gp                                               
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00
rcu_par_gp                                           
      5 root       0 -20       0      0      0 I   0.0   0.0   0:00.00
netns                                                
      9 root       0 -20       0      0      0 I   0.0   0.0   0:00.00
mm_percpu_wq                                         
     10 root      20   0       0      0      0 I   0.0   0.0   0:00.00
rcu_tasks_kthread                                    
     11 root      20   0       0      0      0 I   0.0   0.0   0:00.00
rcu_tasks_rude_kthread                               
     12 root      20   0       0      0      0 I   0.0   0.0   0:00.00
rcu_tasks_trace_kthread                              
     13 root      20   0       0      0      0 S   0.0   0.0   1:05.02
ksoftirqd/0 


Running sudo perf top -pPID --sort dso,symbol told me gave me
 ┌─Error:─────────────────────────────────────────┐
                                     │Couldn't create thread/CPU maps:
No such process│
                                     │                                
│
                                     │                                
│
                                     │Press any key...                
│
                                    
└────────────────────────────────────────────────┘
Tim 

-- 
 <tmcconnell168 at gmail.com>


On Thu, 2022-06-09 at 22:59 +0000, Alberto Garcia wrote:
> On Thu, Jun 09, 2022 at 03:59:33PM -0500, Tim McConnell wrote:
> 
> > running sudo ps -aux |grep WebKitWebProcess
> > tmick    4071296 53.0  9.5 88411428 683212 ?     RLl  15:38   8:13
> > /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess 13 35
> > tmick    4073180  0.0  0.0   6432  2284 pts/1    T    15:52   0:00
> > grep
> > WebKitWebProcess
> > tmick    4073195  0.0  0.0   6432  2284 pts/1    S+   15:54   0:00
> > grep
> > WebKitWebProcess
> > 
> > And stays there until I shutdown everything that uses it.
> > Evolution, TOR,
> > Firefox and reboot. It's like I'm running Windows 3.11 again.
> 
> Can you please try this?
> 
> - Run webkit and identify the PID that is using most of the CPU
> (using
>   top or any similar tool)
> 
> - As root run "perf top -pPID --sort dso,symbol"
> 
> This will give you the shared libraries and symbols that are eating
> the CPU.
> 
> Thanks,
> 
> Berto



More information about the Pkg-webkit-maintainers mailing list