Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2004

Tip: Looking for answers? Try searching our database.

Vs2005 Beta and Profile Guided Optimizations

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andre Lorbach - 02 Sep 2004 14:43 GMT
Hi all,

I hope I picked up the right group ;)
A few days ago I installed the VS2005 Beta and started playing with
it.

First of all the (Profile Guided Optimizations) PGO Feature looks very
cool :)
After some reading and testing, I got it to work. I followed this
article:
http://whidbey.msdn.microsoft.com/library/en-us/dv_vcsampxpr/html/6e36421b-ec8c-
4626-9c29-fa5ffb6f27f8.asp?frame=true


I created an Instrumented Version, run it and then created an
Optimized Version of my app.

All this seemed to work well, this is the optimize compiler output:
------ Build started: Project: MyProject, Configuration: Release Win32
------
Linking...
Merging <somewhere>\Release\MyProject!1.pgc
Generating code
1280 of 1280 (100.00%) profiled functions will be compiled for speed
Finished generating code
Merging manifest files...
Build log was saved at "file://<somewhere>\Release\BuildLog.htm"
Syslog - 0 error(s), 0 warning(s)
----------

The instrumented were running fine.
With the same appliaction configuration, the optimized version just
silent crashes after 5-10 seconds no matter what I do :|!
I know this is a beta and a very new feature but maybe someone here
has some help for me.

Maybe it is because I am running a 2Cpu System. Some of my System
details:
Windows XP SP2
2 x AMD Operon 244 (1,8 Ghz)
2 GB Ram
VS2003 and VS2005 Beta (From MSDN) installed.

Thanks for help - best regards,
Andre Lorbach
Adiscon
Brandon Bray [MSFT] - 02 Sep 2004 20:23 GMT
> With the same appliaction configuration, the optimized version just
> silent crashes after 5-10 seconds no matter what I do :|!
> I know this is a beta and a very new feature but maybe someone here
> has some help for me.

Given the information available, there are too many possibilities of what
could be wrong. Aggressive optimization does not necessarily mean there is a
bug in the compiler.

If you feel comfortable sharing your project with us, we can investigate.

Signature

Brandon Bray, Visual C++ Compiler         http://blogs.msdn.com/branbray/
Bugs? Suggestions? Feedback?   http://msdn.microsoft.com/productfeedback/

Andre Lorbach - 03 Sep 2004 11:04 GMT
> > With the same appliaction configuration, the optimized version just
> > silent crashes after 5-10 seconds no matter what I do :|!
[quoted text clipped - 6 lines]
>
> If you feel comfortable sharing your project with us, we can investigate.

Thanks for your answer. It only crashes under stress circumstances.
I will analyze it further, it could be a bug in my code which just
didn't popup yet. The app is using multithreading and in my test where
it crashed, I had both CPU's at full usage. I will continue playing
around with this new optimization stuff and come back again when I
find the problem ;)
Steve McLellan - 07 Sep 2004 17:09 GMT
[]
> > If you feel comfortable sharing your project with us, we can investigate.
>
[quoted text clipped - 4 lines]
> around with this new optimization stuff and come back again when I
> find the problem ;)

Multithreaded apps are notoriously hard to debug when you get intermittent
faults. Make sure any resources that need to be are thread-safe, and make
sure the calls you're making from different threads are safe too. Bob
Powell's FAQ is a great resource for multithreading under .NET. Good luck!

Steve
Ioannis Vranos - 07 Sep 2004 23:05 GMT
> Bob
> Powell's FAQ is a great resource for multithreading under .NET. Good luck!

May you provide a URL?

Signature

Ioannis Vranos

Steve McLellan - 08 Sep 2004 11:03 GMT
> > Bob
> > Powell's FAQ is a great resource for multithreading under .NET. Good luck!
>
> May you provide a URL?

Hi,

Apologies, it's Jon Skeet's FAQ.
http://www.yoda.arachsys.com/csharp/multithreading.html

Sorry for not posting the link, very busy at the moment.

Steve

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.