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

Issue 2618483002: TabManager: Take min_free_kbytes into consideration when killing tabs. (Closed)

Created:
3 years, 11 months ago by cylee1
Modified:
3 years, 11 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TabManager: Take min_free_kbytes into consideration when killing tabs. On ChromeOS, kernel notifies Chrome when system gets into low memory condition. However the low memory calculation misses a parameter |min_free_kbytes| so the notification comes too late. A kernel fix is coming to fix the issue. On Chrome side, TabManager tries to recover memory to normal level. It mirrors the low memory calculation in kernel to know how many tabs to kill. So the missing parameter |min_free_kbytes| should be added back. In the future, try to consolidate the logic in kernel so TabManager doesn't need to do its own calculation. BUG=chromium:645512, chrome-os-partner:60498 TEST=cave,peppy,etc. Review-Url: https://codereview.chromium.org/2618483002 Cr-Commit-Position: refs/heads/master@{#442018} Committed: https://chromium.googlesource.com/chromium/src/+/38d3bfaf0e8fc3a763b2053b1fdb15a30ec28b15

Patch Set 1 #

Patch Set 2 : TabManager: Take min_free_kbytes into consideration when killing tabs. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M chrome/browser/memory/tab_manager_delegate_chromeos.cc View 2 chunks +11 lines, -2 lines 2 comments Download

Messages

Total messages: 22 (7 generated)
cylee1
3 years, 11 months ago (2017-01-04 19:10:37 UTC) #2
semenzato
It's fine if you wish to do it this way. But, as I may have ...
3 years, 11 months ago (2017-01-04 22:57:36 UTC) #5
cylee1
On 2017/01/04 22:57:36, semenzato wrote: > It's fine if you wish to do it this ...
3 years, 11 months ago (2017-01-04 23:50:22 UTC) #6
semenzato
On 2017/01/04 23:50:22, cylee1 wrote: > Or it's my misunderstanding. Do you mean I should ...
3 years, 11 months ago (2017-01-05 00:07:11 UTC) #7
sonnyrao
+1 Seems okay to me -- though I thought the kernel was still sending a ...
3 years, 11 months ago (2017-01-05 00:24:26 UTC) #9
bccheng
On 2017/01/05 00:24:26, sonnyrao wrote: > +1 Seems okay to me -- though I thought ...
3 years, 11 months ago (2017-01-05 05:12:36 UTC) #10
semenzato
On 2017/01/05 05:12:36, bccheng wrote: > On 2017/01/05 00:24:26, sonnyrao wrote: > > +1 Seems ...
3 years, 11 months ago (2017-01-05 16:07:38 UTC) #11
cylee1
I respect to your comment, but I tend to look it in a different way: ...
3 years, 11 months ago (2017-01-05 20:26:42 UTC) #12
cylee1
https://codereview.chromium.org/2618483002/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2618483002/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode267 chrome/browser/memory/tab_manager_delegate_chromeos.cc:267: // eliminate the duplication here. On 2017/01/05 00:24:26, sonnyrao ...
3 years, 11 months ago (2017-01-05 20:31:13 UTC) #13
semenzato
On 2017/01/05 20:26:42, cylee1 wrote: > I respect to your comment, but I tend to ...
3 years, 11 months ago (2017-01-05 22:14:12 UTC) #14
semenzato
+1
3 years, 11 months ago (2017-01-05 22:24:00 UTC) #15
Georges Khalil
lgtm
3 years, 11 months ago (2017-01-06 14:33:30 UTC) #16
cylee1
Hi Luigi, Thanks ! I kind of got your point, but I think my implementation ...
3 years, 11 months ago (2017-01-06 18:51:31 UTC) #17
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/2618483002/20001
3 years, 11 months ago (2017-01-06 18:52:06 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 20:08:39 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/38d3bfaf0e8fc3a763b2053b1fdb...

Powered by Google App Engine
This is Rietveld 408576698