Closed Bug 2030161 Opened 4 months ago Closed 2 months ago

Generate ETW (xperf) profiles for Speedometer 3 tests on Windows

Categories

(Testing :: Performance, task, P3)

task

Tracking

(firefox154 fixed)

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: animalan, Assigned: animalan)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxp])

Attachments

(4 files, 8 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

In our effort to produce Speedometer 3 profiles for each platform, this bug tracks the work to collect full-system xperf profiles from Speedometer 3 tests run on Windows.

We can leverage Kash's xperf patch for this.

According to mcornmesser, the xperf schedule tasks are running on the main pool with this command (which will help with getting elevated permission to profile).

For symbolicating these profiles and integrating everything into Raptor, we can reference the work in our Android sp3 profile patches (Bug 1978586).

We'll want xperf profiles in addition to Gecko profiler profiles, for two reasons:

  • xperf works for both Firefox and Chrome, so we can compare equivalently-collected profiles
  • the Gecko profiler has higher overhead, and Firefox uses different code paths when profiling is active, which distorts sp3 profiles
See Also: → 1978586
Whiteboard: [fxp]

To do this, we will want to record the tests using xperf, and then process the etl files using samply.

xperf needs to be run as Administrator, and our sp3 jobs execute as a non-Administrator account. To bridge the gap, we use "scheduled tasks" to invoke Administrator-privileged powershell scripts for starting and stopping xperf. These scripts are already on the CI perf testing Windows machines, and can be found here: https://github.com/mozilla-platform-ops/ronin_puppet/tree/22ae7fce5c52138bb774655dd8a1255306294e09/modules/win_hw_profiling/files

See Also: 1978586
Summary: Generate xperf profiles for Speedometer 3 tests on Windows → [meta] Generate xperf profiles for Speedometer 3 tests on Windows
Keywords: meta
Type: enhancement → task
See Also: → 2030166
See Also: → 2030423
Component: Raptor → Performance
Severity: -- → S3
Priority: -- → P3
Whiteboard: [fxp]
Assignee: nobody → abhisheknimalan
Status: NEW → ASSIGNED
Keywords: meta
Summary: [meta] Generate xperf profiles for Speedometer 3 tests on Windows → Generate xperf profiles for Speedometer 3 tests on Windows
Summary: Generate xperf profiles for Speedometer 3 tests on Windows → Generate ETW (xperf) profiles for Speedometer 3 tests on Windows
Attachment #9584664 - Attachment description: WIP: Bug 2030161 - Create variants of the ETW profile with profiler-edit. r!=#perftest → WIP: Bug 2030161 - Create variants of the ETW profile with profiler-edit. r?#perftest
Attachment #9584664 - Attachment description: WIP: Bug 2030161 - Create variants of the ETW profile with profiler-edit. r?#perftest → WIP: Bug 2030161 - Create labelled and compact variants of the ETW profile with profiler-edit. r?#perftest
Attachment #9584664 - Attachment description: WIP: Bug 2030161 - Create labelled and compact variants of the ETW profile with profiler-edit. r?#perftest → WIP: Bug 2030161 - Create labelled and compact versions of the ETW profile with profiler-edit. r?#perftest
Attachment #9574245 - Attachment description: WIP: Bug 2030161 - Use 50 browser cycles when running Speedometer 3 tests with ETW profiling. r?#perftest → WIP: Bug 2030161 - Use 20 browser cycles when running Speedometer 3 tests with ETW profiling. r?#perftest
Attachment #9584717 - Attachment is obsolete: true
Attachment #9574239 - Attachment is obsolete: true
Attachment #9574240 - Attachment is obsolete: true
Attachment #9574241 - Attachment is obsolete: true
Attachment #9574242 - Attachment is obsolete: true
Attachment #9574243 - Attachment is obsolete: true
Attachment #9574245 - Attachment is obsolete: true
Attachment #9584664 - Attachment is obsolete: true
Attachment #9584664 - Attachment is obsolete: false
Attachment #9574238 - Attachment description: WIP: Bug 2030161 - Add xperf ETW profiling support for Windows Raptor tests. r?#perftest → Bug 2030161 - Add xperf ETW profiling support for Windows Raptor tests. r?#perftest
Attachment #9574244 - Attachment description: WIP: Bug 2030161 - Add transform for ETW profiling. r?#perftest → Bug 2030161 - Add transform for ETW profiling. r?#perftest
Attachment #9586823 - Attachment description: WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows → WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest
Attachment #9586823 - Attachment description: WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest → Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest
Whiteboard: [fxp]
Blocks: 2042905

Comment on attachment 9584664 [details]
WIP: Bug 2030161 - Create labelled and compact versions of the ETW profile with profiler-edit. r?#perftest

Revision D299443 was moved to bug 2042905. Setting attachment 9584664 [details] to obsolete.

Attachment #9584664 - Attachment is obsolete: true
Attachment #9574244 - Attachment description: Bug 2030161 - Add transform for ETW profiling. r?#perftest → Bug 2030161 - Add transform and Autoland tasks for ETW profiling. r?#perftest
Attachment #9574238 - Attachment description: Bug 2030161 - Add xperf ETW profiling support for Windows Raptor tests. r?#perftest → WIP: Bug 2030161 - Add xperf ETW profiling support for Windows Raptor tests. r?#perftest
Attachment #9574244 - Attachment description: Bug 2030161 - Add transform and Autoland tasks for ETW profiling. r?#perftest → WIP: Bug 2030161 - Add transform and Autoland tasks for ETW profiling. r?#perftest
Attachment #9586823 - Attachment description: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest → WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest
Attachment #9574238 - Attachment description: WIP: Bug 2030161 - Add xperf ETW profiling support for Windows Raptor tests. r?#perftest → Bug 2030161 - Add xperf ETW profiling support for Windows Raptor tests. r?#perftest
Attachment #9574244 - Attachment description: WIP: Bug 2030161 - Add transform and Autoland tasks for ETW profiling. r?#perftest → Bug 2030161 - Add transform and Autoland tasks for ETW profiling. r?#perftest
Attachment #9586823 - Attachment description: WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest → Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest
Attachment #9574238 - Attachment description: Bug 2030161 - Add xperf ETW profiling support for Windows Raptor tests. r?#perftest → Bug 2030161 - Add Xperf (ETW) profiling support for Windows Raptor tests. r?#perftest
Attachment #9586823 - Attachment description: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest → WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest
Attachment #9574244 - Attachment description: Bug 2030161 - Add transform and Autoland tasks for ETW profiling. r?#perftest → WIP: Bug 2030161 - Add transform and Autoland tasks for ETW profiling. r?#perftest
Attachment #9574238 - Attachment description: Bug 2030161 - Add Xperf (ETW) profiling support for Windows Raptor tests. r?#perftest → WIP: Bug 2030161 - Add Xperf (ETW) profiling support for Windows Raptor tests. r?#perftest
Attachment #9574238 - Attachment description: WIP: Bug 2030161 - Add Xperf (ETW) profiling support for Windows Raptor tests. r?#perftest → Bug 2030161 - Add Xperf (ETW) profiling support for Windows Raptor tests. r?#perftest
Attachment #9574244 - Attachment description: WIP: Bug 2030161 - Add transform and Autoland tasks for ETW profiling. r?#perftest → Bug 2030161 - Add transform and Autoland tasks for ETW profiling. r?#perftest
Attachment #9586823 - Attachment description: WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest → Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest
Attachment #9586823 - Attachment description: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest → WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest
Attachment #9596163 - Attachment description: WIP: Bug 2030161 - Support chromium-as-release Speedometer 3 Profiles on Windows. r?#perftest → Bug 2030161 - Support chromium-as-release Speedometer 3 Profiles on Windows. r?#perftest
Attachment #9586823 - Attachment description: WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest → Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest
See Also: → 2047451
Attachment #9574244 - Attachment description: Bug 2030161 - Add transform and Autoland tasks for ETW profiling. r?#perftest → Bug 2030161 - Add transform and Autoland tasks for Speedometer 3 native profiling on Windows. r?#perftest
Attachment #9596163 - Attachment description: Bug 2030161 - Support chromium-as-release Speedometer 3 Profiles on Windows. r?#perftest → WIP: Bug 2030161 - Support chromium-as-release Speedometer 3 Profiles on Windows. r?#perftest
Attachment #9586823 - Attachment description: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest → WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest
Attachment #9596163 - Attachment description: WIP: Bug 2030161 - Support chromium-as-release Speedometer 3 Profiles on Windows. r?#perftest → Bug 2030161 - Support chromium-as-release Speedometer 3 Profiles on Windows. r?#perftest
Attachment #9586823 - Attachment description: WIP: Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest → Bug 2030161 - Update perfdocs to include info on native profiling on Windows. r?#perftest
Attachment #9574238 - Attachment description: Bug 2030161 - Add Xperf (ETW) profiling support for Windows Raptor tests. r?#perftest → WIP: Bug 2030161 - Add Xperf (ETW) profiling support for Windows Raptor tests. r?#perftest
Attachment #9574238 - Attachment description: WIP: Bug 2030161 - Add Xperf (ETW) profiling support for Windows Raptor tests. r?#perftest → Bug 2030161 - Add Xperf (ETW) profiling support for Windows Raptor tests. r?#perftest
Pushed by animalan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2d3f535a6fa4 https://hg.mozilla.org/integration/autoland/rev/56a9e4aa9efb Add Xperf (ETW) profiling support for Windows Raptor tests. r=perftest-reviewers,kshampur https://github.com/mozilla-firefox/firefox/commit/3b47aab54439 https://hg.mozilla.org/integration/autoland/rev/dfb6bded4e24 Add transform and Autoland tasks for Speedometer 3 native profiling on Windows. r=perftest-reviewers,kshampur https://github.com/mozilla-firefox/firefox/commit/5d43bc46abb9 https://hg.mozilla.org/integration/autoland/rev/daf56cd32356 Support chromium-as-release Speedometer 3 Profiles on Windows. r=perftest-reviewers,kshampur https://github.com/mozilla-firefox/firefox/commit/4ecaa0eefe39 https://hg.mozilla.org/integration/autoland/rev/dfe2c2006c99 Update perfdocs to include info on native profiling on Windows. r=perftest-reviewers,kshampur
Blocks: 2050259
Blocks: 2050994
Blocks: 2058526
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: