Post Reply 
Yet another HP simulator (using C + X11)
12-26-2021, 07:07 PM
Post: #30
RE: Yet another HP simulator (using C + X11)
(12-26-2021 04:13 PM)Mike T. Wrote:  If would he helpful to know what VM host you have and which desktop you were using?

The VM host is VirtualBox 6.1.29 r148218 running under the latest MacOS;
the desktop is GNOME 3 with Xorg (no Wayland).

(12-26-2021 04:13 PM)Mike T. Wrote:  Was the simulator using 100% CPU all the time? If it was then that suggests that it is using a default busy loop rather then an dependent sleep() function.

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

(12-26-2021 04:13 PM)Mike T. Wrote:  If you send me a private message with the output of 'dpkg --get-selections' that would be useful (alternatively create an issue on github https://github.com/mike632t/x11-calc/blo...em-reports and attach it there).

Will do, you should be getting it shortly.
Visit this user's website 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) - Thomas Okken - 12-26-2021 07:07 PM



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