Re[2]: WinVNC & NT: 100% CPU utilization
Shane_McLaughlin@stream.com
Shane_McLaughlin "at" stream.com
Wed, 25 Mar 1998 12:44:28 +0000
--IMA.Boundary.0129280980
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part
Don't forget that the taskmanager itself is notorious for hogging a
lot of resources - typical M$ bloatware - i *think* that may be fixed
in a service pack update (a.k.a. bugfix)
try ps.exe, a port of the unix ps command to win32.
There's a lot of versions floating around on the 'Net,
<PLUG>
I recommend the Cygnus GNU-Win32 port of the GNU Un*x GCC, + unix
shell utils.
great for Unix junkies stuck with a win32 machine
</PLUG>
This should have a lot less resource usage.
http://www.cygnus.com/misc/gnu-win32/ 16MB for the entire development
enviroment
Drop me a line and i'll email you ps.exe and the necessary cygwin.dll
to run it. As well, the individual files are also buried deeply on
Cygnus' FTP site.
______________________________ Reply Separator _________________________________
Subject: Re: WinVNC & NT: 100% CPU utilization
Author: "James [Wez] Weatherall" <jnw "at" orl.co.uk> at Internet
Date: 3/25/98 10:21 AM
On Tue, 24 Mar 1998, dave w capella wrote:
> I fired up the NT's TaskMgr to monitor CPU & memory use. To my
> surprise, I found that with only WinVNC running, serving 2 clients,
> my CPU utilization hit the ceiling (100%). It's only got 32mb, but only
> 28mb were committed (no thrashing). A check of all processes
> revealed that WinVNC was taking 85% - 98% of the CPU's time. The only
> other processes running were the standard NT server services: IIS,FTP,
> standard TCP services.
Connecting multiple clients to WinVNC is known to increase CPU usage.
However, under Windows NT this should rarely prove to be a problem, since
WinVNC will be scheduled in the same way as any other user application and
so will not lock out other processes.
Note also that WinVNC's CPU usage will rise proportionally to the area of
the screen being updated. This means that dragging large windows, or
having large windows regularly updating (e.g. the system clock maxmised to
fill the screen), will cause CPU usage to peak.
However, I suspect the real reason for this apparent performance hit is
that you're running the Task Manager on the desktop of an NT box that is
being viewed by two VNC clients. So a large proportion of the CPU cycles
being used by WinVNC will be coming from the fact that you have the Task
Manager updating it's display every half second or so, to two clients. I
managed to get roughly the CPU usage you describe (although I have two
CPU's, so I was looking for only ~40% usage on average, as being
comparable). When I close the task manager, CPU usage drops markedly.
> I've been telling colleagues that this is *not* resource hungry, and
> I could have sworn that my earlier tests bore this out. Any idea why
> this 'virgin' machine would exhibit such behavior? Or were my earlier
> results wrong?
Were you performing similar tasks in your original trials to the case
described above? How many clients did you originally have connected?
Cheers,
James "Wez" Weatherall
--
Olivetti & Oracle Research Laboratory, Cambridge, UK.
Tel : Work - 343000
--IMA.Boundary.0129280980
Content-Type: text/plain; charset=US-ASCII; name="RFC822 message headers"
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part
Content-Disposition: inline; filename="RFC822 message headers"
Received: from shallot.cam-orl.co.uk (158.124.64.109) by smtpmail.stream.com
with SMTP
(IMA Internet Exchange 2.11 Enterprise) id 0013FDCF; Wed, 25 Mar 98 05:53:25
-0500
Received: from majordom by shallot.cam-orl.co.uk with local (Exim 1.73 #1)
id 0yHnIs-0003Ta-00; Wed, 25 Mar 1998 10:21:02 +0000
Received: from pumpkin [158.124.64.14]
by shallot.cam-orl.co.uk with smtp (Exim 1.73 #1)
id 0yHnIq-0003TS-00; Wed, 25 Mar 1998 10:21:00 +0000
Date: Wed, 25 Mar 1998 10:21:00 +0000 (GMT)
From: "James [Wez] Weatherall" <jnw "at" orl.co.uk>
X-Sender: jnw "at" pumpkin
To: dave w capella <dave.capella "at" cornell.edu>
cc: vnc-list "at" orl.co.uk
Subject: Re: WinVNC & NT: 100% CPU utilization
In-Reply-To: <3.0.2.32.19980324181014.009afd00 "at" postoffice4.mail.cornell.edu>
Message-ID: <Pine.SOL.3.95.980325100028.25674A-100000 "at" pumpkin>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-vnc-list "at" orl.co.uk
Precedence: bulk
--IMA.Boundary.0129280980--