Yedidyah Bar-David wrote:

On Thu, Sep 29, 2005 at 11:37:34AM +0300, Boris Zingerman wrote:
Hi list

I'm runnig XP SP2 under vmware-5 on my linux
box ( RH9 kernel 2.4.28 ) and I see that vmware-wx
constantly uses 15-20% of CPU even when no application
is open in XP. But what is more interesting is that top always
reports this process (vmware-wx) as sleeping. How sleeping
process can constantly waste CPU? If it is just an artifact of
sampling that is done by top then statistically I should sometimes
see it in running state.

Did you try to strace it? Did you try 'top -i -d 0'?
Well I straced it and it seems that it performs
polling (with timeout 10msec ) on a bunch of
file descriptors which are these
lr-x------    1 root     root           64 Sep 29 15:16 106 -> pipe:[86868]
lr-x------ 1 root root 64 Sep 29 15:16 132 -> /proc/bus/usb/devices lrwx------ 1 root root 64 Sep 29 15:16 140 -> socket:[87088]
lrwx------    1 root     root           64 Sep 29 15:16 24 -> /dev/vmmon
lrwx------    1 root     root           64 Sep 29 15:16 25 -> /dev/vmmon
lr-x------    1 root     root           64 Sep 29 15:16 26 -> pipe:[87112]
lr-x------ 1 root root 64 Sep 29 15:16 29 -> pipe:[16717883]
lrwx------    1 root     root           64 Sep 29 15:16 31 -> socket:[86797]
lr-x------    1 root     root           64 Sep 29 15:16 5 -> pipe:[86777]

and file descriptor that allways returns POLLIN in revents is
25 -> /dev/vmmon , go figure out what's going on :-)
By the way this process doesn't show in top -i - d 0.2 because
it always seems to have sleeping status. Isn't it weird ?
(below is the line from regular top invocation)

PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
28920 boris-z   10 -10  506M 505M  496M S <  22.5 25.2  72:29   0 vmware-vmx




=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to