473,509 Members | 4,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

REPOST: extremely long link times

Hi,

Sorry to repost, but this is becoming aggravating, and causing me a lot of
wasted time. I've got a reasonably large mixed C++ project, and after a
number of builds (but not a constant number) linking (and sometimes
compiling) becomes immensely slow, and task manager shows that link.exe (or
cl.exe) is barely using any processor time, but an awful lot of RAM (around
150-200MB). I'm going to keep an eye on page faults since I can't think of
anything else that could be causing this - the machine doesn't seem to be
thrashing and is fairly responsive during building. Can anyone recommend
anything?

Thanks,

Steve
Nov 17 '05 #1
14 2804
Hi,

1. Nope, and it's linking that's the problem - compiling's generally very
fast. In any case, it's not getting anywhere near maxing the processor so
it's not the workload slowing it down.

2. It is only recompiling the minimum but incremental linking apparently
doesn't work under /clr.

3. I am now wondering whether it'd be better to split everything up into
separate DLLs, but I don't want to for a couple of reasons. And besides,
what puzzles me is why the linker seems to be sitting on its hands for a
minute or two, without seeming to do any work.

Cheers,

Steve

"Fireangel" <Fi*******@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...

I'm a fairly newbie to C++ and the like, so feel free to ignore...

Some questions / comments:

1. Are you using alot of #Define (or anything like that. Can't remember what they are actually called)?? I've had the displeasure of hacking
somebodies old code that had ALOT of this stuff, and to compile it took
close to 4 min. I went ahead and took out as much as I could (W/o killing
the app), and it was a noticable change.
2. You may want to consider using the option "Enable Minimal Rebuild" under the projects configureation properties -> C/C++ -> Code Generation.
If set to YES, the compiler will only create new OBJ for those files that
have changed. It will keep the old OBJs and then link them. If you only
change 1 file between, only 1 OBJ will be recreated (instead of them all).
I think (not sure), but any files that include the file you change (Using
#include) may have to be recompiled...
3. If you're just testing / debugging, why don't you make temp dll's for any part of the code that is "Done" or not being checked. For instance, I
have a Map.dll that containes all my stuff related to geographical maps. I
then include it as a referance, use #using, and that stuff never gets
compiled. I then create a "include all" project that has all the code files
in it. This does leave me with a lot of Test projects all over the place,
but to test it does make it fairly fast.

Can't think of anything else. Let me know if this helps...
GE

"Steve McLellan" wrote:
Hi,

Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a
number of builds (but not a constant number) linking (and sometimes
compiling) becomes immensely slow, and task manager shows that link.exe (or cl.exe) is barely using any processor time, but an awful lot of RAM (around 150-200MB). I'm going to keep an eye on page faults since I can't think of anything else that could be causing this - the machine doesn't seem to be thrashing and is fairly responsive during building. Can anyone recommend
anything?

Thanks,

Steve

Nov 17 '05 #2
Hi Steve,

I've had building speed issues in the past. Usually turns out not to be
the tools, but the environment.

are you building on or to a mapped or subst'd drive?
are you running anti-virus software?

Just a stab in the dark.... good luck.

Steve McLellan wrote:
Hi,

1. Nope, and it's linking that's the problem - compiling's generally very
fast. In any case, it's not getting anywhere near maxing the processor so
it's not the workload slowing it down.

2. It is only recompiling the minimum but incremental linking apparently
doesn't work under /clr.

3. I am now wondering whether it'd be better to split everything up into
separate DLLs, but I don't want to for a couple of reasons. And besides,
what puzzles me is why the linker seems to be sitting on its hands for a
minute or two, without seeming to do any work.

Cheers,

Steve

"Fireangel" <Fi*******@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...
I'm a fairly newbie to C++ and the like, so feel free to ignore...

Some questions / comments:

1. Are you using alot of #Define (or anything like that. Can't remember


what they are actually called)?? I've had the displeasure of hacking
somebodies old code that had ALOT of this stuff, and to compile it took
close to 4 min. I went ahead and took out as much as I could (W/o killing
the app), and it was a noticable change.
2. You may want to consider using the option "Enable Minimal Rebuild"


under the projects configureation properties -> C/C++ -> Code Generation.
If set to YES, the compiler will only create new OBJ for those files that
have changed. It will keep the old OBJs and then link them. If you only
change 1 file between, only 1 OBJ will be recreated (instead of them all).
I think (not sure), but any files that include the file you change (Using
#include) may have to be recompiled...
3. If you're just testing / debugging, why don't you make temp dll's for


any part of the code that is "Done" or not being checked. For instance, I
have a Map.dll that containes all my stuff related to geographical maps. I
then include it as a referance, use #using, and that stuff never gets
compiled. I then create a "include all" project that has all the code files
in it. This does leave me with a lot of Test projects all over the place,
but to test it does make it fairly fast.

Can't think of anything else. Let me know if this helps...
GE

"Steve McLellan" wrote:

Hi,

Sorry to repost, but this is becoming aggravating, and causing me a lot
of
wasted time. I've got a reasonably large mixed C++ project, and after a
number of builds (but not a constant number) linking (and sometimes
compiling) becomes immensely slow, and task manager shows that link.exe
(or
cl.exe) is barely using any processor time, but an awful lot of RAM
(around
150-200MB). I'm going to keep an eye on page faults since I can't think
of
anything else that could be causing this - the machine doesn't seem to
be
thrashing and is fairly responsive during building. Can anyone recommend
anything?

Thanks,

Steve


Nov 17 '05 #3
TOM
Steve:

Some of the MS applications try to access the Internet whether or not
there is
anything that needs to be found. One of the office applications stalls until
the TCP
time-out occurs (1-2 minutes before starting).

Additionally, I found I have to clear the IE6 browser history
periodically, and if I
have any URL shortcuts on the desktop that refer to an FTP site, I have to
remove those
as well, or after awhile all file menus stall for about 2 minutes.

-- Tom


"Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com> wrote in message
news:eZ**************@TK2MSFTNGP12.phx.gbl...
Hi,

1. Nope, and it's linking that's the problem - compiling's generally very
fast. In any case, it's not getting anywhere near maxing the processor so
it's not the workload slowing it down.

2. It is only recompiling the minimum but incremental linking apparently
doesn't work under /clr.

3. I am now wondering whether it'd be better to split everything up into
separate DLLs, but I don't want to for a couple of reasons. And besides,
what puzzles me is why the linker seems to be sitting on its hands for a
minute or two, without seeming to do any work.

Cheers,

Steve

"Fireangel" <Fi*******@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...

I'm a fairly newbie to C++ and the like, so feel free to ignore...

Some questions / comments:

1. Are you using alot of #Define (or anything like that. Can't remember
what they are actually called)?? I've had the displeasure of hacking
somebodies old code that had ALOT of this stuff, and to compile it took
close to 4 min. I went ahead and took out as much as I could (W/o killing
the app), and it was a noticable change.

2. You may want to consider using the option "Enable Minimal Rebuild" under the projects configureation properties -> C/C++ -> Code Generation.
If set to YES, the compiler will only create new OBJ for those files that
have changed. It will keep the old OBJs and then link them. If you only
change 1 file between, only 1 OBJ will be recreated (instead of them all).
I think (not sure), but any files that include the file you change (Using
#include) may have to be recompiled...

3. If you're just testing / debugging, why don't you make temp dll's

for any part of the code that is "Done" or not being checked. For instance, I
have a Map.dll that containes all my stuff related to geographical maps. I then include it as a referance, use #using, and that stuff never gets
compiled. I then create a "include all" project that has all the code files in it. This does leave me with a lot of Test projects all over the place,
but to test it does make it fairly fast.


Can't think of anything else. Let me know if this helps...
GE

"Steve McLellan" wrote:
Hi,

Sorry to repost, but this is becoming aggravating, and causing me a lot
of wasted time. I've got a reasonably large mixed C++ project, and after
a number of builds (but not a constant number) linking (and sometimes
compiling) becomes immensely slow, and task manager shows that link.exe
(or cl.exe) is barely using any processor time, but an awful lot of RAM (around 150-200MB). I'm going to keep an eye on page faults since I can't
think
of anything else that could be causing this - the machine doesn't seem to be thrashing and is fairly responsive during building. Can anyone

recommend anything?

Thanks,

Steve


Nov 17 '05 #4
Hi,

OK, cheers, will check that out. I do have AV software running, so that
might be it.

Thanks!

Steve

"doug mansell" <do**********@hotmail.com> wrote in message
news:ez**************@TK2MSFTNGP12.phx.gbl...
Hi Steve,

I've had building speed issues in the past. Usually turns out not to be
the tools, but the environment.

are you building on or to a mapped or subst'd drive?
are you running anti-virus software?

Just a stab in the dark.... good luck.

Steve McLellan wrote:
Hi,

1. Nope, and it's linking that's the problem - compiling's generally very fast. In any case, it's not getting anywhere near maxing the processor so it's not the workload slowing it down.

2. It is only recompiling the minimum but incremental linking apparently
doesn't work under /clr.

3. I am now wondering whether it'd be better to split everything up into
separate DLLs, but I don't want to for a couple of reasons. And besides,
what puzzles me is why the linker seems to be sitting on its hands for a
minute or two, without seeming to do any work.

Cheers,

Steve

"Fireangel" <Fi*******@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...
I'm a fairly newbie to C++ and the like, so feel free to ignore...

Some questions / comments:

1. Are you using alot of #Define (or anything like that. Can't remember

what they are actually called)?? I've had the displeasure of hacking
somebodies old code that had ALOT of this stuff, and to compile it took
close to 4 min. I went ahead and took out as much as I could (W/o killing the app), and it was a noticable change.
2. You may want to consider using the option "Enable Minimal Rebuild"


under the projects configureation properties -> C/C++ -> Code Generation. If set to YES, the compiler will only create new OBJ for those files that have changed. It will keep the old OBJs and then link them. If you only change 1 file between, only 1 OBJ will be recreated (instead of them all). I think (not sure), but any files that include the file you change (Using #include) may have to be recompiled...
3. If you're just testing / debugging, why don't you make temp dll's
for
any part of the code that is "Done" or not being checked. For instance, I have a Map.dll that containes all my stuff related to geographical maps. I then include it as a referance, use #using, and that stuff never gets
compiled. I then create a "include all" project that has all the code files in it. This does leave me with a lot of Test projects all over the place, but to test it does make it fairly fast.

Can't think of anything else. Let me know if this helps...
GE

"Steve McLellan" wrote:
Hi,

Sorry to repost, but this is becoming aggravating, and causing me a lot


of
wasted time. I've got a reasonably large mixed C++ project, and after a
number of builds (but not a constant number) linking (and sometimes
compiling) becomes immensely slow, and task manager shows that link.exe


(or
cl.exe) is barely using any processor time, but an awful lot of RAM


(around
150-200MB). I'm going to keep an eye on page faults since I can't think


of
anything else that could be causing this - the machine doesn't seem to


be
thrashing and is fairly responsive during building. Can anyone

recommendanything?

Thanks,

Steve


Nov 17 '05 #5
On Mon, 26 Jul 2004 21:12:05 +0100, "Steve McLellan" <sjm.NOSPAM AT
fixerlabs DOT com> wrote:
Hi,

Sorry to repost, but this is becoming aggravating, and causing me a lot of
wasted time. I've got a reasonably large mixed C++ project, and after a
number of builds (but not a constant number) linking (and sometimes
compiling) becomes immensely slow, and task manager shows that link.exe (or
cl.exe) is barely using any processor time, but an awful lot of RAM (around
150-200MB). I'm going to keep an eye on page faults since I can't think of
anything else that could be causing this - the machine doesn't seem to be
thrashing and is fairly responsive during building. Can anyone recommend
anything?


Have you got whole program optimization switched on? If so, switching
it off may help.

Tom
Nov 17 '05 #6
Hi,

Yeah, I can imagine that would slow things down. I'm building a debug build
with no optimization, no nothin'. It may just be that it's a reasonably
large project. Due to some other issues with managed / unmanaged inlining we
may have to segment the project up anyway.

Thanks,

Steve

"tom_usenet" <to********@hotmail.com> wrote in message
news:ng********************************@4ax.com...
On Mon, 26 Jul 2004 21:12:05 +0100, "Steve McLellan" <sjm.NOSPAM AT
fixerlabs DOT com> wrote:
Hi,

Sorry to repost, but this is becoming aggravating, and causing me a lot ofwasted time. I've got a reasonably large mixed C++ project, and after a
number of builds (but not a constant number) linking (and sometimes
compiling) becomes immensely slow, and task manager shows that link.exe (orcl.exe) is barely using any processor time, but an awful lot of RAM (around150-200MB). I'm going to keep an eye on page faults since I can't think ofanything else that could be causing this - the machine doesn't seem to be
thrashing and is fairly responsive during building. Can anyone recommend
anything?


Have you got whole program optimization switched on? If so, switching
it off may help.

Tom

Nov 17 '05 #7
Here's a copy of something I'm writing that may be of assistance in
general. If possible I'd like to get a repro of your problem. I'm trying
to understand what the various problems are with linking, and the more
customer issues I can help resolve, the better.

Thanks,

Kang Su Gatlin
Visual C++ Program Manager
----

Informative Short Note on the Microsoft VC2003 Linker

Introduction
The linker is the unsung hero of the build process. Everyone talks about
the compiler, devenv, even nmake, but the linker is where it all comes
together. The linker only seems to get brought up when it's not working
the way users expect. In 2003 Microsoft introduced Visual C++ 2003, and
with that a new linker. From perusing the various message boards I've seen
some complaints regarding the speed of linking with this new linker. In
this whitepaper I'll try to help people make their linking faster, and
understanding why it is slower.

Microsoft Visual C++ 6 was released in the late 90s and one of the most
popular and widely liked C++ development environments ever crafted. Visual
C++ 2003 improved on the code generation and other cool features such as
security, but there were some features that we heard our fair share of
complaints about. As you could guess, in this article I'll talk about the
linker, and how you might be able to figure out why your link times seem
slower, for some scenarios, in VC2003.

So you may find yourself asking, "This sounds cool and all, but what
actually is a linker?" Well here's my one paragraph description of what a
linker is : The linker (link.exe in Visual C++) is a program that takes
as input a collection of object files (.obj) and libraries (.lib), puts
them together, and creates an executable (or a .dll). The main things that
the linker does while linking is that it puts data into the correct
sections of the final image, fixes up relocation information, and folds
types and functions that are redundant. It has a hefty job, and as
languages like C++ become more popular , and programs get bigger, the job
of the linker is taking longer to do.

Preliminaries
Before diving into the below discussions, let me first open by talking
about a couple of hidden switches that may help people diagnose linker
problems:

/TIME - This switch will give timing information for various parts of the
link phase. It is often useful to get an idea of where the time is
actually going on and where. Admittedly, much more useful to Microsoft in
helping diagnose your problems.

/TEST - Test gives additional information regarding what might be going
wrong during linking. When things are working correctly, you tend to get
relatively little information out of it.

Additionally if you ever need to contact Microsoft about a problem with the
linker, what we often like to have available is a reproduction that we
could use internally. We call this a "link repro".

To construct a link repro, do the following:
1. mkdir <some_dir>.
2. add /linkrepro:<some_dir> to the linker command line.
3. run the offending link command.
4. copy any of the compiler generated .pdb files that are necessary into
the directory.
5. zip up the directory and that is your link repro.
Incremental Linking
We start with incremental linking, as it is one of the big features that
can substantially reduce the link time. Occasionally we will get reports
of slowdowns from incremental linking when going to VC2003 from VC6. It
turns out that there have been very few changes to the behavior of the
linker, but rather what has often changed is the project, with respect to
the project system, during migration.

Incremental linking works by only linking in new changed functions and then
adding a stub from the old location that points to the new linked in
function (yes, an extra indirection).

A good place to read up on the feature, if you've never used it, is at:
http://msdn.microsoft.com/library/de...us/vccore98/HT
ML/_core_.2f.incremental.asp.

Most of the complaints associated with incremental linking are when the
linker decides NOT to incrementally link. There are several situations
when the linker will do a full link rather than an incremental link. Here
are a couple of things to watch out for:

Library Changes
If a library is changed, added, or removed then a full-link will take
place. This is similar to a new set of .obj files being added or removed.

Exports Changed
If an export is added or removed from the program then a full link will
take place.

IDL Issues
In VS2003 the linker does not properly ignore the IDL data when the
/IGNOREIDL switch is used. This results in the marking of all modules with
IDL symbols as changed, and this causes as eventual exhaustion of padding -
and from there an end to incremental linking. This has been fixed in
VS2005.

To see a complete list of reasons that full-links will be invoked rather
than incremental links see linker warnings LNK6001-6026.

Slow Link Times
Some customers have noted slower link times as they move from VC6 to
VC2003. In this section we list some of the potential problems that we
know about and various tricks and tips.

Directives
The linker's handling of directives left something to be desired in VC2003,
and for this reason code with lots of directives can suffer. In particular
__declspec(export), as it's likely the most common linker directive.
Besides that, don't export functions that you don't need to export.
Besides it becoming a code maintenance nightmare, it also increases your
link times.

Use Pre-Compiled Header Files Effectively
One of the big problems we see is not using pre-compiled header (PCH) files
(or somehow the PCH files are no longer get generated correctly). Often
times a good way to determine that this is the culprit is to look at the
size of your object files. If they're all inordinately large object files
(and especially if they're all nearly the same size)

Don't Put Libraries in Libraries
The first question one should ask themselves is "why do I want to do this?"
After enough going back and forth and thinking you will likely come to the
conclusion that there is no good reason. The linker is more efficient with
more smaller libraries, rather than a big conglomeration of libraries.

Things Are Bigger
Moving to VC2003 from VC6 will often use new headers from the CRT, STL,
Platform SDK, etc… Many of these files have become larger since VC6, and
just due to the mere fact that the linker has to deal with more causes link
times to increase.

Optimization vs Link Time
If you're in the "compile, link, test" phase of development then it may
make sense to turn off /OPT:REF and /OPT:ICF in release builds. The
resulting code may be larger, but it will build more quickly.

VS2005 has a Faster Linker
There has been various performance fixes, including redoing one of its main
hash functions, which will result in faster link times! I know, people
don't like to hear "in the next version it's better", but I just want to
let you be aware that things do get better.

--------------------
| From: "TOM" <no****@noprovider.nodomain>
| References: <Os*************@TK2MSFTNGP12.phx.gbl>
<4F**********************************@microsoft.co m>
<eZ**************@TK2MSFTNGP12.phx.gbl>
| Subject: Re: REPOST: extremely long link times
| Date: Tue, 27 Jul 2004 21:28:19 -0500
| Lines: 112
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Message-ID: <uX**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vc
| NNTP-Posting-Host: 4.7.8.109
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!tk2msftngp13
..phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vc:39020
| X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| Steve:
|
| Some of the MS applications try to access the Internet whether or not
| there is
| anything that needs to be found. One of the office applications stalls
until
| the TCP
| time-out occurs (1-2 minutes before starting).
|
| Additionally, I found I have to clear the IE6 browser history
| periodically, and if I
| have any URL shortcuts on the desktop that refer to an FTP site, I have to
| remove those
| as well, or after awhile all file menus stall for about 2 minutes.
|
| -- Tom
|
|
|
|
| "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com> wrote in message
| news:eZ**************@TK2MSFTNGP12.phx.gbl...
| > Hi,
| >
| > 1. Nope, and it's linking that's the problem - compiling's generally
very
| > fast. In any case, it's not getting anywhere near maxing the processor
so
| > it's not the workload slowing it down.
| >
| > 2. It is only recompiling the minimum but incremental linking apparently
| > doesn't work under /clr.
| >
| > 3. I am now wondering whether it'd be better to split everything up into
| > separate DLLs, but I don't want to for a couple of reasons. And besides,
| > what puzzles me is why the linker seems to be sitting on its hands for a
| > minute or two, without seeming to do any work.
| >
| > Cheers,
| >
| > Steve
| >
| > "Fireangel" <Fi*******@discussions.microsoft.com> wrote in message
| > news:4F**********************************@microsof t.com...
| > >
| > > I'm a fairly newbie to C++ and the like, so feel free to ignore...
| > >
| > > Some questions / comments:
| > >
| > > 1. Are you using alot of #Define (or anything like that. Can't
| remember
| > what they are actually called)?? I've had the displeasure of hacking
| > somebodies old code that had ALOT of this stuff, and to compile it took
| > close to 4 min. I went ahead and took out as much as I could (W/o
killing
| > the app), and it was a noticable change.
| > >
| > > 2. You may want to consider using the option "Enable Minimal Rebuild"
| > under the projects configureation properties -> C/C++ -> Code
Generation.
| > If set to YES, the compiler will only create new OBJ for those files
that
| > have changed. It will keep the old OBJs and then link them. If you
only
| > change 1 file between, only 1 OBJ will be recreated (instead of them
all).
| > I think (not sure), but any files that include the file you change
(Using
| > #include) may have to be recompiled...
| > >
| > > 3. If you're just testing / debugging, why don't you make temp dll's
| for
| > any part of the code that is "Done" or not being checked. For
instance, I
| > have a Map.dll that containes all my stuff related to geographical maps.
| I
| > then include it as a referance, use #using, and that stuff never gets
| > compiled. I then create a "include all" project that has all the code
| files
| > in it. This does leave me with a lot of Test projects all over the
place,
| > but to test it does make it fairly fast.
| > >
| > >
| > > Can't think of anything else. Let me know if this helps...
| > >
| > >
| > > GE
| > >
| > > "Steve McLellan" wrote:
| > >
| > > > Hi,
| > > >
| > > > Sorry to repost, but this is becoming aggravating, and causing me a
| lot
| > of
| > > > wasted time. I've got a reasonably large mixed C++ project, and
after
| a
| > > > number of builds (but not a constant number) linking (and sometimes
| > > > compiling) becomes immensely slow, and task manager shows that
| link.exe
| > (or
| > > > cl.exe) is barely using any processor time, but an awful lot of RAM
| > (around
| > > > 150-200MB). I'm going to keep an eye on page faults since I can't
| think
| > of
| > > > anything else that could be causing this - the machine doesn't seem
to
| > be
| > > > thrashing and is fairly responsive during building. Can anyone
| recommend
| > > > anything?
| > > >
| > > > Thanks,
| > > >
| > > > Steve
| > > >
| > > >
| > > >
| >
| >
|
|
|

Nov 17 '05 #8
Hi,

This project has never incrementally linked (I was under the impression that
building a .NET assembly, incremental linking was turned off anyway - this
certainly seems to be the case). In any case, I wouldn't mind so much but
during linking, it seems just to amble for a little while. With /VERBOSE, I
see the beginning of pass 1 up to:

Processed /DEFAULTLIB:libcpmtd
Processed /DEFAULTLIB:LIBCMTD
Processed /DEFAULTLIB:OLDNAMES
Processed /DEFAULTLIB:MSCOREE.LIB
Processed /DEFAULTLIB:uuid.lib

And then there's a pause for about 40 or 50 seconds, with the processor time
at around 10%. Then the linker outputs:

Searching libraries

And processor usage goes up to close to 100% for the remainder of the link
time.

Thanks for the interest and the docs,

Steve

"Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
news:ms**************@cpmsftngxa10.phx.gbl...
Here's a copy of something I'm writing that may be of assistance in
general. If possible I'd like to get a repro of your problem. I'm trying
to understand what the various problems are with linking, and the more
customer issues I can help resolve, the better.

Thanks,

Kang Su Gatlin
Visual C++ Program Manager

[snip | > >
| > >
| > > GE
| > >
| > > "Steve McLellan" wrote:
| > >
| > > > Hi,
| > > >
| > > > Sorry to repost, but this is becoming aggravating, and causing me a | lot
| > of
| > > > wasted time. I've got a reasonably large mixed C++ project, and
after
| a
| > > > number of builds (but not a constant number) linking (and sometimes | > > > compiling) becomes immensely slow, and task manager shows that
| link.exe
| > (or
| > > > cl.exe) is barely using any processor time, but an awful lot of RAM | > (around
| > > > 150-200MB). I'm going to keep an eye on page faults since I can't
| think
| > of
| > > > anything else that could be causing this - the machine doesn't seem to
| > be
| > > > thrashing and is fairly responsive during building. Can anyone
| recommend
| > > > anything?
| > > >
| > > > Thanks,
| > > >
| > > > Steve
| > > >
| > > >
| > > >
| >
| >
|
|
|

Nov 17 '05 #9
Steve,

Given that this is managed, it is highly likely that this is when the
metadata is being processed/merged. If not, it may be a problem with the
directive strings which we have when there are multiple megabytes of them
such was what happens when lots of classes are exported from header files
but the header files are not in a PCH and are included throughout the
project.

After that 40-50 second pause when it begins to grind again, how much time
does it take?

Thanks,

Kang Su Gatlin
Visual C++ Program Manager

--------------------
| Reply-To: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| From: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| References: <Os*************@TK2MSFTNGP12.phx.gbl>
<4F**********************************@microsoft.co m>
<eZ**************@TK2MSFTNGP12.phx.gbl>
<uX**************@tk2msftngp13.phx.gbl>
<ms**************@cpmsftngxa10.phx.gbl>
| Subject: Re: REPOST: extremely long link times

|
| Hi,
|
| This project has never incrementally linked (I was under the impression
that
| building a .NET assembly, incremental linking was turned off anyway - this
| certainly seems to be the case). In any case, I wouldn't mind so much but
| during linking, it seems just to amble for a little while. With /VERBOSE,
I
| see the beginning of pass 1 up to:
|
| Processed /DEFAULTLIB:libcpmtd
| Processed /DEFAULTLIB:LIBCMTD
| Processed /DEFAULTLIB:OLDNAMES
| Processed /DEFAULTLIB:MSCOREE.LIB
| Processed /DEFAULTLIB:uuid.lib
|
| And then there's a pause for about 40 or 50 seconds, with the processor
time
| at around 10%. Then the linker outputs:
|
| Searching libraries
|
| And processor usage goes up to close to 100% for the remainder of the link
| time.
|
| Thanks for the interest and the docs,
|
| Steve
|
| "Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
| news:ms**************@cpmsftngxa10.phx.gbl...
| > Here's a copy of something I'm writing that may be of assistance in
| > general. If possible I'd like to get a repro of your problem. I'm
trying
| > to understand what the various problems are with linking, and the more
| > customer issues I can help resolve, the better.
| >
| > Thanks,
| >
| > Kang Su Gatlin
| > Visual C++ Program Manager
| >
|
| [snip
| > | > >
| > | > >
| > | > > GE
| > | > >
| > | > > "Steve McLellan" wrote:
| > | > >
| > | > > > Hi,
| > | > > >
| > | > > > Sorry to repost, but this is becoming aggravating, and causing
me
| a
| > | lot
| > | > of
| > | > > > wasted time. I've got a reasonably large mixed C++ project, and
| > after
| > | a
| > | > > > number of builds (but not a constant number) linking (and
| sometimes
| > | > > > compiling) becomes immensely slow, and task manager shows that
| > | link.exe
| > | > (or
| > | > > > cl.exe) is barely using any processor time, but an awful lot of
| RAM
| > | > (around
| > | > > > 150-200MB). I'm going to keep an eye on page faults since I
can't
| > | think
| > | > of
| > | > > > anything else that could be causing this - the machine doesn't
| seem
| > to
| > | > be
| > | > > > thrashing and is fairly responsive during building. Can anyone
| > | recommend
| > | > > > anything?
| > | > > >
| > | > > > Thanks,
| > | > > >
| > | > > > Steve
| > | > > >
| > | > > >
| > | > > >
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 17 '05 #10
Hi,

Thanks for the reply. Typically linking takes between 2 and 3 minutes, so
the linker's maxing out the processor for something over a minute, maybe
twice as long as the pause. Interestingly, when I'm working simultaneously
on another machine using remote desktop the build on this (the local)
machine seems to sometimes take less time (about 1m 20s) although I don't
know whether it's the pause that takes less time or the actual work.

We're not using PCHs, so this may indeed be a problem. Are there any good
resources about building PCHs around? It's just puzzling that the
processor's not working hard throughout the pause - typically I'd only
expect that under really heavy disk I/O or waiting for another process.

If it's any help, we're using linking against / using a couple of external
libraries - LIBTIFF, the Intel IPP lib and some of the Boost libraries.

Thanks again,

Steve

"Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
news:wI**************@cpmsftngxa06.phx.gbl...
Steve,

Given that this is managed, it is highly likely that this is when the
metadata is being processed/merged. If not, it may be a problem with the
directive strings which we have when there are multiple megabytes of them
such was what happens when lots of classes are exported from header files
but the header files are not in a PCH and are included throughout the
project.

After that 40-50 second pause when it begins to grind again, how much time
does it take?

Thanks,

Kang Su Gatlin
Visual C++ Program Manager

--------------------
| Reply-To: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| From: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| References: <Os*************@TK2MSFTNGP12.phx.gbl>
<4F**********************************@microsoft.co m>
<eZ**************@TK2MSFTNGP12.phx.gbl>
<uX**************@tk2msftngp13.phx.gbl>
<ms**************@cpmsftngxa10.phx.gbl>
| Subject: Re: REPOST: extremely long link times

|
| Hi,
|
| This project has never incrementally linked (I was under the impression
that
| building a .NET assembly, incremental linking was turned off anyway - this | certainly seems to be the case). In any case, I wouldn't mind so much but | during linking, it seems just to amble for a little while. With /VERBOSE, I
| see the beginning of pass 1 up to:
|
| Processed /DEFAULTLIB:libcpmtd
| Processed /DEFAULTLIB:LIBCMTD
| Processed /DEFAULTLIB:OLDNAMES
| Processed /DEFAULTLIB:MSCOREE.LIB
| Processed /DEFAULTLIB:uuid.lib
|
| And then there's a pause for about 40 or 50 seconds, with the processor
time
| at around 10%. Then the linker outputs:
|
| Searching libraries
|
| And processor usage goes up to close to 100% for the remainder of the link | time.
|
| Thanks for the interest and the docs,
|
| Steve
|
| "Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
| news:ms**************@cpmsftngxa10.phx.gbl...
| > Here's a copy of something I'm writing that may be of assistance in
| > general. If possible I'd like to get a repro of your problem. I'm
trying
| > to understand what the various problems are with linking, and the more
| > customer issues I can help resolve, the better.
| >
| > Thanks,
| >
| > Kang Su Gatlin
| > Visual C++ Program Manager
| >
|
| [snip
| > | > >
| > | > >
| > | > > GE
| > | > >
| > | > > "Steve McLellan" wrote:
| > | > >
| > | > > > Hi,
| > | > > >
| > | > > > Sorry to repost, but this is becoming aggravating, and causing
me
| a
| > | lot
| > | > of
| > | > > > wasted time. I've got a reasonably large mixed C++ project, and | > after
| > | a
| > | > > > number of builds (but not a constant number) linking (and
| sometimes
| > | > > > compiling) becomes immensely slow, and task manager shows that
| > | link.exe
| > | > (or
| > | > > > cl.exe) is barely using any processor time, but an awful lot of | RAM
| > | > (around
| > | > > > 150-200MB). I'm going to keep an eye on page faults since I
can't
| > | think
| > | > of
| > | > > > anything else that could be causing this - the machine doesn't
| seem
| > to
| > | > be
| > | > > > thrashing and is fairly responsive during building. Can anyone
| > | recommend
| > | > > > anything?
| > | > > >
| > | > > > Thanks,
| > | > > >
| > | > > > Steve
| > | > > >
| > | > > >
| > | > > >
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 17 '05 #11
I missed Steve's original post, but I work on a large app that also has
extremely long link times. I dumped some specifics at the bottom of my
website http://www.stankevitz.com/visualstudio/

Rudy

"Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
news:wI**************@cpmsftngxa06.phx.gbl...
Steve,

Given that this is managed, it is highly likely that this is when the
metadata is being processed/merged. If not, it may be a problem with the
directive strings which we have when there are multiple megabytes of them
such was what happens when lots of classes are exported from header files
but the header files are not in a PCH and are included throughout the
project.

After that 40-50 second pause when it begins to grind again, how much time
does it take?

Thanks,

Kang Su Gatlin
Visual C++ Program Manager

--------------------
| Reply-To: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| From: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| References: <Os*************@TK2MSFTNGP12.phx.gbl>
<4F**********************************@microsoft.co m>
<eZ**************@TK2MSFTNGP12.phx.gbl>
<uX**************@tk2msftngp13.phx.gbl>
<ms**************@cpmsftngxa10.phx.gbl>
| Subject: Re: REPOST: extremely long link times

|
| Hi,
|
| This project has never incrementally linked (I was under the impression
that
| building a .NET assembly, incremental linking was turned off anyway - this | certainly seems to be the case). In any case, I wouldn't mind so much but | during linking, it seems just to amble for a little while. With /VERBOSE, I
| see the beginning of pass 1 up to:
|
| Processed /DEFAULTLIB:libcpmtd
| Processed /DEFAULTLIB:LIBCMTD
| Processed /DEFAULTLIB:OLDNAMES
| Processed /DEFAULTLIB:MSCOREE.LIB
| Processed /DEFAULTLIB:uuid.lib
|
| And then there's a pause for about 40 or 50 seconds, with the processor
time
| at around 10%. Then the linker outputs:
|
| Searching libraries
|
| And processor usage goes up to close to 100% for the remainder of the link | time.
|
| Thanks for the interest and the docs,
|
| Steve
|
| "Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
| news:ms**************@cpmsftngxa10.phx.gbl...
| > Here's a copy of something I'm writing that may be of assistance in
| > general. If possible I'd like to get a repro of your problem. I'm
trying
| > to understand what the various problems are with linking, and the more
| > customer issues I can help resolve, the better.
| >
| > Thanks,
| >
| > Kang Su Gatlin
| > Visual C++ Program Manager
| >
|
| [snip
| > | > >
| > | > >
| > | > > GE
| > | > >
| > | > > "Steve McLellan" wrote:
| > | > >
| > | > > > Hi,
| > | > > >
| > | > > > Sorry to repost, but this is becoming aggravating, and causing
me
| a
| > | lot
| > | > of
| > | > > > wasted time. I've got a reasonably large mixed C++ project, and | > after
| > | a
| > | > > > number of builds (but not a constant number) linking (and
| sometimes
| > | > > > compiling) becomes immensely slow, and task manager shows that
| > | link.exe
| > | > (or
| > | > > > cl.exe) is barely using any processor time, but an awful lot of | RAM
| > | > (around
| > | > > > 150-200MB). I'm going to keep an eye on page faults since I
can't
| > | think
| > | > of
| > | > > > anything else that could be causing this - the machine doesn't
| seem
| > to
| > | > be
| > | > > > thrashing and is fairly responsive during building. Can anyone
| > | recommend
| > | > > > anything?
| > | > > >
| > | > > > Thanks,
| > | > > >
| > | > > > Steve
| > | > > >
| > | > > >
| > | > > >
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 17 '05 #12
A couple of things to try are /TEST /TIME as linker options with the VS2005
Beta1, as VS2003 didn't give timing of the metadata merging portion of
linking. This would give a good indication of what's happening during this
pause.

Regarding PCH... I'd try MSDN:
http://msdn.microsoft.com/library/de...us/vccore/html
/_core_creating_precompiled_header_files.asp

I don't know of any great resource on it, but that's probably not a bad
start.

Thanks,

Kang Su Gatlin
Visual C++ Program Manager

File Visual Studio/.NET Bugs at:
http://msdn.microsoft.com/feedback
--------------------
| Reply-To: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| From: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| References: <Os*************@TK2MSFTNGP12.phx.gbl>
<4F**********************************@microsoft.co m>
<eZ**************@TK2MSFTNGP12.phx.gbl>
<uX**************@tk2msftngp13.phx.gbl>
<ms**************@cpmsftngxa10.phx.gbl>
<O3**************@TK2MSFTNGP10.phx.gbl>
<wI**************@cpmsftngxa06.phx.gbl>
| Subject: Re: REPOST: extremely long link times
| Date: Wed, 11 Aug 2004 11:33:47 +0100

|
| Hi,
|
| Thanks for the reply. Typically linking takes between 2 and 3 minutes, so
| the linker's maxing out the processor for something over a minute, maybe
| twice as long as the pause. Interestingly, when I'm working simultaneously
| on another machine using remote desktop the build on this (the local)
| machine seems to sometimes take less time (about 1m 20s) although I don't
| know whether it's the pause that takes less time or the actual work.
|
| We're not using PCHs, so this may indeed be a problem. Are there any good
| resources about building PCHs around? It's just puzzling that the
| processor's not working hard throughout the pause - typically I'd only
| expect that under really heavy disk I/O or waiting for another process.
|
| If it's any help, we're using linking against / using a couple of external
| libraries - LIBTIFF, the Intel IPP lib and some of the Boost libraries.
|
| Thanks again,
|
| Steve
|
| "Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
| news:wI**************@cpmsftngxa06.phx.gbl...
| > Steve,
| >
| > Given that this is managed, it is highly likely that this is when the
| > metadata is being processed/merged. If not, it may be a problem with
the
| > directive strings which we have when there are multiple megabytes of
them
| > such was what happens when lots of classes are exported from header
files
| > but the header files are not in a PCH and are included throughout the
| > project.
| >
| > After that 40-50 second pause when it begins to grind again, how much
time
| > does it take?
| >
| > Thanks,
| >
| > Kang Su Gatlin
| > Visual C++ Program Manager
| >
| > --------------------
| > | Reply-To: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| > | From: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| > | References: <Os*************@TK2MSFTNGP12.phx.gbl>
| > <4F**********************************@microsoft.co m>
| > <eZ**************@TK2MSFTNGP12.phx.gbl>
| > <uX**************@tk2msftngp13.phx.gbl>
| > <ms**************@cpmsftngxa10.phx.gbl>
| > | Subject: Re: REPOST: extremely long link times
| >
| > |
| > | Hi,
| > |
| > | This project has never incrementally linked (I was under the
impression
| > that
| > | building a .NET assembly, incremental linking was turned off anyway -
| this
| > | certainly seems to be the case). In any case, I wouldn't mind so much
| but
| > | during linking, it seems just to amble for a little while. With
| /VERBOSE,
| > I
| > | see the beginning of pass 1 up to:
| > |
| > | Processed /DEFAULTLIB:libcpmtd
| > | Processed /DEFAULTLIB:LIBCMTD
| > | Processed /DEFAULTLIB:OLDNAMES
| > | Processed /DEFAULTLIB:MSCOREE.LIB
| > | Processed /DEFAULTLIB:uuid.lib
| > |
| > | And then there's a pause for about 40 or 50 seconds, with the
processor
| > time
| > | at around 10%. Then the linker outputs:
| > |
| > | Searching libraries
| > |
| > | And processor usage goes up to close to 100% for the remainder of the
| link
| > | time.
| > |
| > | Thanks for the interest and the docs,
| > |
| > | Steve
| > |
| > | "Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
| > | news:ms**************@cpmsftngxa10.phx.gbl...
| > | > Here's a copy of something I'm writing that may be of assistance in
| > | > general. If possible I'd like to get a repro of your problem. I'm
| > trying
| > | > to understand what the various problems are with linking, and the
more
| > | > customer issues I can help resolve, the better.
| > | >
| > | > Thanks,
| > | >
| > | > Kang Su Gatlin
| > | > Visual C++ Program Manager
| > | >
| > |
| > | [snip
| > | > | > >
| > | > | > >
| > | > | > > GE
| > | > | > >
| > | > | > > "Steve McLellan" wrote:
| > | > | > >
| > | > | > > > Hi,
| > | > | > > >
| > | > | > > > Sorry to repost, but this is becoming aggravating, and
causing
| > me
| > | a
| > | > | lot
| > | > | > of
| > | > | > > > wasted time. I've got a reasonably large mixed C++ project,
| and
| > | > after
| > | > | a
| > | > | > > > number of builds (but not a constant number) linking (and
| > | sometimes
| > | > | > > > compiling) becomes immensely slow, and task manager shows
that
| > | > | link.exe
| > | > | > (or
| > | > | > > > cl.exe) is barely using any processor time, but an awful lot
| of
| > | RAM
| > | > | > (around
| > | > | > > > 150-200MB). I'm going to keep an eye on page faults since I
| > can't
| > | > | think
| > | > | > of
| > | > | > > > anything else that could be causing this - the machine
doesn't
| > | seem
| > | > to
| > | > | > be
| > | > | > > > thrashing and is fairly responsive during building. Can
anyone
| > | > | recommend
| > | > | > > > anything?
| > | > | > > >
| > | > | > > > Thanks,
| > | > | > > >
| > | > | > > > Steve
| > | > | > > >
| > | > | > > >
| > | > | > > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 17 '05 #13
Hi,

I don't have a copy of VS 2005 available to me. I'll have a look at PCHs.
Thanks,

Steve

"Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
news:%2****************@cpmsftngxa06.phx.gbl...
A couple of things to try are /TEST /TIME as linker options with the VS2005 Beta1, as VS2003 didn't give timing of the metadata merging portion of
linking. This would give a good indication of what's happening during this pause.

Regarding PCH... I'd try MSDN:
http://msdn.microsoft.com/library/de...us/vccore/html /_core_creating_precompiled_header_files.asp

I don't know of any great resource on it, but that's probably not a bad
start.

Thanks,

Kang Su Gatlin
Visual C++ Program Manager

File Visual Studio/.NET Bugs at:
http://msdn.microsoft.com/feedback
--------------------
| Reply-To: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| From: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| References: <Os*************@TK2MSFTNGP12.phx.gbl>
<4F**********************************@microsoft.co m>
<eZ**************@TK2MSFTNGP12.phx.gbl>
<uX**************@tk2msftngp13.phx.gbl>
<ms**************@cpmsftngxa10.phx.gbl>
<O3**************@TK2MSFTNGP10.phx.gbl>
<wI**************@cpmsftngxa06.phx.gbl>
| Subject: Re: REPOST: extremely long link times
| Date: Wed, 11 Aug 2004 11:33:47 +0100

|
| Hi,
|
| Thanks for the reply. Typically linking takes between 2 and 3 minutes, so | the linker's maxing out the processor for something over a minute, maybe
| twice as long as the pause. Interestingly, when I'm working simultaneously | on another machine using remote desktop the build on this (the local)
| machine seems to sometimes take less time (about 1m 20s) although I don't | know whether it's the pause that takes less time or the actual work.
|
| We're not using PCHs, so this may indeed be a problem. Are there any good | resources about building PCHs around? It's just puzzling that the
| processor's not working hard throughout the pause - typically I'd only
| expect that under really heavy disk I/O or waiting for another process.
|
| If it's any help, we're using linking against / using a couple of external | libraries - LIBTIFF, the Intel IPP lib and some of the Boost libraries.
|
| Thanks again,
|
| Steve
|
| "Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
| news:wI**************@cpmsftngxa06.phx.gbl...
| > Steve,
| >
| > Given that this is managed, it is highly likely that this is when the
| > metadata is being processed/merged. If not, it may be a problem with
the
| > directive strings which we have when there are multiple megabytes of
them
| > such was what happens when lots of classes are exported from header
files
| > but the header files are not in a PCH and are included throughout the
| > project.
| >
| > After that 40-50 second pause when it begins to grind again, how much
time
| > does it take?
| >
| > Thanks,
| >
| > Kang Su Gatlin
| > Visual C++ Program Manager
| >
| > --------------------
| > | Reply-To: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| > | From: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| > | References: <Os*************@TK2MSFTNGP12.phx.gbl>
| > <4F**********************************@microsoft.co m>
| > <eZ**************@TK2MSFTNGP12.phx.gbl>
| > <uX**************@tk2msftngp13.phx.gbl>
| > <ms**************@cpmsftngxa10.phx.gbl>
| > | Subject: Re: REPOST: extremely long link times
| >
| > |
| > | Hi,
| > |
| > | This project has never incrementally linked (I was under the
impression
| > that
| > | building a .NET assembly, incremental linking was turned off anyway - | this
| > | certainly seems to be the case). In any case, I wouldn't mind so much | but
| > | during linking, it seems just to amble for a little while. With
| /VERBOSE,
| > I
| > | see the beginning of pass 1 up to:
| > |
| > | Processed /DEFAULTLIB:libcpmtd
| > | Processed /DEFAULTLIB:LIBCMTD
| > | Processed /DEFAULTLIB:OLDNAMES
| > | Processed /DEFAULTLIB:MSCOREE.LIB
| > | Processed /DEFAULTLIB:uuid.lib
| > |
| > | And then there's a pause for about 40 or 50 seconds, with the
processor
| > time
| > | at around 10%. Then the linker outputs:
| > |
| > | Searching libraries
| > |
| > | And processor usage goes up to close to 100% for the remainder of the | link
| > | time.
| > |
| > | Thanks for the interest and the docs,
| > |
| > | Steve
| > |
| > | "Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
| > | news:ms**************@cpmsftngxa10.phx.gbl...
| > | > Here's a copy of something I'm writing that may be of assistance in | > | > general. If possible I'd like to get a repro of your problem. I'm | > trying
| > | > to understand what the various problems are with linking, and the
more
| > | > customer issues I can help resolve, the better.
| > | >
| > | > Thanks,
| > | >
| > | > Kang Su Gatlin
| > | > Visual C++ Program Manager
| > | >
| > |
| > | [snip
| > | > | > >
| > | > | > >
| > | > | > > GE
| > | > | > >
| > | > | > > "Steve McLellan" wrote:
| > | > | > >
| > | > | > > > Hi,
| > | > | > > >
| > | > | > > > Sorry to repost, but this is becoming aggravating, and
causing
| > me
| > | a
| > | > | lot
| > | > | > of
| > | > | > > > wasted time. I've got a reasonably large mixed C++ project, | and
| > | > after
| > | > | a
| > | > | > > > number of builds (but not a constant number) linking (and
| > | sometimes
| > | > | > > > compiling) becomes immensely slow, and task manager shows
that
| > | > | link.exe
| > | > | > (or
| > | > | > > > cl.exe) is barely using any processor time, but an awful lot | of
| > | RAM
| > | > | > (around
| > | > | > > > 150-200MB). I'm going to keep an eye on page faults since I | > can't
| > | > | think
| > | > | > of
| > | > | > > > anything else that could be causing this - the machine
doesn't
| > | seem
| > | > to
| > | > | > be
| > | > | > > > thrashing and is fairly responsive during building. Can
anyone
| > | > | recommend
| > | > | > > > anything?
| > | > | > > >
| > | > | > > > Thanks,
| > | > | > > >
| > | > | > > > Steve
| > | > | > > >
| > | > | > > >
| > | > | > > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 17 '05 #14
There's a (possibly commercial, but cheap) solution for the 'not checking
which projects need compiling' problem (have a look at
http://www.codeproject.com/macro/fastsolutionbuild.asp or search for 'fast
solution build' in Google). I don't think it speeds up link times. The
additional compile time I can live with (since the standard support is that
much better) and i can even put up with slightly longer link times,
especially since this is a mixed mode C++ app, but up to 3 minutes after
making small changes to a CPP becomes extremely annoying.

I'm now working on 3 machines simultaneously, so I don't notice so much
(it's actually quite good - I can work on one problem while another's
linking, then compile up the new changes and go back to the original), but I
can't help thinking it's a bit wrong.

Ta,

Steve

"Rudy Ray Moore" <ru*******@hotmail.com> wrote in message
news:Oq****************@tk2msftngp13.phx.gbl...
I missed Steve's original post, but I work on a large app that also has
extremely long link times. I dumped some specifics at the bottom of my
website http://www.stankevitz.com/visualstudio/

Rudy

"Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
news:wI**************@cpmsftngxa06.phx.gbl...
Steve,

Given that this is managed, it is highly likely that this is when the
metadata is being processed/merged. If not, it may be a problem with the directive strings which we have when there are multiple megabytes of them such was what happens when lots of classes are exported from header files but the header files are not in a PCH and are included throughout the
project.

After that 40-50 second pause when it begins to grind again, how much time does it take?

Thanks,

Kang Su Gatlin
Visual C++ Program Manager

--------------------
| Reply-To: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| From: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
| References: <Os*************@TK2MSFTNGP12.phx.gbl>
<4F**********************************@microsoft.co m>
<eZ**************@TK2MSFTNGP12.phx.gbl>
<uX**************@tk2msftngp13.phx.gbl>
<ms**************@cpmsftngxa10.phx.gbl>
| Subject: Re: REPOST: extremely long link times

|
| Hi,
|
| This project has never incrementally linked (I was under the impression that
| building a .NET assembly, incremental linking was turned off anyway -

this
| certainly seems to be the case). In any case, I wouldn't mind so much

but
| during linking, it seems just to amble for a little while. With

/VERBOSE,
I
| see the beginning of pass 1 up to:
|
| Processed /DEFAULTLIB:libcpmtd
| Processed /DEFAULTLIB:LIBCMTD
| Processed /DEFAULTLIB:OLDNAMES
| Processed /DEFAULTLIB:MSCOREE.LIB
| Processed /DEFAULTLIB:uuid.lib
|
| And then there's a pause for about 40 or 50 seconds, with the processor time
| at around 10%. Then the linker outputs:
|
| Searching libraries
|
| And processor usage goes up to close to 100% for the remainder of the

link
| time.
|
| Thanks for the interest and the docs,
|
| Steve
|
| "Kang Su Gatlin [MS]" <ka******@microsoft.com> wrote in message
| news:ms**************@cpmsftngxa10.phx.gbl...
| > Here's a copy of something I'm writing that may be of assistance in
| > general. If possible I'd like to get a repro of your problem. I'm
trying
| > to understand what the various problems are with linking, and the more | > customer issues I can help resolve, the better.
| >
| > Thanks,
| >
| > Kang Su Gatlin
| > Visual C++ Program Manager
| >
|
| [snip
| > | > >
| > | > >
| > | > > GE
| > | > >
| > | > > "Steve McLellan" wrote:
| > | > >
| > | > > > Hi,
| > | > > >
| > | > > > Sorry to repost, but this is becoming aggravating, and causing me
| a
| > | lot
| > | > of
| > | > > > wasted time. I've got a reasonably large mixed C++ project,

and
| > after
| > | a
| > | > > > number of builds (but not a constant number) linking (and
| sometimes
| > | > > > compiling) becomes immensely slow, and task manager shows that | > | link.exe
| > | > (or
| > | > > > cl.exe) is barely using any processor time, but an awful lot

of
| RAM
| > | > (around
| > | > > > 150-200MB). I'm going to keep an eye on page faults since I
can't
| > | think
| > | > of
| > | > > > anything else that could be causing this - the machine doesn't | seem
| > to
| > | > be
| > | > > > thrashing and is fairly responsive during building. Can anyone | > | recommend
| > | > > > anything?
| > | > > >
| > | > > > Thanks,
| > | > > >
| > | > > > Steve
| > | > > >
| > | > > >
| > | > > >
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|


Nov 17 '05 #15

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

Similar topics

7
6682
by: A Ratcliffe | last post by:
As you might have gathered from the Subject, I've been experimenting with using VBScript classes in my ASP pages to tidy the script up. Generally things are going well. Since I come from a C++...
1
2530
by: Anthony | last post by:
Sorry about the repost but i didn't get any responses.... I am trying to make a simple page display a rss news feed.. I don't want the web server to connect to remote site because it doesn't...
83
5843
by: D. Dante Lorenso | last post by:
Trying to use the 'search' in the docs section of PostgreSQL.org is extremely SLOW. Considering this is a website for a database and databases are supposed to be good for indexing content, I'd...
12
4692
by: Arno R | last post by:
Hi all, This is a repost of a message posted at october 6. The answer I got was about MapiMessages.AttachmentIndex. I think I need the MSMAPI32.OCX to use this. (I don't have this file on my PC)...
2
1791
by: Susan Bricker | last post by:
I went back to read my post and found an error in my description ... here is the post, again, corrected: The following error: "The current field must match the join key '?' in the table that...
0
841
by: Steve McLellan | last post by:
Hi, Just recently (last day or two) my link times (a mixed mode VC++ project) have gone up a lot. It was previously taking a minute or 2, but is now closer to 10, and I don't think I've added...
67
2863
by: Scott M. | last post by:
Can anyone give me any ideas on why VS.NET 2003 running on XP Pro. (P4's with 1GB RAM) would take over 3 minutes to simply create a new ASP.NET Web Application on http://localhost? It seems that...
4
9564
by: BLob | last post by:
Hi, I need to create an RTF document with PHP. Actually, I am using an already created RTF document which with strings like %var% that I replace with $var before sending the document. I need to...
4
3250
by: Owen Jenkins | last post by:
Hi, No-one replied to this when I sent it last week. Any bites out there today?? ----- My application allows users to create a new back end for separate purposes. It does this by using Make...
0
7237
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,...
0
7347
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,...
1
7073
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...
0
7506
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...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
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...

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.