Difference between revisions of "PGO Related Bugs"

From CDOT Wiki
Jump to: navigation, search
(Project Details)
(Testing Scripts)
Line 70: Line 70:
 
!align="left" style="background-color:#FF9933; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"|The scripts I am using for running tests against my builds ( Oct 2nd, 2008 )
 
!align="left" style="background-color:#FF9933; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"|The scripts I am using for running tests against my builds ( Oct 2nd, 2008 )
 
|-
 
|-
|<pre>#!/bin/sh
+
|
####### the .mozconfig file to use for this build
+
<code>#!/bin/sh</code><br/>
export MOZCONFIG=/f/mozilla/.mozconfigPGO
+
<span style="color:green;">''####### the .mozconfig file to use for this build''</span><br />
####### the subdirectory trunk holds my src files
+
<code>export MOZCONFIG=/f/mozilla/.mozconfigPGO</code><br />
cd trunk
+
<span style="color:green;">''####### the subdirectory trunk holds my src files''</span><br />
####### time the profile build and output stdout and stderr to files that are timestamped  
+
<code>cd trunk</code><br />
time make -f client.mk profiledbuild 1> /i/mozilla/pgo-output-`date +%s`.txt 2> /i/mozilla/pgo-errors-`date +%s`.txt
+
<span style="color:green;">''####### time the profile build and output stdout and stderr to files that are timestamped''</span><br />
####### after the build is completed done run the xpcshell tests and output stdout and stderr to file that are timestamped
+
<code>time make -f client.mk profiledbuild 1> /i/mozilla/pgo-output-`date +%s`.txt 2> /i/mozilla/pgo-errors-`date +%s`.txt''</code><br />
make check 1> /i/mozilla/pgo-check-output-`date +%s`.txt 2> /i/mozilla/pgo-check-errors-`date +%s`.txt
+
<span style="color:green;">''####### after the build is completed done run the xpcshell tests and output stdout and stderr to file that are timestamped''</span><br />
####### change to the objdir directory then to the mochitest directory
+
<code>make check 1> /i/mozilla/pgo-check-output-`date +%s`.txt 2> /i/mozilla/pgo-check-errors-`date +%s`.txt</code><br />
cd /i/mozilla/ff-pgo/_tests/testing/mochitest  
+
<span style="color:green;">''####### change to the objdir directory then to the mochitest directory''</span><br />
####### run the mochitest, run test right away, close the browser when done, log all output to a timestamped file
+
<code>cd /i/mozilla/ff-pgo/_tests/testing/mochitest</code><br />
python runtests.py --autorun --close-when-done --log-file=/i/mozilla/pgo-mochitest-`date +%s`.log --file-level=DEBUG
+
<span style="color:green;">''####### run the mochitest, run test right away, close the browser when done, log all output to a timestamped file''</span><br />
</pre>
+
<code>python runtests.py --autorun --close-when-done --log-file=/i/mozilla/pgo-mochitest-`date +%s`.log --file-level=DEBUG</code>
 
|}
 
|}
 
<br />
 
<br />
Line 89: Line 89:
 
!align="left" style="background-color:#FF9933; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"|Here is the .mozconfig file ( Oct 2nd, 2008 )
 
!align="left" style="background-color:#FF9933; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"|Here is the .mozconfig file ( Oct 2nd, 2008 )
 
|-
 
|-
|<pre> . $topsrcdir/browser/config/mozconfig
+
|
mk_add_options MOZ_OBJDIR=/i/mozilla/ff-pgo
+
<code>. $topsrcdir/browser/config/mozconfig</code><br />
mk_add_options MOZ_MAKE_FLAGS=-j5
+
<code>mk_add_options MOZ_OBJDIR=/i/mozilla/ff-pgo</code><br />
####### this is the script to run after the first build to gather profile data
+
<code>mk_add_options MOZ_MAKE_FLAGS=-j5</code><br />
mk_add_options PROFILE_GEN_SCRIPT="sh /f/mozilla/pgo.sh"
+
<span style="color:green;">''####### this is the script to run after the first build to gather profile data''</span><br />
ac_add_options --disable-vista-sdk-requirements
+
<code>mk_add_options PROFILE_GEN_SCRIPT="sh /f/mozilla/pgo.sh"</code><br />
####### this has to be enabled to perform the mochitests
+
<code>ac_add_options --disable-vista-sdk-requirements</code><br />
ac_add_options --enable-tests
+
<span style="color:green;">''####### this has to be enabled to perform the mochitests''</span><br />
ac_add_options --disable-debug
+
<code>ac_add_options --enable-tests</code><br />
ac_add_options --disable-accessibility
+
<code>ac_add_options --disable-debug</code><br />
</pre>
+
<code>ac_add_options --disable-accessibility</code>
 
|}
 
|}
 
<br />
 
<br />
Line 105: Line 105:
 
!align="left" style="background-color:#FF9933; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"|Here is the script the profile build runs to gather profile data ( Oct 2nd, 2008 )
 
!align="left" style="background-color:#FF9933; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"|Here is the script the profile build runs to gather profile data ( Oct 2nd, 2008 )
 
|-
 
|-
|<pre>#!/bin/sh
+
|
 +
<pre>
 +
#!/bin/sh
 
export NO_EM_RESTART=1
 
export NO_EM_RESTART=1
mkdir $OBJDIR/_profileprofile  
+
mkdir $OBJDIR/_profileprofile
 
cd /i/mozilla/ff-pgo/_tests/testing/mochitest
 
cd /i/mozilla/ff-pgo/_tests/testing/mochitest
 
python runtests.py --autorun --close-when-done --log-file=/i/mozilla/pgo-profile-mochitest-`date +%s`.log --file-level=DEBUG
 
python runtests.py --autorun --close-when-done --log-file=/i/mozilla/pgo-profile-mochitest-`date +%s`.log --file-level=DEBUG
Line 115: Line 117:
  
 
|}
 
|}
 +
 
=== Related Bugs ===
 
=== Related Bugs ===
  

Revision as of 19:09, 3 October 2008

Project Name

PGO Related Bugs

Project Description

Firefox crashes or experiences bugs after creating PGO builds on Windows. The focus of this project is to determine what is causing these crashes or bugs and either patch/fix them or find solutions to allow for the optimizations without incurring the problems.

Project Leader(s)

Project Contributor(s)

- None so far but that will change.

NOTE: only Project Leader(s) should add names here. You can’t add your own name to the Contributor list.

Project Tasks

Task Details Priority Status Target Link(s)
Compile Firefox PGO Compile the trunk of Firefox using make -f client.mk profiledbuild. High Done 0.1 R
Reproduce PGO Bugs or Crashes I need to reproduce the bugs or crashes other people were experiencing with their pgo builds. High Not Started 0.1 R
Compile Firefox PGO Tests Compile Firefox with VS 2005 and Vista SDK and compile with VS 2008 w/o Vista SDK. low Not Started 0.3 R
Determine 0.1 Release I need to determine what I'll be releasing for the 0.1 Release High On Going Sept 28th, 2008

Project Details

Testing Scripts




Related Bugs

Figure out why building jemalloc breaks with PGO enabled - 419470
sort out PGO-triggered bugs - 419893
win32 mozilla-central weirdness with PGO - 437002

Releases

0.1 Release

  • Reproduce bug(s)
  • Document how to reproduce bug(s)
  • Hone in on cause of bug(s)

More to come....

0.2 Release

To be Announced...

0.3 Release

To be Announced...

Errors

  • Build Environment:
    • Windows XP (32-bit)
    • Visual Studio 2008
    • Vista SDK



Performance


Project News

October 2008

Date Comments
Oct 2nd, 2008 After talking with Ted and Dave Humphrey I am going to focus my project on increasing the profiling of Firefox to increase its speed.

I am also enabling the modules that have PGO disable and running the xpcshell and Mochitests on them to determine if they are still broken or if they are now working.

September 2008


Date Comments
Sept 30th, 2008 Failed to reproduce bugs. I followed Ted's suggestions on my blog but still not experiencing any problems with my pgo build.
Sept 28th, 2008 Ted pointed me in the right direction on how to reproduce the PGO bugs. His post is here.
Sept 26th, 2008 Successfully compiled Firefox with PGO using Visual Studio 2005 compiler. Tests and debug are disabled.
Sept 26th, 2008 On IRC some guys suggested compiling with Visual Studio 2005 instead.
Sept 24th, 2008 Attempted to compile with debug and test disabled. Still Failed.
Sept 22th, 2008 Failed to compile Firefox with PGO on Visual Studio 2008.
Sept 20th, 2008 Successfully compiled one old assignment using PGO in Visual Studio. Results in Project Details.
Sept 19th, 2008 Tried to compile some old assignments using PGO in Visual Studio. Two assignments failed.
Sept 18th, 2008 Created this Project Page.
Sept 17th, 2008 Created First Build of Firefox.
Sept 15th, 2008 Met with Ted Mielczarek and discuss PGO Project.