Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Issue 165433003: PnaclCoordinator: Use llc's module-splitting for pexe compilation (Closed)

Created:
6 years, 10 months ago by Derek Schuff
Modified:
6 years, 10 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, raymes+watch_chromium.org, teravest+watch_chromium.org, yzshen+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, binji, ihf+watch_chromium.org, JF
Visibility:
Public.

Description

PnaclCoordinator: Use llc's module-splitting for pexe compilation When there is more than 1 core in the system, request extra temp files and use LLC's StreamInitWithSplit rpc to enable module splitting. If the RPC fails, fall back to StreamInitWithOverrides. Add a private Pepper interface to get the cpu count rather than duplicating base::SysInfo in the plugin. TEST=browser_tests --gtest_filter=NaClBrowserTstPnacl.* BUG= https://code.google.com/p/nativeclient/issues/detail?id=3777 R=jschuh@chromium.org, jvoung@chromium.org, teravest@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251458

Patch Set 1 #

Patch Set 2 : make modules_used explicit #

Total comments: 6

Patch Set 3 : get num procs from the browser process #

Patch Set 4 : comments, remove printfs #

Total comments: 6

Patch Set 5 : fix include on windows #

Patch Set 6 : review #

Patch Set 7 : retry upload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -41 lines) Patch
M components/nacl/browser/nacl_host_message_filter.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/browser/nacl_host_message_filter.cc View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M components/nacl/common/nacl_host_messages.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 2 chunks +3 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc View 1 2 3 4 5 6 chunks +26 lines, -10 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc View 1 2 3 4 5 8 chunks +116 lines, -26 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Derek Schuff
jvoung: everything bbudge: PPAPI API owners
6 years, 10 months ago (2014-02-14 00:19:08 UTC) #1
jvoung (off chromium)
otherwise LGTM, modulo the printfs https://codereview.chromium.org/165433003/diff/30001/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc File ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc (right): https://codereview.chromium.org/165433003/diff/30001/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc#newcode204 ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc:204: coordinator->split_module_count_ = std::min(4, cpus); ...
6 years, 10 months ago (2014-02-14 00:46:48 UTC) #2
Derek Schuff
+jschuh for new IPC (we can't get the number of cores in the renderer, so ...
6 years, 10 months ago (2014-02-14 01:01:50 UTC) #3
Derek Schuff
I'll also note that we can't just let llc/ld decide how many cores to use ...
6 years, 10 months ago (2014-02-14 01:03:35 UTC) #4
jvoung (off chromium)
https://codereview.chromium.org/165433003/diff/120001/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc File ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc (right): https://codereview.chromium.org/165433003/diff/120001/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc#newcode42 ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc:42: Plugin* plugin) { extra space https://codereview.chromium.org/165433003/diff/120001/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc#newcode176 ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc:176: std::copy(split_arg.begin(), split_arg.end(), ...
6 years, 10 months ago (2014-02-14 01:43:44 UTC) #5
Derek Schuff
https://codereview.chromium.org/165433003/diff/120001/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc File ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc (right): https://codereview.chromium.org/165433003/diff/120001/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc#newcode42 ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc:42: Plugin* plugin) { On 2014/02/14 01:43:44, jvoung (cr) wrote: ...
6 years, 10 months ago (2014-02-14 06:11:23 UTC) #6
jschuh
Lgtm on the ipc security side--it's just a benign numeric value. However, you should ping ...
6 years, 10 months ago (2014-02-14 15:41:32 UTC) #7
dmichael (off chromium)
Punting this over to teravest@ for ppapi OWNERS review; He's been closer to the NaCl ...
6 years, 10 months ago (2014-02-14 15:47:24 UTC) #8
Derek Schuff
On 2014/02/14 15:41:32, Justin Schuh wrote: > Lgtm on the ipc security side--it's just a ...
6 years, 10 months ago (2014-02-14 16:51:46 UTC) #9
jvoung (off chromium)
new pnacl_* changes lgtm
6 years, 10 months ago (2014-02-14 17:33:53 UTC) #10
teravest
lgtm
6 years, 10 months ago (2014-02-14 17:36:24 UTC) #11
Derek Schuff
The CQ bit was checked by dschuff@chromium.org
6 years, 10 months ago (2014-02-14 18:03:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dschuff@chromium.org/165433003/470001
6 years, 10 months ago (2014-02-14 18:04:02 UTC) #13
jschuh
On 2014/02/14 16:51:46, Derek Schuff wrote: > On 2014/02/14 15:41:32, Justin Schuh wrote: > > ...
6 years, 10 months ago (2014-02-14 18:25:11 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 20:39:51 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=264559
6 years, 10 months ago (2014-02-14 20:39:52 UTC) #16
Derek Schuff
The CQ bit was checked by dschuff@chromium.org
6 years, 10 months ago (2014-02-14 22:31:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dschuff@chromium.org/165433003/470001
6 years, 10 months ago (2014-02-14 22:34:30 UTC) #18
Derek Schuff
Committed patchset #7 manually as r251458 (presubmit successful).
6 years, 10 months ago (2014-02-15 00:37:09 UTC) #19
commit-bot: I haz the power
6 years, 10 months ago (2014-02-15 00:54:25 UTC) #20
Message was sent while issue was closed.
Retried try job too often on win_rel for step(s) unit_tests
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698