New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 625851 link

Starred by 3 users

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Feature



Sign in to add a comment

Better prioritize Android processes for memory management

Project Member Reported by cylee@chromium.org, Jul 5 2016

Issue description

If ARC is enabled in ChromeOS, Chrome will sort tab processes and Android processes by their importance. The order is used for OOM score adjustment and process killing in low memory condition. 
Currently the sorting of android apps is coarse-grained, we need more information from Android side to better prioritize them.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Jul 25 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c2e58df8d48e216450dd83af783a3e5d97a6e329

commit c2e58df8d48e216450dd83af783a3e5d97a6e329
Author: cylee <cylee@chromium.org>
Date: Mon Jul 25 10:28:26 2016

TabManagerDelegate: Better prioritize ARC processes.

Add new fields "is_focused" and "last_active_time" in struct RunningAppProcessInfo of  process.mojom so Chrome knows how to prioritize Android processes better.

BUG=625851
TEST=minnie

Review-Url: https://codereview.chromium.org/2095413002
Cr-Commit-Position: refs/heads/master@{#407444}

[modify] https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329/chrome/browser/chromeos/arc/arc_process.cc
[modify] https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329/chrome/browser/chromeos/arc/arc_process.h
[modify] https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329/chrome/browser/chromeos/arc/arc_process_service.cc
[modify] https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329/chrome/browser/memory/tab_manager.cc
[modify] https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329/chrome/browser/memory/tab_manager.h
[modify] https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329/chrome/browser/memory/tab_manager_delegate_chromeos.cc
[modify] https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329/chrome/browser/memory/tab_manager_delegate_chromeos.h
[modify] https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc
[modify] https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329/components/arc/common/process.mojom

Components: Platform>ARC
Components: Platform>Apps>ARC

Sign in to add a comment