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

Issue 2969453002: Add FD exhaustion logging for Chrome OS. (Closed)

Created:
3 years, 5 months ago by teravest
Modified:
3 years, 5 months ago
Reviewers:
Lei Zhang, Daniel Erat
CC:
chromium-reviews, danakj+watch_chromium.org, gavinp+memory_chromium.org, vmpstr+watch_chromium.org, puneetster
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add FD exhaustion logging for Chrome OS. Users are encountering a large number of file descriptors being used, causing us to hit the soft limit and eventually crash. This change logs where those FDs point to as a measure for chasing down the source of this bug. I was able to trigger this logic by leaking file descriptors from the task manager code and confirmed that the file descriptors were correctly written to the user log. BUG=733718 R=derat@chromium.org, thestig@chromium.org Review-Url: https://codereview.chromium.org/2969453002 . Cr-Commit-Position: refs/heads/master@{#483563} Committed: https://chromium.googlesource.com/chromium/src/+/89e298f70872077a0e2325f57b6cafc5c7a36463

Patch Set 1 #

Patch Set 2 : Add FD exhaustion logging for Chrome OS. #

Patch Set 3 : with setrlimit #

Total comments: 6

Patch Set 4 : add stack data for breakpad #

Total comments: 10

Patch Set 5 : shrink buffer to 32K, walk FDs backward #

Patch Set 6 : fixes for thestig #

Total comments: 5

Patch Set 7 : fix for derat #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -0 lines) Patch
M base/memory/shared_memory_helper.cc View 1 2 3 4 5 6 2 chunks +57 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
teravest
Dan, let me know what you think of this change. We could also just call ...
3 years, 5 months ago (2017-06-29 19:05:50 UTC) #2
teravest
setrlimit() logic added to simplify dealing with merging and getting breakpad data.
3 years, 5 months ago (2017-06-29 19:18:04 UTC) #3
Daniel Erat
https://codereview.chromium.org/2969453002/diff/40001/base/memory/shared_memory_helper.cc File base/memory/shared_memory_helper.cc (right): https://codereview.chromium.org/2969453002/diff/40001/base/memory/shared_memory_helper.cc#newcode116 base/memory/shared_memory_helper.cc:116: rlim.rlim_cur = 16384; i think you meant for this ...
3 years, 5 months ago (2017-06-29 19:26:05 UTC) #4
teravest
I've added debug info to the stack as well. The stack size soft limit is ...
3 years, 5 months ago (2017-06-29 19:50:26 UTC) #5
Daniel Erat
lgtm
3 years, 5 months ago (2017-06-29 20:52:11 UTC) #6
teravest
3 years, 5 months ago (2017-06-29 21:02:57 UTC) #9
Lei Zhang
https://codereview.chromium.org/2969453002/diff/60001/base/memory/shared_memory_helper.cc File base/memory/shared_memory_helper.cc (right): https://codereview.chromium.org/2969453002/diff/60001/base/memory/shared_memory_helper.cc#newcode121 base/memory/shared_memory_helper.cc:121: static const char* kFileDataMarker = "FDATA"; Can this be ...
3 years, 5 months ago (2017-06-29 22:06:29 UTC) #10
teravest
Thanks for the quick review! https://codereview.chromium.org/2969453002/diff/60001/base/memory/shared_memory_helper.cc File base/memory/shared_memory_helper.cc (right): https://codereview.chromium.org/2969453002/diff/60001/base/memory/shared_memory_helper.cc#newcode121 base/memory/shared_memory_helper.cc:121: static const char* kFileDataMarker ...
3 years, 5 months ago (2017-06-29 22:17:44 UTC) #11
Daniel Erat
https://codereview.chromium.org/2969453002/diff/100001/base/memory/shared_memory_helper.cc File base/memory/shared_memory_helper.cc (right): https://codereview.chromium.org/2969453002/diff/100001/base/memory/shared_memory_helper.cc#newcode107 base/memory/shared_memory_helper.cc:107: int original_fd_limit = 16384; should this be updated below ...
3 years, 5 months ago (2017-06-29 22:23:24 UTC) #12
teravest
https://codereview.chromium.org/2969453002/diff/100001/base/memory/shared_memory_helper.cc File base/memory/shared_memory_helper.cc (right): https://codereview.chromium.org/2969453002/diff/100001/base/memory/shared_memory_helper.cc#newcode107 base/memory/shared_memory_helper.cc:107: int original_fd_limit = 16384; On 2017/06/29 22:23:24, Daniel Erat ...
3 years, 5 months ago (2017-06-29 22:37:05 UTC) #13
Daniel Erat
https://codereview.chromium.org/2969453002/diff/100001/base/memory/shared_memory_helper.cc File base/memory/shared_memory_helper.cc (right): https://codereview.chromium.org/2969453002/diff/100001/base/memory/shared_memory_helper.cc#newcode107 base/memory/shared_memory_helper.cc:107: int original_fd_limit = 16384; On 2017/06/29 22:37:05, teravest wrote: ...
3 years, 5 months ago (2017-06-29 22:41:26 UTC) #14
Lei Zhang
lgtm
3 years, 5 months ago (2017-06-29 22:47:02 UTC) #15
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/2969453002/120001
3 years, 5 months ago (2017-06-29 22:54:38 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/249071)
3 years, 5 months ago (2017-06-30 00:00:55 UTC) #20
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/2969453002/120001
3 years, 5 months ago (2017-06-30 00:35:42 UTC) #22
teravest
3 years, 5 months ago (2017-06-30 00:43:30 UTC) #24
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
89e298f70872077a0e2325f57b6cafc5c7a36463 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698