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

Issue 17029013: Added /LARGEADDRESSAWARE linker flag on Windows. (Closed)

Created:
7 years, 6 months ago by Ken Russell (switch to Gerrit)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, apatrick_chromium, jbauman, Sigurður Ásgeirsson, chrisha, Roger McFarlane (Chromium)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Added /LARGEADDRESSAWARE linker flag on Windows. Allows Unreal Engine Epic Citadel demo transpiled to Emscripten to run in Chrome on 32-bit Windows. BUG=239803 TEST=http://www.unrealengine.com/html5 on Windows Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206560

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M build/common.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Ken Russell (switch to Gerrit)
Please review. Tested with the Epic Citadel demo; works. I'm not sure the flag is ...
7 years, 6 months ago (2013-06-14 18:58:29 UTC) #1
rvargas (doing something else)
I'm not that familiar with the current structure of common.gypi, but it looks like the ...
7 years, 6 months ago (2013-06-14 20:04:45 UTC) #2
cpu_(ooo_6.6-7.5)
lgtm
7 years, 6 months ago (2013-06-14 22:51:11 UTC) #3
cpu_(ooo_6.6-7.5)
kbr, it would be nice if in 6 weeks or so you post the UMA ...
7 years, 6 months ago (2013-06-14 22:53:58 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kbr@chromium.org/17029013/1
7 years, 6 months ago (2013-06-14 23:31:41 UTC) #5
Ken Russell (switch to Gerrit)
On 2013/06/14 22:53:58, cpu wrote: > kbr, it would be nice if in 6 weeks ...
7 years, 6 months ago (2013-06-14 23:32:09 UTC) #6
Sébastien Marchand
On 2013/06/14 23:32:09, kbr wrote: > On 2013/06/14 22:53:58, cpu wrote: > > kbr, it ...
7 years, 6 months ago (2013-06-15 00:03:46 UTC) #7
jschuh
On 2013/06/14 20:04:45, rvargas wrote: > I'm not that familiar with the current structure of ...
7 years, 6 months ago (2013-06-15 04:21:00 UTC) #8
commit-bot: I haz the power
Change committed as 206560
7 years, 6 months ago (2013-06-15 05:02:36 UTC) #9
EricAgu
On 2013/06/15 04:21:00, Justin Schuh wrote: > On 2013/06/14 20:04:45, rvargas wrote: > > I'm ...
7 years, 6 months ago (2013-06-15 09:53:16 UTC) #10
Sigurður Ásgeirsson
This'll kill SyzyASAN, unless we make this ASAN-conditional, or bump the shadow memory back up. ...
7 years, 6 months ago (2013-06-15 13:52:04 UTC) #11
chrisha
+cc laforge When we dropped the shadow memory to 256MB rather than 512MB the OOM ...
7 years, 6 months ago (2013-06-17 14:36:49 UTC) #12
laforge
Could someone elaborate on why LAA will "kill" SyzyASAN, and more specifically why we shouldn't ...
7 years, 6 months ago (2013-06-17 15:43:14 UTC) #13
Sigurður Ásgeirsson
One of the first memory optimizations was to drop the shadow memory size by a ...
7 years, 6 months ago (2013-06-17 15:47:42 UTC) #14
Sigurður Ásgeirsson
On Mon, Jun 17, 2013 at 10:36 AM, Chris Hamilton <chrisha@chromium.org>wrote: > +cc laforge > ...
7 years, 6 months ago (2013-06-17 15:49:44 UTC) #15
chrisha
Sorry for not being more clear to begin with. SyzyASAN currently refuses to run with ...
7 years, 6 months ago (2013-06-17 15:54:51 UTC) #16
rvargas (doing something else)
On 2013/06/15 04:21:00, Justin Schuh wrote: > On 2013/06/14 20:04:45, rvargas wrote: > > I'm ...
7 years, 6 months ago (2013-06-17 18:20:19 UTC) #17
laforge
The breakdown on Canary is 53% x64 and 47% x86. That being said, for SyzyASAN, ...
7 years, 6 months ago (2013-06-17 18:30:35 UTC) #18
kerz_chromium
If there's an ounce of risk, I think we should put to 30. We're already ...
7 years, 6 months ago (2013-06-17 18:37:18 UTC) #19
Ken Russell (switch to Gerrit)
On 2013/06/17 18:37:18, kerz_chromium wrote: > If there's an ounce of risk, I think we ...
7 years, 6 months ago (2013-06-17 18:54:37 UTC) #20
Sigurður Ásgeirsson
On Mon, Jun 17, 2013 at 11:54 AM, Chris Hamilton <chrisha@chromium.org>wrote: > Sorry for not ...
7 years, 6 months ago (2013-06-17 18:59:18 UTC) #21
chrisha
Okay... I'll make this conditional on the 'asan' GYP variable for now, reverting to non-LAA ...
7 years, 6 months ago (2013-06-17 20:29:18 UTC) #22
chrisha
This is being addressed here: https://codereview.chromium.org/17348007/ On Mon, Jun 17, 2013 at 4:29 PM, Chris ...
7 years, 6 months ago (2013-06-18 21:45:02 UTC) #23
laforge
7 years, 6 months ago (2013-06-18 21:51:07 UTC) #24
Message was sent while issue was closed.
On 2013/06/18 21:45:02, chrisha wrote:
> This is being addressed here: https://codereview.chromium.org/17348007/
> 
> On Mon, Jun 17, 2013 at 4:29 PM, Chris Hamilton <mailto:chrisha@chromium.org>
wrote:
> > Okay... I'll make this conditional on the 'asan' GYP variable for now,
> > reverting to non-LAA for ASAN builds.
> >
> > On Mon, Jun 17, 2013 at 2:59 PM, Sigurður Ásgeirsson
<mailto:siggi@chromium.org>
> wrote:
> >> On Mon, Jun 17, 2013 at 11:54 AM, Chris Hamilton
<mailto:chrisha@chromium.org>
> >> wrote:
> >>>
> >>> Sorry for not being more clear to begin with.
> >>>
> >>> SyzyASAN currently refuses to run with binaries that are LAA because
> >>> we hard code the shadow memory to 256MB (1/8th of the 2GB addressable
> >>> memory of a non-LAA binary). This is a hard check in the code itself
> >>> and the process will will simply die when loading the ASAN RTL into
> >>> binaries that are LAA. We did this because Chrome was not previously
> >>> LAA and this cut the size of the shadow memory in half, vastly
> >>> reducing the OOM error rate on the canary channel.
> >>>
> >>> LAA was recently enabled for Chrome on trunk, thus we have two options:
> >>>
> >>> (1) Make SyzyASAN LAA as well, and double the shadow memory size.
> >>> (2) Disable LAA for SyzyASAN builds.
> >>>
> >>> On 32-bit systems LAA apparently can give a process up to 3GB of
> >>> addressable space, or 2.5GB after shadow memory.
> >>
> >>
> >> 32 bit Windows will only do this if you boot with a flag that's
non-default:
> >>
>
http://msdn.microsoft.com/en-us/library/windows/hardware/ff556232%28v=vs.85%2....
> >> If this non-default boot-time flag is not set, then LAA will have no effect
> >> on a 32 bit system.
> >> So in practice, users on 32 bit systems will have 2G-512Mb, save for the
> >> three to seven supernerds that have turned this on :).
> >>
> >>> On 64-bit systems
> >>> they can get the full 4GB, or 3.5GB after shadow. If the OOM was due
> >>> to the process running out of addressable space then doubling the
> >>> shadow memory and enabling LAA should likely be a wash. If the memory
> >>> pressure is more due to actually running out of memory due to the
> >>> large shadow memory, then the OOM will increase.
> >>>
> >>> I was thinking it might be worthwhile to do (1) in order to find out.
> >>> If things are markedly worse we can go back to approach (2). Or, if
> >>> opinions are strong we can simply do (2) to begin with.
> >>>
> >>> Chris
> >>>
> >>> On Mon, Jun 17, 2013 at 11:42 AM, Anthony LaForge
<mailto:laforge@google.com>
> >>> wrote:
> >>> > Could someone elaborate on why LAA will "kill" SyzyASAN, and more
> >>> > specifically why we shouldn't first validate the impact of LAA, in a
> >>> > real
> >>> > Canary, before reverting back to a state that was generally worse for
> >>> > the
> >>> > vast majority of our users (hence the 3X change in OOM).
> >>> >
> >>> > Kind Regards,
> >>> >
> >>> > Anthony Laforge
> >>> > Technical Program Manager
> >>> > Mountain View, CA
> >>> >
> >>> >
> >>> > On Mon, Jun 17, 2013 at 7:36 AM, Chris Hamilton
<mailto:chrisha@chromium.org>
> >>> > wrote:
> >>> >>
> >>> >> +cc laforge
> >>> >>
> >>> >> When we dropped the shadow memory to 256MB rather than 512MB the OOM
> >>> >> error rate dropped by a factor of 3. I'd be curious to see the OOM
> >>> >> rate with LAA enabled and the shadow memory bumped back up to 512MB.
> >>> >> It shouldn't be as high as before because each process will have twice
> >>> >> the addressable memory space. Depending on the results of this we can
> >>> >> either keep the shadow at 512MB, or disable LAA for SyzyASAN builds
> >>> >> and drop our shadow memory back down. Seem reasonable?
> >>> >>
> >>> >> Chris
> >>> >>
> >>> >> On Sat, Jun 15, 2013 at 9:51 AM, Sigurður Ásgeirsson
> >>> >> <mailto:siggi@chromium.org>
> >>> >> wrote:
> >>> >> > This'll kill SyzyASAN, unless we make this ASAN-conditional, or bump
> >>> >> > the
> >>> >> > shadow memory back up.
> >>> >> >
> >>> >> > On Jun 15, 2013 1:02 AM, <mailto:commit-bot@chromium.org> wrote:
> >>> >> >>
> >>> >> >> Change committed as 206560
> >>> >> >>
> >>> >> >> https://chromiumcodereview.appspot.com/17029013/
> >>> >> >
> >>> >> > --
> >>> >> > You received this message because you are subscribed to the Google
> >>> >> > Groups
> >>> >> > "syzygy-team" group.
> >>> >> > To unsubscribe from this group and stop receiving emails from it,
> >>> >> > send
> >>> >> > an
> >>> >> > email to mailto:syzygy-team+unsubscribe@chromium.org.
> >>> >> > For more options, visit
> >>> >> > https://groups.google.com/a/chromium.org/groups/opt_out.
> >>> >> >
> >>> >> >
> >>> >
> >>> >
> >>> > --
> >>> > You received this message because you are subscribed to the Google
> >>> > Groups
> >>> > "syzygy-team" group.
> >>> > To unsubscribe from this group and stop receiving emails from it, send
> >>> > an
> >>> > email to mailto:syzygy-team+unsubscribe@chromium.org.
> >>> > For more options, visit
> >>> > https://groups.google.com/a/chromium.org/groups/opt_out.
> >>> >
> >>> >
> >>
> >>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "syzygy-team" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an
> >> email to mailto:syzygy-team+unsubscribe@chromium.org.
> >> For more options, visit
> >> https://groups.google.com/a/chromium.org/groups/opt_out.
> >>
> >>

LGTM

Powered by Google App Engine
This is Rietveld 408576698