Replace mentions of "oom_adj" with "oom_score_adj" am: 74b4df95b4 am: 2c432eaf62 am: 8ae13ca324
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1607288 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I553ab21c2e461666414cdd43fe94601e6d3336b2
This commit is contained in:
commit
ca2012d0e8
15
lmkd.cpp
15
lmkd.cpp
|
|
@ -2123,10 +2123,10 @@ static int kill_one_process(struct proc* procp, int min_oom_score, enum kill_rea
|
|||
killinfo_log(procp, min_oom_score, rss_kb, kill_reason, mi, wi, tm);
|
||||
|
||||
if (kill_desc) {
|
||||
ALOGI("Kill '%s' (%d), uid %d, oom_adj %d to free %" PRId64 "kB; reason: %s", taskname, pid,
|
||||
uid, procp->oomadj, rss_kb, kill_desc);
|
||||
ALOGI("Kill '%s' (%d), uid %d, oom_score_adj %d to free %" PRId64 "kB; reason: %s",
|
||||
taskname, pid, uid, procp->oomadj, rss_kb, kill_desc);
|
||||
} else {
|
||||
ALOGI("Kill '%s' (%d), uid %d, oom_adj %d to free %" PRId64 "kB", taskname, pid,
|
||||
ALOGI("Kill '%s' (%d), uid %d, oom_score_adj %d to free %" PRId64 "kB", taskname, pid,
|
||||
uid, procp->oomadj, rss_kb);
|
||||
}
|
||||
|
||||
|
|
@ -2153,7 +2153,7 @@ out:
|
|||
}
|
||||
|
||||
/*
|
||||
* Find one process to kill at or above the given oom_adj level.
|
||||
* Find one process to kill at or above the given oom_score_adj level.
|
||||
* Returns size of the killed process.
|
||||
*/
|
||||
static int find_and_kill_process(int min_score_adj, enum kill_reasons kill_reason,
|
||||
|
|
@ -2798,15 +2798,14 @@ do_kill:
|
|||
|
||||
/* Log whenever we kill or when report rate limit allows */
|
||||
if (use_minfree_levels) {
|
||||
ALOGI("Reclaimed %ldkB, cache(%ldkB) and "
|
||||
"free(%" PRId64 "kB)-reserved(%" PRId64 "kB) below min(%ldkB) for oom_adj %d",
|
||||
ALOGI("Reclaimed %ldkB, cache(%ldkB) and free(%" PRId64 "kB)-reserved(%" PRId64 "kB) "
|
||||
"below min(%ldkB) for oom_score_adj %d",
|
||||
pages_freed * page_k,
|
||||
other_file * page_k, mi.field.nr_free_pages * page_k,
|
||||
zi.totalreserve_pages * page_k,
|
||||
minfree * page_k, min_score_adj);
|
||||
} else {
|
||||
ALOGI("Reclaimed %ldkB at oom_adj %d",
|
||||
pages_freed * page_k, min_score_adj);
|
||||
ALOGI("Reclaimed %ldkB at oom_score_adj %d", pages_freed * page_k, min_score_adj);
|
||||
}
|
||||
|
||||
if (report_skip_count > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue