Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 High CPU load with VAX 1842
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SvenC
Tomato Guru

Germany
339 Posts

Posted - Feb 15 2011 :  04:36:41 AM  Show Profile  Reply with Quote
With 1842 I get frequent high CPU usage of devenv.exe.

This is a sample stack trace of the thread with high CPU usage and va_x.dll is on its root:

ntoskrnl.exe!SeAccessCheckWithHint+0xb4a
ntoskrnl.exe!KeAcquireSpinLockAtDpcLevel+0x7d2
ntoskrnl.exe!KeWaitForMutexObject+0x19f
ntoskrnl.exe!PsIsSystemProcess+0x94
ntoskrnl.exe!KeStackAttachProcess+0x11c1
ntoskrnl.exe!ObReferenceObjectByPointerWithTag+0x233
va_x.dll!UpdateDbgState+0x1e42f
va_x.dll!GetVaService+0x145720
va_x.dll!GetVaService+0x1466d8
va_x.dll!GetVaService+0x146b38
va_x.dll!UpdateDbgState+0x1e42f
va_x.dll+0x18e4f
va_x.dll!DllCanUnloadNow+0x3655f
va_x.dll!DllCanUnloadNow+0x3a800

I am using 1842 with VS 2010 Ultimate (RTM, not SP1 beta) on Windows 7 x64.

I have 4 cores and one core is taken completely, so that CPU usage is around 25%

I cannot remember to have seen this in 1840.

SvenC
Tomato Guru

Germany
339 Posts

Posted - Feb 15 2011 :  04:39:05 AM  Show Profile  Reply with Quote
Addition: I am seeing this in a C# project
Go to Top of Page

SvenC
Tomato Guru

Germany
339 Posts

Posted - Feb 15 2011 :  05:08:13 AM  Show Profile  Reply with Quote
Just disabled VAX and all other extensions, restarted VS2010 and after a while the CPU spikes started again. I'll file a bug on connect.microsoft.com/visualstudio and see how it goes...
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Feb 15 2011 :  1:20:46 PM  Show Profile  Reply with Quote
Normally CPU spikes from VA should be related to parsing the current file, and should be indicated by a status bar message.

When VA was enabled were you seeing any status bar messages about VA parsing? Did the CPU spikes seem to be related to editing one of the code files, and then pausing for a second or so?
It is possible that there is some form of interaction between the IDE and any anti-virus software you are using. I have seen this occasionally, where the file edits from the IDE cause a lot of anti-virus activity. It is rare, but you might find running Process Explorer helpful, and turning on the "CPU History" column, so you can try and see which process is responsible for these spikes.

http://technet.microsoft.com/en-us/sysinternals/bb896653

zen is the art of being at one with the two'ness
Go to Top of Page

SvenC
Tomato Guru

Germany
339 Posts

Posted - Feb 16 2011 :  09:24:15 AM  Show Profile  Reply with Quote
Hi feline, I used ProcExp to get the above callstack. But as added later on, the CPU spikes happen with VAX disabled as well, so I guess the behaviour isn't caused by VAX at all.

Disabling virus scanner does not change the spikes as well.
Go to Top of Page

mvaldezm
Starting Member

1 Posts

Posted - May 19 2011 :  4:16:30 PM  Show Profile  Reply with Quote
Howdy.

I am seeing something similiar with my VS2010.

After I "close" VS and all its windows seems to go away, I end up with a rogue runaway devenv.exe (with no windows) that's using up a whole core's worth of CPU. Using procexp I get a call stack similar to the one on this thread:

ntoskrnl.exe!SeAccessCheckWithHint+0xb4a
ntoskrnl.exe!IoGetRequestorProcess+0x250
ntoskrnl.exe!ExfTryToWakePushLock+0x899
ntoskrnl.exe!KeStackAttachProcess+0x1187
ntoskrnl.exe!ObReferenceObjectByPointerWithTag+0x233
va_x.dll!GetVaService+0xf1cf8
va_x.dll!GetVaService+0xcfdce
va_x.dll!GetVaService+0xf1cf8
va_x.dll!GetVaService+0xcfdce
va_x.dll!GetVaService+0xd0705
clr.dll!CorDllMainForThunk+0x10d75
ntdll.dll!KiUserCallbackDispatcher+0x2e
va_x.dll!MigrateDevColor+0x20e36
msenv.dll!DllGetClassObject+0x38974
msenv.dll!DllCanUnloadNow+0x5528
msenv.dll!DllCanUnloadNow+0x5459
msenv.dll!DllCanUnloadNow+0x53ba
msenv.dll!DllCanUnloadNow+0x5387
msenv.dll!DllCanUnloadNow+0x52c9
msenv.dll!VStudioMain+0x78
devenv.exe+0x7435
devenv.exe+0x10445
devenv.exe+0x1167c
devenv.exe+0x116ec
ntdll.dll!RtlInitializeExceptionChain+0x63
ntdll.dll!RtlInitializeExceptionChain+0x36

I am using a fully patched VS2010 (Premium) with the following VAX:
Version 10.6.1842.0 built 2011.02.03

Hm...Just noticed that 1845 is out, but didn't notice any fix for this in the release notes. I'll give it a try and see if it still repros.

Thanks.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 20 2011 :  11:57:15 AM  Show Profile  Reply with Quote
I do not recognise this problem, and I don't think it is a known bug in VA. If you still see the problem with VA 1845 can you try telling VA to rebuild your symbol database, just to see if this makes any difference:

Visual Assist X options dialog -> Performance -> Rebuild Symbol Databases

zen is the art of being at one with the two'ness
Go to Top of Page

Dany
Senior Member

Germany
41 Posts

Posted - May 24 2011 :  05:26:52 AM  Show Profile  Reply with Quote
I have something similar here. After disabling all extensions except for VAX I open my C# project and display a Form source file with >11k lines of code and heavy folding/region usage. When the caret is on the very last line (CTRL+End) the devenv process has around 0.15% (3GHz Core2 Quad). When I press PgUp once (not moving with the mouse!) the process goes up around 15% (which makes IntelliSense almost inusable due to its responsiveness). When I now disable VAX via its menu the process is again around 0.15% and up again when enabling it.
The weird thing is that when I use the mouse to navigate from the very last line no increasing CPU usage is seen. Even weirder when Jumping to the very first line (CTRL+Pos1) the CPU usage is also as low as 0.15%. Pressing PgDown once results in up to 21% CPU usage.
After some unfolding/folding operations via keyboard also the very last line shows 20% CPU usage. When everything or nothing is folded no increase in CPU usage is seen.

Threads on low CPU usage:




Threads on "high" CPU usage:



Dany

// using VAX in C# of VS2010 SP1 (en), Win 7 SP1 (de)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 24 2011 :  2:11:24 PM  Show Profile  Reply with Quote
Are you seeing any status bar messages about VA parsing the file? Normally you should only see CPU spikes like this when parsing.

Is there any change of getting a copy of this file for testing purposes? I realise this is often not possible, but it is worth asking on the off chance.

Do you work with a lot of large code files? If so is this a common problem, or limited to just this one file?

zen is the art of being at one with the two'ness
Go to Top of Page

Dany
Senior Member

Germany
41 Posts

Posted - May 27 2011 :  02:17:47 AM  Show Profile  Reply with Quote
I sent you a project with case number 57717.

Dany

// using VAX in C# of VS2010 SP1 (en), Win 7 SP1 (de)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 27 2011 :  9:09:22 PM  Show Profile  Reply with Quote
I have the files, many thanks for these. I am seeing the CPU usage problem here, and I have put in a bug report for this:

case=57743

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jul 20 2011 :  02:11:05 AM  Show Profile  Reply with Quote
case=57743 is fixed in build 1854

Whole Tomato Software, Inc.
Go to Top of Page

Travis
Starting Member

1 Posts

Posted - Aug 31 2013 :  12:23:59 PM  Show Profile  Reply with Quote
Build 10.7.1940 has the same annoying problem.




Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 04 2013 :  4:41:11 PM  Show Profile  Reply with Quote
Have you tried rebuilding your symbol databases? (VA Options -> Performance -> Rebuild)
Are you seeing a VA X: Parsing ... message in the status bar while this is happening?
Does this happen in every file?
Can you please try creating a clean new project to see if you can reproduce the same problem there?
Does this happen after you load the project, or just after you edit a file, or after some time?
Which version of Visual Studio are you using?

Edited by - accord on Sep 04 2013 4:41:42 PM
Go to Top of Page

ahkow
Senior Member

33 Posts

Posted - Sep 07 2013 :  10:21:01 AM  Show Profile  Reply with Quote
This may not be related to VAX, try this (Visual Studio 2012):
1. Click "Tools -> Options"
2. On the left, click "Text Editor -> C/C++ -> Advanced"
3. On the right, under "Browsing/Navigation", set "Disable Database" to False.
4. Look for "Rescan Solution Interval". Set it to 0.
5. You can optionally set "Disable Database" back to True now.
Reference: https://connect.microsoft.com/VisualStudio/feedback/details/768089/visual-studio-shows-initializing-for-vc-projects#details
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000