Performance Triage

From MozillaWiki
Jump to: navigation, search


Idea.png
If you have any feedback/suggestions/questions regarding the performance triage process, you can share them in #perf-triage, or reach out to Dave Hunt or Frank Doty.

Nomination

Bugzilla

To (re)nominate a bug for triage, set the Performance Impact flag in Bugzilla to ?

This can be found by clicking Show Advanced Fields followed by Set bug flags when entering a new bug:

Bugzilla performance nomination on new bug form.png

Or by expanding the Tracking section when editing an existing bug:

Screenshot 2022-02-24 at 19.53.54.png

GitHub

To nominate a bug for triage, add the Performance label to an issue. This can be done by filing an new issue with the "Performance issue" template:

Screenshot of file a "Performance issue" template on GitHub

Or by opening an existing issue on GitHub and selecting the label from the right-hand bar:

Screenshot of adding a performance label on GitHub

Currently, only the following GitHub repositories are supported:

Queries

Performance triage

Full Query
ID Summary Status
1677509 SendReceiveMouseInputEvent often blocks the main thread of the parent process NEW
1826576 CSS filter() with invert() and hue-rotate() results in sluggish scrolling on Wikipedia NEW
1893881 randomly massive memory usage with browser freeze UNCONFIRMED
1894286 Multiple gigabytes of tiny detached windows UNCONFIRMED
1896500 Memory Leak on newest version. 14 task manager occurrences from one tab open using over a gig of memory. Laptop is overheating and only fix is reset computer. UNCONFIRMED
1897637 Firefox consumes 65 GB RAM UNCONFIRMED
1900669 Mozilla is using too much memory, keeps crashing UNCONFIRMED
1900881 ASan Nightly memory leak on certain webpages UNCONFIRMED
1907716 Firefox used up most of my system RAM UNCONFIRMED
1909985 ram usage went to 95+% UNCONFIRMED
1912945 The browser is using up a lot of my ram UNCONFIRMED
1913404 High buildup of memory usage when using the Youtube.com website UNCONFIRMED
1913582 Very high memory usage, Leaks all system RAM and quits UNCONFIRMED
1914510 Firefox on Windows consuming twice as much RAM as Chromium UNCONFIRMED
1914762 Firefox low memory mamanagement needs work. UNCONFIRMED
1916021 Ever increasing ram usage on mac UNCONFIRMED
1917774 controld.com - Blank section for a few seconds when scrolling past "Standard Configurations" NEW
1918854 Opening the WebGPU conformonce test suite page spends 2seconds on the parent process NEW
1918876 Stuttering when using multiple windows UNCONFIRMED
1920917 www.capcut.com - Toolbar leaving a white trail when it hides while scrolling down NEW
1921589 BHR-detected hang UNCONFIRMED
1921757 Firefox is using too much memory - 4GB. 4 Add-ons UNCONFIRMED
1922234 High shared memory usage on lagosjumpradio.com NEW
1922534 Firefox takes 100% of one CPU core for each facebook tab opened UNCONFIRMED
1922886 Firefox very slow on Windows ARM! UNCONFIRMED
1923257 Memory leaks in Firefox 115 on Alma Linux 9.4. REOPENED
1923433 https://share.firefox.dev/3ZWmNSV, opened two letterboxd links when it started lagging really bad, lots of lagging when opening sites recently as well. UNCONFIRMED
1923941 Firefox stops responding, 23 seconds in gfxDWriteFontList::ReadFaceNamesForFamily UNCONFIRMED
1924193 Scrolling in vertical tabs is super slow and janky NEW
1924220 Apple Silicon Firefox Memory Leak UNCONFIRMED
1924642 Parent process and content processes sometimes consume lots of CPU (Tons of IPCOut — PContent::Msg_ScriptError) UNCONFIRMED
1925226 High memory usage UNCONFIRMED
1925271 eaglercraftx1-8.github.io - Game is lagging NEW
1925359 Running Speedometer 3 in Firefox uses 60% more CPU than in Chrome NEW
1925480 Fenix shouldn't use `nsToolkitProfileService` to identify a profile folder NEW
1925736 12GB+ memory leak in an extension. About:memory shows tons of similar data:image /png base64 URIs (Was: Memory leak in Ubuntu 24.04 // Firefox 131.0.2) UNCONFIRMED
1926657 Additional Tabs not loading in background while working on an existing tab UNCONFIRMED
1926871 etoland.co.kr - Page elements take longer to load NEW
1927021 [meta] Network pageload performance NEW
1927028 Intermittent crash when opening new tab (private mode) UNCONFIRMED
1927053 e.issuu.com - Magazine pages are not fully loaded and navigation is laggy NEW
1927084 map.epfl.ch - Laggy when trying to navigate on the map NEW
1927243 Extreme amounts of memory usage causing my system to freeze UNCONFIRMED
1927365 [politiquera.com] Loading website cause a performance warning NEW
1928090 Wiki page caused high CPU and RAM usage permanently UNCONFIRMED
1928791 jquery on SP3-dev-mode has rapid increase in memory and appears to spend a lot of time around CC (and is slower than chrome) NEW
1928948 vizzy.io - The browser is slowed down and eventually stops responding NEW
1929076 Facebook Text & Chat SLOW. unsuably slow, since autoupdate to 132 UNCONFIRMED
1929399 VERY SLOW AFTER ONLY A FEW MINUTES UNCONFIRMED
1929443 Jira button animations cause sustained high Firefox CPU usage NEW
1929479 Downloading fonts from https://fonts.google.com/icons janks the content-process and spends 700ms on the parent-process NEW
1929575 since update 115.17.0esr (64 bits) my computer freezes and firefox takes 100% of the memory UNCONFIRMED
1930031 memory leak? UNCONFIRMED
1930110 Decreased performance for Firefox 132 inside of Docker NEW
1931051 Firefox freezes on arch linux UNCONFIRMED
1931071 High CPU usage and mouse cursor lag when moving cursor rapidly over YouTube video player area in Firefox NEW
1931371 Slow poor scrolling performance when using dual monitors. UNCONFIRMED
1931473 Consuming all available memory while playing audio on macOS ASSIGNED
1931602 Firefox working-set size increases over time -- Fail to release pages? UNCONFIRMED
1931634 Firefox uses ~8GB (or more) to load https://www.w3schools.com/html/html_favicon.asp, Chrome tops out at 2GB NEW
1931716 Browser Kept Eating up RAM to the max, stopping the specific process in the task manager fix the issue temporarily. UNCONFIRMED
1931717 High OOM rate in YouTube live streams NEW
1931792 Codepne demo (https://codepen.io/tfrere/pen/yLmZELm?editors=0010) has constant increase in memory and periodically spends multiple-seconds in CC on Nightly NEW
1931896 atlassian.net - Performance issues with multiple tabs opened NEW
1931914 Firefox 133 betas repeatedly use excessive memory and hang when releasing NEW
1932080 Memory leaks with WebExtensions UNCONFIRMED
1932607 nypost.com - Opening articles in multiple tabs crashes the browser (not responding) NEW
1933102 >5s launch times on a modern system with SSD NEW
1933273 Update xsimd to new version 9cb09c4065a9cee34a425a3f48fbb6d823f1ff16 from 2024-11-24 18:40:03 NEW

69 Total; 69 Open (100%); 0 Resolved (0%); 0 Verified (0%);


Performance triage (pending-needinfo)

Full Query
ID Summary Status
1870532 Firefox 120.0.1 grabs 100% of cpu resources and freezes UNCONFIRMED
1880287 tiktok.com - Live videos stop working after a few minutes, stuck loading NEW
1882916 Firefox consumes a lot of CPU and makes me Mac M2 hang for a good 15 seconds UNCONFIRMED
1883475 huge amount of memory storage (constantly) idk why pls help/................................................................................................................................................. UNCONFIRMED
1883507 Memory usage is too high 23GB and up to 60% CPU usage. UNCONFIRMED
1883669 Memory Problem UNCONFIRMED
1884296 Firefox is using lots of memory when only having several tabs open UNCONFIRMED
1885796 Use to many Ram UNCONFIRMED
1891345 Enourmous RAM usage (60Gig) UNCONFIRMED
1893080 Uses a lot of ram, literally a lot even for less number of tabs opened UNCONFIRMED
1893459 Memory Leak (Isolated Web Container) UNCONFIRMED
1898319 firefox slows down, needs relaunch to restore throughput UNCONFIRMED
1908857 www3.nhk.or.jp - The website is loaded after 1-2 seconds of blank page NEW
1912758 Extreme CPU usage spike when typing into text fields UNCONFIRMED
1913407 the browser go crazy with cpu usage recently https://share.firefox.dev/3yIbAKI UNCONFIRMED
1914733 YouTube Freezing and consuming CPU usage UNCONFIRMED
1918065 High CPU/RAM utilisation using Firefox ESR without internet connectivity UNCONFIRMED

17 Total; 17 Open (100%); 0 Resolved (0%); 0 Verified (0%);


Recently opened bugs with performance keywords in the summary

Full Query
ID Summary Status
1930972 Enable indirect draws in WebGPU (set `dom.webgpu.indirect-draw.enabled` to `true` by default) NEW
1931252 Memory leak with String.split or String.substring UNCONFIRMED
1931342 Add a ML page in https://performance.mozilla.org/ NEW
1931470 Summarizer Perf test ASSIGNED
1931476 Quadtree-ts demo is slower in Nightly NEW
1931590 slow/lost mousemove events when using pointer lock on Mac/Linux UNCONFIRMED
1931629 WebGPU: implement `clip-distances` device feature NEW
1931630 WebGPU: implement `float32-blendable` device feature NEW
1931757 multi-second janks when trying to scroll NEW
1931929 Hit MOZ_CRASH(Buffer is destroyed) at /third_party/rust/wgpu-core/src/track/mod.rs:264 ASSIGNED
1931985 Add urlbar query perf tests that can run in automation/CI NEW
1932015 [wpt-sync] Sync PR 49254 - Mark three new dialog tests as slow tests NEW
1932054 Activate `browser.ml.checkForMemory` NEW
1932073 Document how to write a new perf test NEW
1932138 JS demo (https://www.fxhash.xyz/generative/slug/box-runner) is slower in Nightly (spends a lot of time in js::PropMapTable::addToCache NEW
1932240 FlydOO Website is horribly Janky NEW
1932334 TikTok web app content transitions are slower (compared to transitioning in a browser) NEW
1932407 Inference Engine: Memory-Efficient Model Downloading NEW
1932408 Inference Engine: Memory Efficent model initialization NEW
1932433 ML Perftest, update memory metrics to use correct memory snapshot function NEW
1932434 Update credentials management model perftest to use optimal number of threads NEW
1932474 Memory leak (Assuming GPU Pid related) UNCONFIRMED
1932696 create MLSuggest perf test on feature NEW
1932780 Translations Performance Impacted By Mutation Observer Changes ASSIGNED
1932811 Codepen demo (https://codepen.io/towc/pen/rNEVwx) is 7x slower in Nightly in gfx-heavy part of the profile NEW
1932861 running mach lint --linter android-{lint,test} --warnings --fix --outgoing bookmarks/central deadlocks on "mach build faster" NEW
1933061 [GPU-canvas] Rapid memory increase on a Playcanvas demo with deliberate injection of simple error NEW
1933125 Ensure Translations Settings Page Reloads Correctly on Refresh NEW
1933202 Very bad canvas2d performance on pie.org NEW
1933299 Add Slack notify to android-startup-test NEW
1933317 WebGPU: 1-component (`{s,u}{int,norm}{8,16}`, `float16`) and `unorm8x4-bgra` vertex formats are missing NEW
1933328 WebGPU: Handle 2024-08 renames in image copy APIs ASSIGNED
1933356 DNS timings in PerformanceNavigationTiming interface are implausible short UNCONFIRMED
1933369 Inconsistent WebAssembly RuntimeError: "too many array elements" vs "unaligned memory access" with different compiler settings UNCONFIRMED
1933548 Default `GPUProgrammableStage.constants` to `{}` ASSIGNED
1933557 new Map([[fiber, expirationTime]]) is 7x slower than Chrome, affects scheduleWork on TodoMVC-React-Redux NEW
1933648 The order of execution of nsIMemoryReporters during grabbing a memory report is not deterministic ASSIGNED

37 Total; 37 Open (100%); 0 Resolved (0%); 0 Verified (0%);


Triage process

Introduction

The goal of performance triage is to identify the extent to which bugs impact the performance of our products, and to move these bugs towards an actionable state. The goal is not to diagnose or fix bugs during triage. We triage bugs that have been nominated for triage and bugs in the Core::Performance component that do not have the performance impact project flag set.

During triage we may do any/all of the following:

  • Request further information from the reporter (such as a profile)
  • Set the performance impact project flag
  • Add performance keywords
  • Move the bug to a more appropriate component

Who is responsible for triage?

Everyone is welcome to take part in triage. By default, everyone on the performance team is enrolled in triage rotation, but we also have participants from outside the team.

How do I schedule a triage meeting?

If you are on triage duty, you will receive an invitation as a reminder to schedule the triage meeting on the shared performance calendar with the nominated sheriffs invited at a time that works for them. The responsibility of scheduling the meeting falls to the lead sheriff. Once a triage meeting has been scheduled, it’s a good idea to remove the reminder event from the calendar to avoid confusion. It’s a good idea to use the shared calendar, as this increases the visibility of the performance triage and allows other members of the team to contribute or observe the process.

What if a sheriff is unavailable?

The rotation script is not perfect, and doesn’t know when people are on PTO or otherwise unavailable. If the lead sheriff is available, it is their responsibility to either schedule the triage with the remaining available sheriff or to identify a suitable substitute for the unavailable sheriff(s). If the lead sheriff is unavailable, this responsibility passes onto the remaining available sheriffs.

How do I run a triage meeting?

The following describes the triage process to follow during the meeting:

  1. Ask if others would prefer you to share your screen. This can be especially helpful for those new to triage.
  2. Open the first triage query to show bugs nominated for triage or in the Core::Performance component without the performance impact project flag set. The bugs are sorted from oldest to newest. For each bug in the list, follow these steps:
    • Bugs that look like tasks that were filed by members of the Performance team will generally need to be moved to the Core::Performance Engineering component.
    • For defects: Determine if the bug is reproducible and actionable. If not, add a needinfo for the reporter asking for more information, set the performance impact project flag to pending-needinfo, and then move onto the next bug. We have a template that you can modify as needed.
    • For all bugs (including enhancements):
  3. Open the second triage query to show bugs that are waiting further information to determine the performance impact. The bugs are sorted from oldest to newest. For each bug in the list, follow these steps:
    • If the performance impact project flag was set to pending-needinfo less than 2 weeks ago, move onto the next bug.
    • If the performance impact project flag was set to pending-needinfo more than 2 weeks ago but less than 2 months ago, consider adding a needinfo for either: another reporter of the issue, someone with access to the appropriate platform(s) to attempt to reproduce the issue, or a relevant subject matter expert.
    • If the performance impact project flag was set to pending-needinfo more than 2 months ago, close the bug as inactive. You can modify the inactive bug template as needed.
  4. If time permits, open the third triage query to show recently opened bugs with performance related keywords in the summary. If any of these look like performance bugs, they can either be triaged the same way as bugs in the initial query or they can be nominated for triage in a subsequent meeting.

What if things don't go as expected?

Don't panic! The triage process is not expected to be perfect, and can improve with your feedback. Maybe the result of the triage calculator doesn't feel right, or you find a scenario that's not covered in these guidelines. In this case we recommend that you bring it up in #perf-triage, or consider scheduling a short meeting with some triage leads (you can see some recent leads in the triage rotation). If in doubt, leave a comment on the bug with your thoughts and move on. There's a chance someone will respond, but if not the next performance triage sheriffs may have some other ideas.

How do I determine the performance impact project flag?

The performance impact project flag is used to indicate a bug’s relationship to the performance of our products. It can be applied to all bugs, and not only defects. The triage calculator should be used to help determine the most appropriate value for this flag. In addition to setting the performance impact project flag, make sure to use the “Copy Bugzilla Comment” button and paste this as a comment on the bug.

If you do not have enough information to set the performance impact project flag, open a needinfo request against an appropriate individual (such as a reporter), and set the performance impact project flag to pending-needinfo.

For more information about what this flag, and it's settings mean see this blog post.

How do I determine the performance keywords?

There are several performance related keywords, which can be helpful to understand how our performance issues are distributed, or whenever there’s a concerted effort to improve a particular aspect of our products. The triage calculator may recommend keywords to set, and by typing “perf:” in the keywords field in Bugzilla, you will see the available options. Select all that apply to the bug.

How do I determine the correct Bugzilla component?

Ideally we would only have bugs in the Core::Performance component that are the responsibility of the engineers in the performance team. For performance bugs to have the best chance of being fixed, it's important to assign them to the correct component. In some cases the correct component will be obvious from the bug summary, description, or steps to reproduce. In other cases, you may need to do a bit more work to identify the component. For example, if there's a profile associated with the bug, you could see where the majority of time is being spent using the category annotations.

How do I read a performance profile?

It's useful to be able to understand a profile generated by the Firefox Profiler, and hopefully someone in the triage meeting will be able to help. If you find an interesting profile, or just want to understand how to use them to analyse a performance problem, we encourage you to post a link to the profile (or bug) in #joy-of-profiling where someone will be happy to help. The profile may even be analysed during one of the regular "Joy of Profiling" open sessions that can be found on the Performance Office Hours calendar.

Triage calculator

The Performance Impact Calculator was developed to assist in identifying and applying the performance impact project flag and performance keywords consistently. If you have feedback or would like to suggest changes to this tool, please share these in the #perf-triage Matrix channel.

Triage rotation

The sheriffs are allocated on a weekly basis, which is published here. The rotation is generated by this script.

Templates

New bug

This template is included in the description for new bugs opened in the Core::Performance component. If a bug is opened in another component and then moved to Core::Performance, this template can be used as needed to request additional information from the reporter.

### Basic information

Steps to Reproduce:


Expected Results:


Actual Results:


---

### Performance recording (profile)

Profile URL:
(If this report is about slow performance or high CPU usage, please capture a performance profile by following the instructions at https://profiler.firefox.com/. Then upload the profile and insert the link here.)

#### System configuration:

OS version:
GPU model:
Number of cores: 
Amount of memory (RAM): 

### More information

Please consider attaching the following information after filing this bug, if relevant:

 - Screenshot / screen recording
 - Anonymized about:memory dump, for issues with memory usage
 - Troubleshooting information: Go to about:support, click "Copy text to clipboard", paste it to a file, save it, and attach the file here.

---

Thanks so much for your help.

Moved to Core::Performance

This bug was moved into the Performance component. Reporter, could you make sure the following information is on this bug?

 - For slowness or high CPU usage, capture a profile with http://profiler.firefox.com/ , upload it and share the link here.
 - For memory usage issues, capture a memory dump from about:memory and attach it to this bug.
 - Troubleshooting information: Go to about:support, click "Copy raw data to clipboard", paste it into a file, save it, and attach the file here.

Thank you.

No longer able to reproduce

This bug doesn’t seem to happen anymore in current versions of Firefox. Please reopen or file a new bug if you see it again.

No response from reporter

With no answer from the reporter, we don’t have enough data to reproduce and/or fix this issue. Please reopen or file a new bug with more information if you see it again.

Expected behaviour

This is expected behavior. Please reopen or file a new bug if you think otherwise.

Website issue

According to the investigation, this is a website issue. Please reopen or file a new bug if you think otherwise.