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

Issue 958473003: Asynchronously pre-fault the native library pages. (Closed)

Created:
5 years, 10 months ago by Benoit L
Modified:
5 years, 7 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Torne
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Asynchronously pre-fault the native library pages. This can lead to an improvement up to 350ms out of 3400 for "time to navigation commit". See the linked bug for the details. BUG=460438

Patch Set 1 #

Patch Set 2 : Read the library from native code. #

Patch Set 3 : . #

Patch Set 4 : Whitespace. #

Messages

Total messages: 7 (1 generated)
Benoit L
Hello Simon, Primiano, Here is the CL adding pre-faulting for the native libraries used in ...
5 years, 9 months ago (2015-03-02 09:27:17 UTC) #2
Primiano Tucci (use gerrit)
I had some initial discussion with Torne and Simon. At a first glance, it feels ...
5 years, 9 months ago (2015-03-03 20:03:07 UTC) #3
chromium-reviews
On Tue, Mar 3, 2015 at 9:03 PM, <primiano@chromium.org> wrote: > I had some initial ...
5 years, 9 months ago (2015-03-04 10:05:28 UTC) #4
Torne
The linker defines lots of magic symbols that have the starts/ends of various sections, not ...
5 years, 9 months ago (2015-03-04 10:21:50 UTC) #5
Primiano Tucci (use gerrit)
> Also, > as discussed by chat with Primiano, I believe that it is better ...
5 years, 9 months ago (2015-03-04 10:53:43 UTC) #6
chromium-reviews
5 years, 9 months ago (2015-03-04 10:57:00 UTC) #7
Thank you for the feedback. I will iterate on the patch then, no need to
review this version.

On Wed, Mar 4, 2015 at 11:53 AM, <primiano@chromium.org> wrote:

> Also,
>> as discussed by chat with Primiano, I believe that it is better to keep
>> the
>> pages not referenced, so that they are the first one being evicted by the
>> kernel in case of memory pressure.
>>
>
> That is precisely the reason why I was suggesting to fork().
> If you do the trick in the forked process, they will be referenced only
> for the
> time that takes to your process to run and once you terminate it (i.e.
> after the
> loop) they will be unreferenced again.
>
>  AFAIK, fork() is not in the NDK.
>>
> AFAIK we use fork (actually, clone()) every single time crhome crashes and
> breakpad kicks in.
> See the breakpad/src/client/linux/handler/exception_handler.cc line 489
>
> https://codereview.chromium.org/958473003/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698