Best strategy to solve performance issues ??

J

juvi

hello,

I have got a launcher written in .net cf 2.0 / 3.5 C#. It loads about 50
images to cache (optmized for VGA resolution) and works with it (draws
transparent images with opennetcf)

This works with good speed and no lags on ACER N311 with 400 MHz Samsung cpu.
(no phone functionality).

Works with little lags on E-TEN Glofiish X800 (with phone functionality)

Works perfectly on HTC Touch Diamond.

But is unusable on some HTC devices like TyTn II ... lags of about 20secs!!

Is there a good strategy to find&solve the performance issue??

Thanks for any help,

juvi
 
J

juvi

hello,

thank you for your reply....I tried performance monitor and sended the
results to perfmon to see the result visually - not sure where to start,
because there are many values on 100%...here is the list of the AVG values:

CPU - time (&): 25%
Peak Bytes Allocated (native+managed): 1.875.528
Managed Objects Allocated: 48.913,100
Managed Bytes Allocated: 1.818.000 (rising!)
Managed String Objects Allocated: 23.933,000 (rising!)
Bytes of String Objects Allocated: 863.836,000 (rising!)
Garbage Collections (GC): 6,000
Bytes Collected By GC: 4.370.840
Managed Bytes In Use After GC: 279.680,00
Total Bytes In Use After GC: 2.025.040
GC Compactions: 4,000
Code Pitchings: 1,000
Calls to GC.Collect: 0,000
GC Latency Time (ms): 252,000
Pinned Objects: 35,000
Objects Moved by Compactor: 25.921,000
Objects Not Moved by Compactor: 4.236,000
Objects Finalized: 10.604,000
Boxed Value Types: 19.968,000

Maybe you can tell me more about these values.

thx
 
C

Chris Tacke, MVP

How long did this run? 6000 GCs with 4000 compactions is a *lot* if it's
over a short perios of time, and indicates some serious allocation
architecture problems in your app. GC latency is a quarter seconds, so
that's something like what 25 minutes spent in GC?


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
J

juvi

The app runned about 5minutes - as I said before...I have no experience with
the remote performance monitor and I need help to find the performance issue
problems to can correct them (if possible).

I spent a lot of time for writing my launcher and now I have this
performance problems on "some" devices...can not really explain what the
problem is (maybe the performance from drawing through opennetcf??)

thx
 
G

Germán Schuager

Hi,
Check whether you have enough memory or not in the device with
problems... I've seen the same issue (GC runs too often and takes too
long) when a program is running out of memory (I've adjusted the
storage/program memory ratio to solve my problem)
If the same software runs long enough without problems in another
device (as you said) it may be an indication of memory shortage and
not of an allocation architecture issue.

Regards,

Germán Schuager
http://gschuager.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top