Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 High CPU load with VAX 1842

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
SvenC Posted - Feb 15 2011 : 04:36:41 AM
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.
14   L A T E S T    R E P L I E S    (Newest First)
ahkow Posted - Sep 07 2013 : 10:21:01 AM
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
accord Posted - Sep 04 2013 : 4:41:11 PM
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?
Travis Posted - Aug 31 2013 : 12:23:59 PM
Build 10.7.1940 has the same annoying problem.




support Posted - Jul 20 2011 : 02:11:05 AM
case=57743 is fixed in build 1854
feline Posted - May 27 2011 : 9:09:22 PM
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
Dany Posted - May 27 2011 : 02:17:47 AM
I sent you a project with case number 57717.
feline Posted - May 24 2011 : 2:11:24 PM
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?
Dany Posted - May 24 2011 : 05:26:52 AM
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:


feline Posted - May 20 2011 : 11:57:15 AM
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
mvaldezm Posted - May 19 2011 : 4:16:30 PM
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.
SvenC Posted - Feb 16 2011 : 09:24:15 AM
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.
feline Posted - Feb 15 2011 : 1:20:46 PM
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
SvenC Posted - Feb 15 2011 : 05:08:13 AM
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...
SvenC Posted - Feb 15 2011 : 04:39:05 AM
Addition: I am seeing this in a C# project

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000