[SERVER-66765] Enable the SpiderMonkey JIT by default Created: 25/May/22  Updated: 06/Dec/22  Resolved: 31/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Mohammad Dashti (Inactive) Assignee: Backlog - Query Execution
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-32683 Turn off the spidermonkey jit by default Closed
related to SERVER-61008 Upgrade MozJS Closed
related to SERVER-66498 Disable Baseline JIT for MozJS Closed
Assigned Teams:
Query Execution
Participants:
Linked BF Score: 150

 Description   

Previously, we saw a lot of crashes when SpiderMonkey 60 JIT was enabled and we ended up turning it off in SERVER-32683 (BF-7559, BF-7548, BF-7140, BF-6782). Now that we've upgraded to SpiderMonkey 91, this issue might be gone.

As part of this ticket, we want to investigate the possibility of turning JIT on by default.

We have one proof point that SpiderMonkey Baseline JIT was unintentionally enabled on master between SERVER-61008 (master@26bab13) and SERVER-66498 (master@13ec926). However, we didn't see any crashes related to JIT, except for BUILD-14966 (which was expected due to a notarization issue).

In addition, enabling Baseline JIT has shown a noticeable performance improvement for some performance tests (e.g., BF-25338), which justifies enabling it by default.

There are several options for SpiderMonkey JIT (e.g., Baseline JIT, ION JIT, etc.) As part of this ticket, we want to enable the Baseline JIT by default. But, it makes sense to also evaluate the impact of more aggressive JIT engines in SpiderMonkey 91 and check whether they cause crashes or not.


Generated at Thu Feb 08 06:06:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.