HighTechTalks DotNet Forums  

Why is 2.0 App doing RT checks ?

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Why is 2.0 App doing RT checks ? in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
vmkamat@gmail.com
 
Posts: n/a

Default Why is 2.0 App doing RT checks ? - 09-28-2007 , 08:57 AM






I just converted a 1.1 app to 2.0. The app runs very slow, and cpu
utilization is almost 3 times. While investigating I noticed that the
additional time is spent in RT checks. RT checks for 1.1 was 0.

App is compiled and run locally.


Reply With Quote
  #2  
Old   
Michael Nemtsev, MVP
 
Posts: n/a

Default Re: Why is 2.0 App doing RT checks ? - 09-29-2007 , 06:26 AM






Hello vmkamat (AT) gmail (DOT) com,

What checks u are talkin' about?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


Quote:
I just converted a 1.1 app to 2.0. The app runs very slow, and cpu
utilization is almost 3 times. While investigating I noticed that the
additional time is spent in RT checks. RT checks for 1.1 was 0.

App is compiled and run locally.




Reply With Quote
  #3  
Old   
vmkamat@gmail.com
 
Posts: n/a

Default Re: Why is 2.0 App doing RT checks ? - 09-30-2007 , 08:35 AM



On Sep 29, 7:26 am, Michael Nemtsev, MVP <nemt... (AT) msn (DOT) com> wrote:
Quote:
Hello vmka... (AT) gmail (DOT) com,

What checks u are talkin' about?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

I just converted a 1.1 app to 2.0. The app runs very slow, and cpu
utilization is almost 3 times. While investigating I noticed that the
additional time is spent in RT checks. RT checks for 1.1 was 0.

App is compiled and run locally.
RT checks - performance counter under .Net CLR Security.



Reply With Quote
  #4  
Old   
vinay@vin-solutions.com
 
Posts: n/a

Default Re: Why is 2.0 App doing RT checks ? - 09-30-2007 , 10:21 AM



On Sep 30, 9:35 am, vmka... (AT) gmail (DOT) com wrote:
Quote:
On Sep 29, 7:26 am, Michael Nemtsev, MVP <nemt... (AT) msn (DOT) com> wrote:



Hello vmka... (AT) gmail (DOT) com,

What checks u are talkin' about?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

I just converted a 1.1 app to 2.0. The app runs very slow, and cpu
utilization is almost 3 times. While investigating I noticed that the
additional time is spent in RT checks. RT checks for 1.1 was 0.

App is compiled and run locally.

RT checks - performance counter under .Net CLR Security.
I am facing exactly the same issue.

Our app is written using 1.1 framework and runs fine. When I converted
it to use 2.0 framework, I am amazed to find that the performance
actually deteriorated. cpu utilization is twice as before.

Is there something I am missing?



Reply With Quote
  #5  
Old   
schneider
 
Posts: n/a

Default Re: Why is 2.0 App doing RT checks ? - 10-01-2007 , 05:33 PM



I would run FxCop against your code and look at security/performance items,
it may help you isolate the problems.


<vmkamat (AT) gmail (DOT) com> wrote

Quote:
I just converted a 1.1 app to 2.0. The app runs very slow, and cpu
utilization is almost 3 times. While investigating I noticed that the
additional time is spent in RT checks. RT checks for 1.1 was 0.

App is compiled and run locally.




Reply With Quote
  #6  
Old   
Laura T.
 
Posts: n/a

Default Re: Why is 2.0 App doing RT checks ? - 10-02-2007 , 09:32 AM



CLR 2.0 takes security more seriously.
Most CAS checks come from P/Invoke/COM interop.
If that is your case, here is something you might do for it:
http://msdn2.microsoft.com/en-us/lib...hapt05_topic32

I admit that I've never had any this kind of problems with our apps after
conversion.

<vmkamat (AT) gmail (DOT) com> ha scritto nel messaggio
news:1190987856.269488.192780 (AT) g4g2000hsf (DOT) googlegroups.com...
Quote:
I just converted a 1.1 app to 2.0. The app runs very slow, and cpu
utilization is almost 3 times. While investigating I noticed that the
additional time is spent in RT checks. RT checks for 1.1 was 0.

App is compiled and run locally.



Reply With Quote
  #7  
Old   
KVin
 
Posts: n/a

Default Re: Why is 2.0 App doing RT checks ? - 10-03-2007 , 11:34 AM



Thanks Laura. Some of my issues got resolved. However, I still have another
issue.

My app(runs from a network) refers to some config files on network. I've a
codegroup created for the purpose and given 'full trust' to the requisite
url. However, it does spend quite some time in RT checks. For testing
purposes, I copied over the config files on to my local machine and pointed
the app to my local config files. % time in RTchecks dropped and app
performance improved.

What's really happening here? I have to have config files on network.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.