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
 Is that possible to find reference in multi-thread
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

48103749
New Member

7 Posts

Posted - Nov 22 2020 :  09:19:58 AM  Show Profile  Reply with Quote
I am working on webrtc by a intel-i9 PC, as you know it's a huge open source.
Every time when use find-reference in all webrtc project, it will search a long time. the vissual assist seems to do the find in a single-thread.(the cpu usage is very low, the i9-cpu is not used efficient)

So, is that possible to find reference in multi-thread?
or is there any setting I missing?

(it's about reference-find in all project file, not symbol-parsing)

It would be very nice, if any body has any ideas, thx!~~

a long time to wait:



Edited by - 48103749 on Nov 23 2020 12:40:01 AM

feline
Whole Tomato Software

United Kingdom
17013 Posts

Posted - Nov 23 2020 :  10:09:36 AM  Show Profile  Reply with Quote
It is possible that the Find References is not CPU bound in your case. Or you might not have multi-threaded parsing enabled in VA.

As a simple sanity check, using VS2019 and VA 2393.0 I have loaded an Unreal Engine game solution. I don't know about webrtc, but my Unreal Engine solution has basically 30,000 files, so it is a good sized test case.

When I run Find References all 8 CPU cores on my system are running near 100%. I have checked this by running the Windows 10 program "Resource Monitor" and putting it on the CPU tab.

In your VA settings, can you please check and see what you have the following options set to:

VA Options -> Performance -> Enable multithreaded parsing
VA Options -> Performance -> Limit the maximum number of concurrent threads to X (requires restart)
VA Options -> Performance -> Thread priority = Normal / Below Normal / Lowest (requires restart)

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

48103749
New Member

7 Posts

Posted - Nov 23 2020 :  10:30:41 AM  Show Profile  Reply with Quote
My VA version is 2333, and "Enable multithreaded parsing" is already selected. but no other two settings.
Maybe I should try 2393#12290;
Thanks for your advice#65281;~~~
Go to Top of Page

48103749
New Member

7 Posts

Posted - Nov 23 2020 :  11:14:57 AM  Show Profile  Reply with Quote
I tried 2393:



yes, the symbol parsing at the first time start VS with the project is faster.
but find-reference is still the same.

it seems that the setting in the screen-shot is only valid for symbol parsing, not for find-reference (Alt+Shift+F)

PS:
after setting, I have restarted the VS


Edited by - 48103749 on Nov 23 2020 11:20:14 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
17013 Posts

Posted - Nov 23 2020 :  1:17:24 PM  Show Profile  Reply with Quote
Find References does use multiple threads. A simple way to confirm this is to run the same, fairly fast find that returns results across several files, several times, and the files will be returned in a different order on different runs, because different threads will return their results as they finish, adding a "random" element.

First up, can you please go to:

VA Options -> System Info -> Copy Info

and paste the details (from the clipboard) into your reply. This will give us the basic information about your setup.

How many files do you have in your solution?

If you open VA's Open File in Solution dialog (Alt-Shift-O) the title bar contains two numbers. The first number is the number of files currently listed, which changes as you filter the list. The second number is the total number of files in the list, which is normally the number of files in your solution. What is this second number?

Before starting another slow Find References can you please load the Windows 10 Resource Monitor program, and with this running, now run Find References. The Resource Monitor will allow you to easily see how many threads the "devenv.exe" process is using, your CPU load across your different CPU's, and also your Disk IO. If your Disk IO is maxed out then this could well be the limiting factor here.

Another thing to check is the memory usage for "devenv.exe". The Memory tab will let you see how much memory is being used by "devenv.exe", if this is near to 3gig then this might also be a factor.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000