Slow compile until reboot

  • Thread starter Thread starter Rudy Ray Moore
  • Start date Start date
R

Rudy Ray Moore

I compile a large application. It's my full time job.

This c++ "native binary" application takes approx 22 minutes to build
(release build).

Occasionally, it will compile much slower. It will take approx. 1.5 hours
to compile. Task manager shows 100% CPU usage (about 95% by cl.exe)

The slow compile is unusual, and goes away when I reboot.

1. How can I fix this problem without rebooting?

2. How can I prevent it from happening?

Rudy
 
How can I turn on "verbose compiling" to see what in the world cl.exe is
doing that's consuming 100% CPU and getting nowhere?
 
There's no such option.

You might be able to learn something using filemon or diskmon from
www.sysinternals.com that would reveal what's going on.

Do you have an anti-virus software running that might be interfering with
the compilation process?

-cd
 
Great idea, I'll try SysIternals's utilities. No, I'm not running
antivirus. :O

Thank you
 
I think I figured out what was happening here.

Im' using a "pentium m" laptop. Apparently the CPU decides sometimes that
it's time to slow down. I'm not sure how a normal person is supposed to
determine when or why this happens, but I found a utility that can assist:

http://www.diefer.de/speedswitchxp/index.html

Rudy
 
Back
Top