473,626 Members | 3,221 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Vs2005 Beta and Profile Guided Optimizations

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/li...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>\Rel ease\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>\Rel ease\BuildLog.h tm"
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
Nov 17 '05 #1
5 1322
Andre Lorbach wrote:
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.

--
Brandon Bray, Visual C++ Compiler http://blogs.msdn.com/branbray/
Bugs? Suggestions? Feedback? http://msdn.microsoft.com/productfeedback/
Nov 17 '05 #2
"Brandon Bray [MSFT]" <br******@onlin e.microsoft.com > wrote in message news:<#e******* *******@TK2MSFT NGP09.phx.gbl>. ..
Andre Lorbach wrote:
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.


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 ;)
Nov 17 '05 #3
"Andre Lorbach" <al******@adisc on.com> wrote in message
news:c9******** *************** ***@posting.goo gle.com...
"Brandon Bray [MSFT]" <br******@onlin e.microsoft.com > wrote in message news:<#e******* *******@TK2MSFT NGP09.phx.gbl>. ..
Andre Lorbach wrote: [] 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 ;)


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
Nov 17 '05 #4
Steve McLellan wrote:
Bob
Powell's FAQ is a great resource for multithreading under .NET. Good luck!

May you provide a URL?


--
Ioannis Vranos
Nov 17 '05 #5
> Steve McLellan wrote:
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

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
988
by: AT | last post by:
Thanks in advance if you respond I have very bad problem with profiles. I know they changed a lot but .... It all worked in configuration file fine in beta 1 Since I changed to beta 2 web.config stoped working I do not know how to configure or correct way to write it in web.config my old code loooked like this system.web>
3
1905
by: Robert | last post by:
I have an application with custom configuration sections in it's app.config file. Here's a shortened excerpt: <monitors> <monitor type="SystemMonitor.Monitors.NetworkAvailabilityMonitor,SystemMonitor"> <notifiers> <notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,SystemMonitor" />
3
1638
by: Bob Alston | last post by:
Anyone yet using this software? A free beta version is available here: http://msdn.microsoft.com/asp.net/getvwd/ The guided tour: http://beta.asp.net/guidedtour2/
8
1334
by: Jarod | last post by:
Hey Is VS2005 optimized for Intel or AMD processor ? What gives best speed when I develop webprojects ? What really means in the term of speed 2 cores or frequency I assume 64bits. Jarod
1
1519
by: Dean Slindee | last post by:
Will there be a VS2003-style splitter control in VS2005 when it gets past Beta? I am not referring to the new splitter container in VS2005, but the original splitter control in VS2003. If not, then a lot of forms designed with splitters in legacy VS.NETs may be more painful to port/upgrade into VS2005? Should I be concerned? Thanks, Dean Slindee
5
1987
by: GaryDean | last post by:
(my original post was inaccurate but this post accurately describes what I think is a very bad vs2005 bug) short description... Deleting a dataset and recreating it from the dataadapter causes VS.Net 2005 to render the associated .resx and .vb file inoperative. detail... I converted an asp 1.1 vb.net app using the vs2005 conversion wizard and then retested the app after conversion.
7
1707
by: Frank Rizzo | last post by:
Is it me or is the speed of VS2005 actually slower than VS2003? The startup is pretty bad - even though I changed VS to display an empty environment. When I create a new form and want to change its size: while I am resizing, an hour glass comes up for a few seconds. There a lot of other slowdowns all over the system. It seems like it the hard drive kicks in really hard. Now I did have the VS2005 beta installed, but I uninstalled it...
3
1703
by: zhouchengly | last post by:
I test a stl sort function in vs2005 and find the efficiency of debug to release version is about 1000:1, it suprise me and I'm curious what cause it.
7
1963
by: llothar | last post by:
Does anybody have some benchmarks or links to articles that compare this for different compiler implementations? I would especially like to see if it is usefull on MSVC, Intel 9.0 C and gcc. Also what is about the effect of "interprocedural optimization". All my use cases are 98% integer performance dominated. Currently i only use -O2 or -O3 for MSVC and gcc but i would really like to now if it is worth to spend time on optimization...
0
8265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8705
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.