Post Reply 
Yet another HP simulator (using C + X11)
12-27-2021, 12:12 AM
Post: #31
RE: Yet another HP simulator (using C + X11)
(12-26-2021 07:07 PM)Thomas Okken Wrote:  Pretty much, yes, but note that it's not the simulator itself that's using all that CPU time:

Code:
top - 20:01:47 up 10 min,  3 users,  load average: 1.02, 0.61, 0.38
Tasks: 203 total,   2 running, 201 sleeping,   0 stopped,   0 zombie
%Cpu(s): 62.3 us, 14.9 sy,  0.0 ni, 22.6 id,  0.0 wa,  0.0 hi,  0.2 si,  0.0 st
KiB Mem:   2048144 total,  1580932 used,   467212 free,    19440 buffers
KiB Swap:  2095100 total,     7652 used,  2087448 free.   450480 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                         
 2051 thomas    20   0 1638940 276124  67544 R 116.3 13.5   2:31.84 compiz                                                          
 1019 root      20   0  373216  84776  30160 S  33.2  4.1   0:56.02 Xorg                                                            
 3318 thomas    20   0   22340   2944   2620 S   2.3  0.1   0:01.28 x11-calc-67                                                     
 2281 thomas    20   0 1619444 201468 112084 S   0.7  9.8   0:17.05 Web Content                                                     
 2348 thomas    20   0 1839656 243068  82820 S   0.7 11.9   0:15.93 WebExtensions                                                   
    7 root      20   0       0      0      0 S   0.3  0.0   0:00.68 rcu_sched                                                       
  144 root       0 -20       0      0      0 S   0.3  0.0   0:00.01 kworker/1:1H                                                    
 1734 thomas    20   0  182964   2832   2484 S   0.3  0.1   0:01.25 VBoxClient                                                      
 2558 thomas    20   0  659576  30608  22332 S   0.3  1.5   0:01.39 gnome-terminal                                                  
 3331 thomas    20   0   29168   3128   2576 R   0.3  0.2   0:00.11 top

The good news is that it isn't the busy loop issue (so the compiler is behaving itself), but I have no idea why compiz is taking so much CPU. I'm not a MAC user but I'll see if I can reproduce the problem in QEMU on Debian...

Mike T.

HP21, HP25, HP32E, HP33C, HP34C, HP10C, HP11C, HP12C, HP32S, HP22S
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Yet another HP simulator (using C + X11) - Mike T. - 12-27-2021 12:12 AM



User(s) browsing this thread: 1 Guest(s)