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

Issue 311443002: elf_symbolizer: Use a process for max 4000 lookups and then restart (Closed)

Created:
6 years, 6 months ago by Daniel Bratell
Modified:
6 years, 6 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

elf_symbolizer: Use a process for max 4000 lookups and then restart addr2line processes keep growing as they are used so it's best to restart them every now and then to avoid making its internal caches so large that the computer runs out of RAM or the program becomes incredibly slow. I experimented with different counts. 10000 uses 50% more memory than 4000 for a marginal performance increase. 1000 uses a bit less memory but will be 10% slower. 3-4000 seems to be the sweat spot. BUG=379153 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275165

Patch Set 1 #

Total comments: 8

Patch Set 2 : Recycling: Addressed review comments. #

Total comments: 3

Patch Set 3 : addr2line count limit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -0 lines) Patch
M build/android/pylib/symbols/elf_symbolizer.py View 1 2 6 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Daniel Bratell
6 years, 6 months ago (2014-05-30 15:26:47 UTC) #1
Andrew Hayden (chromium.org)
Seems reasonable, but please do a quick double check on that value of 1000. https://codereview.chromium.org/311443002/diff/1/build/android/pylib/symbols/elf_symbolizer.py ...
6 years, 6 months ago (2014-05-30 15:42:29 UTC) #2
Primiano Tucci (use gerrit)
https://codereview.chromium.org/311443002/diff/1/build/android/pylib/symbols/elf_symbolizer.py File build/android/pylib/symbols/elf_symbolizer.py (right): https://codereview.chromium.org/311443002/diff/1/build/android/pylib/symbols/elf_symbolizer.py#newcode190 build/android/pylib/symbols/elf_symbolizer.py:190: self._max_requests_per_process = 1000 Two notes: You eventually want to ...
6 years, 6 months ago (2014-05-30 16:56:20 UTC) #3
Daniel Bratell
Won't that cause addr2line to potentially do a lot of extra work that is discarded, ...
6 years, 6 months ago (2014-05-30 18:20:33 UTC) #4
Primiano Tucci (use gerrit)
On 2014/05/30 18:20:33, Daniel Bratell wrote: > Won't that cause addr2line to potentially do a ...
6 years, 6 months ago (2014-06-02 10:30:03 UTC) #5
Daniel Bratell
https://codereview.chromium.org/311443002/diff/1/build/android/pylib/symbols/elf_symbolizer.py File build/android/pylib/symbols/elf_symbolizer.py (right): https://codereview.chromium.org/311443002/diff/1/build/android/pylib/symbols/elf_symbolizer.py#newcode190 build/android/pylib/symbols/elf_symbolizer.py:190: self._max_requests_per_process = 1000 On 2014/05/30 15:42:29, Andrew Hayden wrote: ...
6 years, 6 months ago (2014-06-04 15:31:16 UTC) #6
Andrew Hayden (chromium.org)
LGTM. Thanks for addressing the concerns.
6 years, 6 months ago (2014-06-04 16:14:38 UTC) #7
Primiano Tucci (use gerrit)
LGTM % 1 nit. Thanks https://codereview.chromium.org/311443002/diff/20001/build/android/pylib/symbols/elf_symbolizer.py File build/android/pylib/symbols/elf_symbolizer.py (right): https://codereview.chromium.org/311443002/diff/20001/build/android/pylib/symbols/elf_symbolizer.py#newcode197 build/android/pylib/symbols/elf_symbolizer.py:197: self._processed_symbols_count = 0 Move ...
6 years, 6 months ago (2014-06-05 08:57:44 UTC) #8
Daniel Bratell
https://codereview.chromium.org/311443002/diff/20001/build/android/pylib/symbols/elf_symbolizer.py File build/android/pylib/symbols/elf_symbolizer.py (right): https://codereview.chromium.org/311443002/diff/20001/build/android/pylib/symbols/elf_symbolizer.py#newcode197 build/android/pylib/symbols/elf_symbolizer.py:197: self._processed_symbols_count = 0 On 2014/06/05 08:57:45, Primiano Tucci wrote: ...
6 years, 6 months ago (2014-06-05 09:07:51 UTC) #9
Primiano Tucci (use gerrit)
Still LGTM https://codereview.chromium.org/311443002/diff/20001/build/android/pylib/symbols/elf_symbolizer.py File build/android/pylib/symbols/elf_symbolizer.py (right): https://codereview.chromium.org/311443002/diff/20001/build/android/pylib/symbols/elf_symbolizer.py#newcode197 build/android/pylib/symbols/elf_symbolizer.py:197: self._processed_symbols_count = 0 On 2014/06/05 09:07:52, Daniel ...
6 years, 6 months ago (2014-06-05 12:57:18 UTC) #10
Daniel Bratell
The CQ bit was checked by bratell@opera.com
6 years, 6 months ago (2014-06-05 13:31:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bratell@opera.com/311443002/40001
6 years, 6 months ago (2014-06-05 13:33:15 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 15:28:16 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 16:55:49 UTC) #14
Message was sent while issue was closed.
Change committed as 275165

Powered by Google App Engine
This is Rietveld 408576698