Changeset 277326 in webkit


Ignore:
Timestamp:
May 11, 2021 8:52:17 AM (3 years ago)
Author:
fpizlo@apple.com
Message:

Tune number of threads for AS
https://bugs.webkit.org/show_bug.cgi?id=225635

Reviewed by Mark Lam.

Using 4 GC markers (which really means 3 parallel GC worker threads -- the mutator thread is
the 4th), 2 DFG threads, and 2 FTL threads seems to be more optimal than going off ncpu.

~1% JetStream2 speed-up, ~1% Speedometer2 speed-up.

  • runtime/Options.cpp:

(JSC::overrideDefaults):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r277312 r277326  
     12021-05-10  Filip Pizlo  <fpizlo@apple.com>
     2
     3        Tune number of threads for AS
     4        https://bugs.webkit.org/show_bug.cgi?id=225635
     5
     6        Reviewed by Mark Lam.
     7
     8        Using 4 GC markers (which really means 3 parallel GC worker threads -- the mutator thread is
     9        the 4th), 2 DFG threads, and 2 FTL threads seems to be more optimal than going off ncpu.
     10
     11        ~1% JetStream2 speed-up, ~1% Speedometer2 speed-up.
     12
     13        * runtime/Options.cpp:
     14        (JSC::overrideDefaults):
     15
    1162021-05-10  Mark Lam  <mark.lam@apple.com>
    217
  • trunk/Source/JavaScriptCore/runtime/Options.cpp

    r277110 r277326  
    352352            Options::gcIncrementScale() = 0;
    353353    }
     354
     355#if PLATFORM(MAC) && CPU(ARM64)
     356    Options::numberOfGCMarkers() = 4;
     357    Options::numberOfDFGCompilerThreads() = 2;
     358    Options::numberOfFTLCompilerThreads() = 2;
     359#endif
    354360
    355361#if USE(BMALLOC_MEMORY_FOOTPRINT_API)
Note: See TracChangeset for help on using the changeset viewer.