Re: Why is the CE 6 emulator so slow?



Is there more than one? I thought there was only the ARM emulator.

You thought wrong. There are a few versions of Device Emulator (3 I
believe).


This is an image that I built but is pretty much a vanilla network
appliance
style build, pretty much the same as Mike Hall used in his video.

CPU activity drops to close to zero when there is no UI activity so it
would
seem there are no silly backgroungd threads running.


But the fact that it's very slow indicates that something is going wrong.
You're also looking at CPU activity of the host PC, not the actual device,
which is not necessarily the same. A debug image would be of great use
here. Using kernel tracker would probably help too. If you created the
image then there are several tools that you have to see what the OS is
doing.

Here's what I see:
* Actual load is pretty quick. A few seconds to load the image.
* Boot (emulator launched and loaded until main WInCE window and chime)
takes approx 5 minutes.

This indicates a problem. Again, the debug output will give you a lot more
information than a stopwatch.

* Launch the file explorer and painting the window it takes approx 1
minute.
Same again for entering a directory.

Again, this indicates a problem, and without debug output it's only blind
guessing as to what that problem might be.

* Stepping a driver in VS takes approx a second.

So you're attached with KITL already? That means you are already seeing the
debug stream. What is it telling you?


I notice that the emulator only uses one core in a dual core CPU and about
80%-90% of that is being soaked up. CPU usage drops to 3% or so when the
UI
is idle.

Sure, the CE OS isn't set up for using multiple processors, and it's
unlikely the emulator is either.

*What sort of speed do you see?

It's not as fast as a device, but not greatly different. Load one of the
Windows Mobile emulators and see how they run. They are using the same
emulator code, just with WinMo device images.

* What sort of speed should I expect?

The same as the WinMo stuff - maybe faster if you're doing less. Maybe
slower if you're doing more. Speed is subject to a lot of variables, none
of which we know about your system.

* What can I do to speed this up? Or alternatively what can be screwed up?

Find out what's going wrong by debugging with the tools. My telekinesis
powers are a bit lacking lately so I can't remote view what your OS is doing
or what PB is telling you.

Perhaps I've screwed up a setting or perhaps I am spoilt from using other
development environments.

Perhaps. Again, we know absolutely nothing about what you've done, what BSP
you're using, what image contents you have, what drivers are loaded or
anything. The number of things that might be wrong is nearly infinite, and
it may well (and likely is) something very simple. However only the person
sitting at the development PC reading the information the tool is giving has
any hope of determining what that problem might be. We can help, but only
when provided information. An analogy to what you've told us would be
something like this:

I have a car. It has a motor. On a 6 lane interstate I can only go 30mph.
I once drove a sports car and it was fast. Why is my car slow? Is it
because my cars manufacturer did something wrong?


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com



.



Relevant Pages

  • Re: Teen caught in the wrong decade: VMS today
    ... > both the emulator layer and the underlying OS layer. ... They come with a SCSI controller onboard. ... I´ve had some good experiences with certain Pioneer drives booting ... May be renting a car is safer if a system ...
    (comp.os.vms)
  • Re: Emulator
    ... It's an emulator. ... perfect virtual reality simulation of a new car, ... I have to get everything work of storage card in unit testing environment ... Well right now the storage card is to local folder and its ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Why is the CE 6 emulator so slow?
    ... Hall has done many videos and created many emulator images. ... Provide the debug output. ... CPU activity drops to close to zero when there is no UI activity so it ... A few seconds to load the image. ...
    (microsoft.public.windowsce.platbuilder)
  • Can ce4.2 Emulator using Com1 and debug by evC++
    ... my faced problems: ... the Created Connection prompt msg ... i have tried some recommends in "disable debug output serial" ... by the way,the PB Configure Emulator Download Service-> Serial Port1: ...
    (microsoft.public.windowsce.platbuilder)