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

Issue 2720353002: Flush stability file after initialization (Closed)

Created:
3 years, 9 months ago by manzagop (departed)
Modified:
3 years, 9 months ago
CC:
chromium-reviews, bcwhite
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Flush stability file after initialization Maximize the chance of persisting minimal information (version details) in stability files. This is to defend against system instability issues for which the system would not persist the in memory content. BUG=620813 Review-Url: https://codereview.chromium.org/2720353002 Cr-Commit-Position: refs/heads/master@{#455133} Committed: https://chromium.googlesource.com/chromium/src/+/e7ea29da6f1af5d6c75be744254558786100ef8f

Patch Set 1 #

Total comments: 3

Patch Set 2 : Set up as an experiment #

Total comments: 2

Patch Set 3 : Merge #

Patch Set 4 : Address rkaplow comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -1 line) Patch
M chrome/browser/chrome_browser_field_trials_desktop.cc View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M components/browser_watcher/features.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/browser_watcher/features.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
manzagop (departed)
Please have a look. I am thinking this should be unconditional.
3 years, 9 months ago (2017-02-28 22:00:23 UTC) #2
Sigurður Ásgeirsson
This should be happening at early startup, which is a sensitive performance path. Flushing a ...
3 years, 9 months ago (2017-02-28 23:20:31 UTC) #3
manzagop (departed)
Would you be ok with running this change under a short term canary-only experiment to ...
3 years, 9 months ago (2017-03-01 22:40:21 UTC) #4
Sigurður Ásgeirsson
Yeah, that'd be a super-fun experiment. Talk to Chris, who knows who now cares about^W^Wmeasures ...
3 years, 9 months ago (2017-03-01 22:44:54 UTC) #5
bcwhite
https://codereview.chromium.org/2720353002/diff/1/chrome/browser/chrome_browser_field_trials_desktop.cc File chrome/browser/chrome_browser_field_trials_desktop.cc (right): https://codereview.chromium.org/2720353002/diff/1/chrome/browser/chrome_browser_field_trials_desktop.cc#newcode184 chrome/browser/chrome_browser_field_trials_desktop.cc:184: ::FlushViewOfFile(global_tracker->allocator()->data(), 0U); How about making this a method off ...
3 years, 9 months ago (2017-03-06 13:59:17 UTC) #7
manzagop (departed)
Thanks! Another look? https://codereview.chromium.org/2720353002/diff/1/chrome/browser/chrome_browser_field_trials_desktop.cc File chrome/browser/chrome_browser_field_trials_desktop.cc (right): https://codereview.chromium.org/2720353002/diff/1/chrome/browser/chrome_browser_field_trials_desktop.cc#newcode184 chrome/browser/chrome_browser_field_trials_desktop.cc:184: ::FlushViewOfFile(global_tracker->allocator()->data(), 0U); On 2017/03/06 13:59:17, bcwhite ...
3 years, 9 months ago (2017-03-06 16:46:26 UTC) #8
manzagop (departed)
Hi Rob, Could you have an OWNERS' look at: chrome\browser\chrome_browser_field_trials_desktop.cc tools\metrics\histograms\histograms.xml Thanks! Pierre
3 years, 9 months ago (2017-03-06 16:47:09 UTC) #10
Sigurður Ásgeirsson
lgtm
3 years, 9 months ago (2017-03-06 17:45:28 UTC) #11
rkaplow
lgtm https://codereview.chromium.org/2720353002/diff/20001/components/browser_watcher/features.cc File components/browser_watcher/features.cc (right): https://codereview.chromium.org/2720353002/diff/20001/components/browser_watcher/features.cc#newcode12 components/browser_watcher/features.cc:12: const base::Feature kStabilityDebuggingFlushFeature{ wouldn't mind one-liners explaining what ...
3 years, 9 months ago (2017-03-07 05:35:06 UTC) #12
manzagop (departed)
Thanks! Going ahead with submission. https://codereview.chromium.org/2720353002/diff/20001/components/browser_watcher/features.cc File components/browser_watcher/features.cc (right): https://codereview.chromium.org/2720353002/diff/20001/components/browser_watcher/features.cc#newcode12 components/browser_watcher/features.cc:12: const base::Feature kStabilityDebuggingFlushFeature{ On ...
3 years, 9 months ago (2017-03-07 15:24:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2720353002/60001
3 years, 9 months ago (2017-03-07 15:24:58 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/e7ea29da6f1af5d6c75be744254558786100ef8f
3 years, 9 months ago (2017-03-07 18:10:47 UTC) #19
bcwhite
3 years, 9 months ago (2017-03-07 18:37:26 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/2720353002/diff/1/chrome/browser/chrome_brows...
File chrome/browser/chrome_browser_field_trials_desktop.cc (right):

https://codereview.chromium.org/2720353002/diff/1/chrome/browser/chrome_brows...
chrome/browser/chrome_browser_field_trials_desktop.cc:184:
::FlushViewOfFile(global_tracker->allocator()->data(), 0U);
On 2017/03/06 16:46:26, manzagop wrote:
> On 2017/03/06 13:59:17, bcwhite wrote:
> > How about making this a method off of GlobalActivityTracker so it can be
> > cross-platform and reusable.
> > 
> > Perhaps with a boolean "synchronous" flag that waits for the flush?
> 
> I guess GlobalActivityTracker would have a flush that calls to the allocator's
> flush that only has an effect if it's a FilePersistentMemoryAllocator? And the
> actual flushing would be in base::MemoryMappedFile?
> 
> If you agree, maybe we can start with this and in parallel, have another CL to
> add flushing to base::MemoryMappedFile?

Yeah...  It would have to be a virtual method on the PMA.  Best to do that in a
different CL.  I'll look into it.

Powered by Google App Engine
This is Rietveld 408576698