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

Issue 83803003: Adds an helper class to shard mspdbsrv. (Closed)

Created:
7 years, 1 month ago by Sébastien Marchand
Modified:
7 years ago
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Adds an helper class to shard mspdbsrv. Currently there's a single instance of mspdbsrv shared between all the linkers. This can cause some OOMs if too many linkers are accessing it in parallel. There's an undocumented environment variable which allows to specify the mspdbsrv endpoint to bound to a linker: _MSPDBSRV_ENDPOINT_ , by setting this variable to a unique value per target you ensure that one different instance of mspdbsrv will be used for every target. Currently I only use this value for the .exe targets, I keep the shared one for the other ones. This is hidden behind a 'GYP_USE_SEPARATE_MSPDBSRV' environment variable. Patch by sebmarchand@chromium.org R=scottmg@chromium.org, siggi@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1801

Patch Set 1 : #

Total comments: 27

Patch Set 2 : #

Total comments: 26

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -7 lines) Patch
M pylib/gyp/win_tool.py View 1 2 3 4 5 4 chunks +42 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Sébastien Marchand
Please take a first look (I still need to unittest this, do some benchmark etc ...
7 years, 1 month ago (2013-11-22 23:27:18 UTC) #1
scottmg
Nice, thanks for trying this out, this could be very useful. I'm not sure how ...
7 years, 1 month ago (2013-11-23 00:07:26 UTC) #2
Sébastien Marchand
Thanks for the quick review, here's some comments/notes for myself for when I'll have access ...
7 years, 1 month ago (2013-11-23 04:30:14 UTC) #3
scottmg
https://codereview.chromium.org/83803003/diff/10002/pylib/gyp/win_tool.py File pylib/gyp/win_tool.py (right): https://codereview.chromium.org/83803003/diff/10002/pylib/gyp/win_tool.py#newcode144 pylib/gyp/win_tool.py:144: mspdbsrv_helper = MsPdbSrvHelper(args, env) On 2013/11/23 04:30:14, Sébastien Marchand ...
7 years, 1 month ago (2013-11-23 04:44:12 UTC) #4
Sigurður Ásgeirsson
nice! https://codereview.chromium.org/83803003/diff/10002/pylib/gyp/win_tool.py File pylib/gyp/win_tool.py (right): https://codereview.chromium.org/83803003/diff/10002/pylib/gyp/win_tool.py#newcode33 pylib/gyp/win_tool.py:33: linkers linking a .exe target. This helps to ...
7 years ago (2013-11-25 16:29:56 UTC) #5
Sébastien Marchand
https://codereview.chromium.org/83803003/diff/10002/pylib/gyp/win_tool.py File pylib/gyp/win_tool.py (right): https://codereview.chromium.org/83803003/diff/10002/pylib/gyp/win_tool.py#newcode33 pylib/gyp/win_tool.py:33: linkers linking a .exe target. This helps to reduce ...
7 years ago (2013-11-25 19:24:39 UTC) #6
Sébastien Marchand
Here's a second patchset, PTAnL. Still no unittest, I'll try to find a way to ...
7 years ago (2013-11-26 00:37:56 UTC) #7
scottmg
lgtm with changes below, but looks better to me if you can come up with ...
7 years ago (2013-11-26 00:44:54 UTC) #8
Sigurður Ásgeirsson
nice! https://codereview.chromium.org/83803003/diff/110001/pylib/gyp/win_tool.py File pylib/gyp/win_tool.py (right): https://codereview.chromium.org/83803003/diff/110001/pylib/gyp/win_tool.py#newcode22 pylib/gyp/win_tool.py:22: _LINK_EXE_PDB_ARG = re.compile('/PDB\:(?P<pdb>[^ ]+\.exe\.pdb)', Do you need to ...
7 years ago (2013-11-26 14:31:04 UTC) #9
Sébastien Marchand
Thanks, Siggi PTAnL. Any idea for a test ? I was planning to test the ...
7 years ago (2013-11-27 19:26:56 UTC) #10
scottmg
Sorry for going around in circles on this, but this morning it occurred to me ...
7 years ago (2013-11-27 20:00:44 UTC) #11
Sébastien Marchand
Thanks. Yeah we don't have to start mspdbsrv manually, it's just that the default timeout ...
7 years ago (2013-11-27 20:29:54 UTC) #12
scottmg
https://codereview.chromium.org/83803003/diff/190001/pylib/gyp/win_tool.py File pylib/gyp/win_tool.py (right): https://codereview.chromium.org/83803003/diff/190001/pylib/gyp/win_tool.py#newcode118 pylib/gyp/win_tool.py:118: mspdbsrv_helper = WinTool.MsPdbSrvHelper(env, args) this can just be a ...
7 years ago (2013-11-27 20:33:40 UTC) #13
Sébastien Marchand
Thanks ! I guess the unittest for this would just be to check that _MSPDBSRV_ENDPOINT_ ...
7 years ago (2013-11-27 20:53:43 UTC) #14
Sigurður Ásgeirsson
so clean, so nice! lgtm https://codereview.chromium.org/83803003/diff/220001/pylib/gyp/win_tool.py File pylib/gyp/win_tool.py (right): https://codereview.chromium.org/83803003/diff/220001/pylib/gyp/win_tool.py#newcode22 pylib/gyp/win_tool.py:22: _LINK_EXE_PDB_ARG = re.compile('/PDB:(?P<pdb>.+\.exe\.pdb)', re.IGNORECASE) ...
7 years ago (2013-11-27 20:55:37 UTC) #15
scottmg
LGTM I'm not sure how useful a test for this would be, so I think ...
7 years ago (2013-11-27 21:02:56 UTC) #16
Sébastien Marchand
Thanks for the quick reviews ! I'm not sure that a test would be really ...
7 years ago (2013-11-27 21:07:16 UTC) #17
scottmg
On 2013/11/27 21:07:16, Sébastien Marchand wrote: > Thanks for the quick reviews ! I'm not ...
7 years ago (2013-11-27 21:09:27 UTC) #18
scottmg
7 years ago (2013-11-27 21:21:58 UTC) #19
Message was sent while issue was closed.
Committed patchset #6 manually as r1801.

Powered by Google App Engine
This is Rietveld 408576698