New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 753985 link

Starred by 10 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

[wasm] compiling wasm in a worker is considerably slower in osx compared to windows

Project Member Reported by mtrofin@chromium.org, Aug 9 2017

Issue description

The problem was reported when running on the same hardware. The "in a web worker" part is important. 

I wonder if we somehow get less threads for our compilation when on osx. This should be relatively easy to validate without dual-boot-ing a mac box.
 
Cc: gdeepti@chromium.org titzer@chromium.org mtrofin@chromium.org binji@chromium.org
Components: Blink>JavaScript>WebAssembly
Owner: binji@chromium.org
Status: Assigned (was: Available)
Ben, are you set up on a mac to be able to try this out?
It seems like the browser embedding might be doling out fewer threads on OSX for some reason.

Mircea, who reported this to us?

Comment 2 by titzer@chromium.org, Aug 10 2017

I ran into this problem on MacOS as well. Using Chrome's profiling tools, it always seems like the compile tasks had 50% CPU utilization. I had surmised that we were spinning up too many threads and because of hyperthreading we were not overcommitting the CPUs, but I never got to look deeper into it.
Cc: gauravde...@gmail.com
Adding Gaurav, who reported the issue.

Note that deserialization is also slow in that same context (workers)
Please note that this issue can be easily reproduced using simple wasm in webworker which is attached in bug:
 https://bugs.chromium.org/p/chromium/issues/detail?id=811373

Note the difference between the last timestamp and first timestamp shown on console. This test case doesn't do anything useful and just a wasm loading example. 

This bug happens in chrome canary 66 as well. 
Cc: -mtrofin@chromium.org
Cc: bbudge@chromium.org ahaas@chromium.org
 Issue 813259  has been merged into this issue.
Labels: OS-Mac
Owner: bbudge@chromium.org
+ bbudge, Bill could you look at reproing this?
The speculation has been that it might be we're giving fewer threads to compile on OSX.

Comment 8 by bbudge@chromium.org, Feb 17 2018

I'll take a look.
Bill, wanted to re-up this on your radar.

Sign in to add a comment