[indiana-discuss] prstat when running as a VirtualBox guest

Chris Ridd chrisridd at mac.com
Wed Jul 15 03:02:04 PDT 2009


I'm running b118 (b117) as a guest in VirtualBox 3.0.2 with the guest  
additions installed, and noticed that the CPU usage output by prstat  
and top are rather inconsistent.

On an "idle" GNOME session I see:

load averages:  0.09,  0.14,  0.22;               up 0+00:20:50         
10:58:45
102 processes: 101 sleeping, 1 on cpu
CPU states: 90.2% idle,  4.8% user,  5.0% kernel,  0.0% iowait,  0.0%  
swap
Kernel: 478 ctxsw, 29 trap, 631 intr, 1347 syscall, 10 flt
Memory: 768M phys mem, 62M free mem, 512M total swap, 512M free swap
Seconds to delay:
    PID USERNAME NLWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
   1031 cjr         2  59    0  101M   21M sleep    0:02  2.95% gnome- 
terminal
    826 cjr         1  59    0   69M   49M sleep    0:06  1.96% Xorg
   1037 cjr         1  59    0 2768K 1844K cpu      0:01  0.32% top
   1047 cjr         1  49    0 8900K 3160K sleep    0:00  0.27% prstat
[...]

    PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
    949 cjr        11M 3176K sleep   59    0   0:00:01 100% VBoxClient/2
     63 root       16M 5532K sleep   59    0   0:00:00  92% devfsadm/6
     13 dladm    3072K 1648K sleep   59    0   0:00:00  89% dlmgmtd/4
    826 cjr        69M   49M sleep   59    0   0:00:06  87% Xorg/1
   1031 cjr       101M   21M sleep   59    0   0:00:02  86% gnome- 
terminal/2
    935 cjr       112M   33M sleep   49    0   0:00:03  81% nautilus/2

Is this a bug in OpenSolaris or Virtualbox, or both? I saw this in  
b117 as well.

Cheers,

Chris



More information about the indiana-discuss mailing list