Commit Graph

939 Commits

Author SHA1 Message Date
Suren Baghdasaryan 7afa463978 lmkd: Do not kill perceptible apps due to low swap if above min wmark
Prevent kills of perceptible apps due to swap shortages unless system
free memory is below the min watermark. This prevents kills of important
apps when the system is recovering from the memory pressure.

Bug: 155709603
Test: memory stress test with multiple foreground apps
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Merged-In: I6beb4b55f8b4f7bc22818b5a7bdfa3adc6cd31c1
Change-Id: I6beb4b55f8b4f7bc22818b5a7bdfa3adc6cd31c1
2020-05-20 20:48:06 +00:00
Suren Baghdasaryan a911264fb8 lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498 am: deee65f222 am: 181ec2d13d am: b2dabba6a7
Change-Id: Iac1b3677b5b0bf12233abc7ed4b80569155d2c8b
2020-05-20 19:51:54 +00:00
Suren Baghdasaryan a5800bf298 lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba am: 025396b2c2 am: 95b5673a5d am: e26720e460
Change-Id: I2eb7274d93d6e30dfc962d9caa86807a65f01296
2020-05-20 19:51:38 +00:00
Suren Baghdasaryan 105df16e00 lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498 am: b0027daa8a am: 7f2ddf5ff0 am: e7f5cc3236
Change-Id: I99a4fad73858e15f8b5351cc28e4c7c6bcfe13c1
2020-05-20 19:51:10 +00:00
Automerger Merge Worker 2ed2feb714 Merge "lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba am: 3125ebc794 am: 4ad5bad680" into rvc-qpr-dev-plus-aosp am: c06ec0dda1
Change-Id: I3ac5179d9ab96ec2e5a672a8dd6173d030ce1afc
2020-05-20 19:49:57 +00:00
Suren Baghdasaryan 3b7b7a0ec3 lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498 am: b0027daa8a am: 10be4c368e am: 4b3f883545
Change-Id: I9955023d1a42aa36a9ba97a96efe1b075d6e4cdc
2020-05-20 19:48:53 +00:00
Suren Baghdasaryan cebee34f2d lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba am: 3125ebc794 am: 0b210fe185 am: 0a6313b062
Change-Id: I8860644e9ab3f873a15dc05f8a132d3b8c957646
2020-05-20 19:45:39 +00:00
Suren Baghdasaryan b2dabba6a7 lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498 am: deee65f222 am: 181ec2d13d
Change-Id: Id0067a07d68e58ec060c85fc17eab2ed0faa8143
2020-05-20 19:30:02 +00:00
Suren Baghdasaryan e26720e460 lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba am: 025396b2c2 am: 95b5673a5d
Change-Id: I41532b8ac4f46d884b4c02ca111aaf19b0efbf72
2020-05-20 19:29:37 +00:00
Suren Baghdasaryan e7f5cc3236 lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498 am: b0027daa8a am: 7f2ddf5ff0
Change-Id: I8b51e11c8d04f79e9dbf04e4e18bdd9738d4fcbe
2020-05-20 19:29:31 +00:00
Automerger Merge Worker c06ec0dda1 Merge "lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba am: 3125ebc794 am: 4ad5bad680" into rvc-qpr-dev-plus-aosp 2020-05-20 19:28:05 +00:00
Suren Baghdasaryan 4b3f883545 lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498 am: b0027daa8a am: 10be4c368e
Change-Id: Iac5ec8a8bc5795a65f3677c8e75d622d5e203404
2020-05-20 19:28:00 +00:00
Suren Baghdasaryan d8ea75515b lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba am: 3125ebc794 am: 4ad5bad680
Change-Id: I320e7252e9552dbcf6eceaa7922cee84c9ff2132
2020-05-20 19:28:00 +00:00
Suren Baghdasaryan 0a6313b062 lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba am: 3125ebc794 am: 0b210fe185
Change-Id: I1ee3a825afe27d569a6394ee8ce3bfb0a6da6ac5
2020-05-20 19:27:40 +00:00
Suren Baghdasaryan 48135c4cba lmkd: Do not kill perceptible apps due to low swap if above min wmark
Prevent kills of perceptible apps due to swap shortages unless system
free memory is below the min watermark. This prevents kills of important
apps when the system is recovering from the memory pressure.

Bug: 155709603
Test: memory stress test with multiple foreground apps
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I6beb4b55f8b4f7bc22818b5a7bdfa3adc6cd31c1
2020-05-20 12:22:07 -07:00
Suren Baghdasaryan fb1f592602 lmkd: Set the default free swap threshold to 10% for all devices
Lower the min swap threshold to 10% for all devices to limit kills while
swap still has enough space.

Bug: 155709603
Test: memory stress test with multiple foreground apps
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Merged-In: I443486763c034ed0603ea52b81c060c3969af9a5
Change-Id: I443486763c034ed0603ea52b81c060c3969af9a5
2020-05-20 12:21:34 -07:00
Suren Baghdasaryan 5c039b53d8 lmkd: Fix min_score_adj to exclude killing foreground processes
In the cases when foreground processes should not be killed
min_score_adjust should be set above PERCEPTIBLE_APP_ADJ to prevent such
kills.

Bug: 155709603
Test: memory stress test with multiple foreground apps
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Merged-In: If187654b8001ce843ec6085ccd2042d75a986dae
Change-Id: If187654b8001ce843ec6085ccd2042d75a986dae
2020-05-20 12:21:10 -07:00
Suren Baghdasaryan 181ec2d13d lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498 am: deee65f222
Change-Id: I70e72054d67ec0cdf01df87cff2453d5ae4e7746
2020-05-20 19:17:34 +00:00
Suren Baghdasaryan 95b5673a5d lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba am: 025396b2c2
Change-Id: I58c0ee0f8e1a4f9176749720bf6199912db20b49
2020-05-20 19:17:00 +00:00
Suren Baghdasaryan 7f2ddf5ff0 lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498 am: b0027daa8a
Change-Id: If41581e301554ecf24b97a89bb174303326a5c99
2020-05-20 19:16:25 +00:00
Suren Baghdasaryan 4ad5bad680 lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba am: 3125ebc794
Change-Id: I5ae3a21e6cc9f61806a66ab995e101f16674cee7
2020-05-20 19:16:06 +00:00
Suren Baghdasaryan 10be4c368e lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498 am: b0027daa8a
Change-Id: I6e2a4793cf262628a6788d5c0ecae1b30919ec61
2020-05-20 19:16:03 +00:00
Suren Baghdasaryan 0b210fe185 lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba am: 3125ebc794
Change-Id: I2c718dfb23f06010ce56c7bb9f8fdc346523494e
2020-05-20 19:15:57 +00:00
Suren Baghdasaryan f1fe0cd12c lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498
Change-Id: Ib6e4945c52293ab39f87b771dc675c2cf2cbaafb
2020-05-20 19:00:12 +00:00
Suren Baghdasaryan 1731180fcf lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba
Change-Id: Icbc09503221aa6262e76be047407fc6709416a99
2020-05-20 18:59:57 +00:00
Suren Baghdasaryan deee65f222 lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498
Change-Id: Ie1d59e0bd1b840a3cb6644682e69ae3a33b7206e
2020-05-20 18:59:54 +00:00
Suren Baghdasaryan 025396b2c2 lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba
Change-Id: I06966970b96007f50689aa0b100cd11ef1f610a5
2020-05-20 18:59:49 +00:00
Suren Baghdasaryan b0027daa8a lmkd: Set the default free swap threshold to 10% for all devices am: c2b228e498
Change-Id: I750cb3aa52c7341374ed692040d9ff88b5ae907c
2020-05-20 18:59:48 +00:00
Suren Baghdasaryan 3125ebc794 lmkd: Fix min_score_adj to exclude killing foreground processes am: 0e589f61ba
Change-Id: I1d8d38af4a50239721428bd2bff008cf1b00e198
2020-05-20 18:59:19 +00:00
Suren Baghdasaryan b458c715a6 [automerger skipped] lmkd: Enable stricter compiler checks am: 5096d16091 am: 2b90436606 -s ours am: 4f28667d38 -s ours am: df33958681 -s ours
am skip reason: Change-Id Ia802dbd7abb167d66b76390e269e4a4418ca5def with SHA-1 5096d16091 is in history

Change-Id: I9ca0d649f9c7a4705701e0b048aac9a99330ef85
2020-05-20 01:31:29 +00:00
Suren Baghdasaryan e8141facf4 [automerger skipped] lmkd: Remove unused variables and fix type mismatches am: dd7ec447ab am: 9cc5e9624f -s ours am: 6c907defc8 -s ours am: aabd90f698 -s ours
am skip reason: Change-Id I7f0839d803a6bf6532f077208ce54aba761dc9fe with SHA-1 dd7ec447ab is in history

Change-Id: I87943199b3fa0e6d2601eec142a8a70399ce08b2
2020-05-20 01:31:25 +00:00
Suren Baghdasaryan da94ed2a18 [automerger skipped] lmkd: enable ro.lmk.kill_timeout_ms to be used with kill notifications am: c7e51b7b2a am: c5969c34b2 -s ours am: 9b76491496 -s ours am: 5af3a0a53d -s ours
am skip reason: Change-Id Ia3eed3448fd6928a5e634c2737044722048b3578 with SHA-1 c7e51b7b2a is in history

Change-Id: I7cf917064712295ad1384e3a6f60cb4880393f8d
2020-05-20 01:31:23 +00:00
Suren Baghdasaryan 8dbaf44242 [automerger skipped] lmkd: polling code cleanup am: 3f84a211e5 am: 8a6cf251b8 -s ours am: b8af60cf35 -s ours am: 017406d886 -s ours
am skip reason: Change-Id If0674eda954a25f0f6c9188501ff77db8ba0813b with SHA-1 3f84a211e5 is in history

Change-Id: Ia197f2ad13f9f48a2cef189fcba3267072a798be
2020-05-20 01:31:22 +00:00
Automerger Merge Worker e7cc0a8201 [automerger skipped] Merge changes from topic "am-a5100bc1a1c340719c31abf373ae0c6d" into rvc-qpr-dev-plus-aosp am: f31871b1cf -s ours
am skip reason: Change-Id Ia802dbd7abb167d66b76390e269e4a4418ca5def with SHA-1 5096d16091 is in history

Change-Id: I99639579f81858b7dccfd24fe78099a995c30fa9
2020-05-20 01:30:22 +00:00
Suren Baghdasaryan 8b7bd638e1 [automerger skipped] lmkd: Enable stricter compiler checks am: 5096d16091 am: 2b90436606 am: 15b83b66d1 -s ours am: 6d78423053 -s ours
am skip reason: Change-Id Ia802dbd7abb167d66b76390e269e4a4418ca5def with SHA-1 e538ba2df6 is in history

Change-Id: Ib4e8b09d98a67cf533ffa3958679f5b6d486acdb
2020-05-20 01:29:14 +00:00
Suren Baghdasaryan 9c90a34793 [automerger skipped] lmkd: Remove unused variables and fix type mismatches am: dd7ec447ab am: 9cc5e9624f am: aabfa71492 -s ours am: 62d3403507 -s ours
am skip reason: Change-Id I7f0839d803a6bf6532f077208ce54aba761dc9fe with SHA-1 ed715a3424 is in history

Change-Id: Iaee17bbdb1adc682e2826d05f5afac34ce64f9aa
2020-05-20 01:29:12 +00:00
Suren Baghdasaryan 225122eb2b [automerger skipped] lmkd: enable ro.lmk.kill_timeout_ms to be used with kill notifications am: c7e51b7b2a am: c5969c34b2 am: de6c2612e2 -s ours am: 628a00239d -s ours
am skip reason: Change-Id Ia3eed3448fd6928a5e634c2737044722048b3578 with SHA-1 03dccf35a1 is in history

Change-Id: I68dfa02cf9555cda76272a39f0f1ab094a277b78
2020-05-20 01:29:10 +00:00
Suren Baghdasaryan 654689c399 [automerger skipped] lmkd: polling code cleanup am: 3f84a211e5 am: 8a6cf251b8 am: 0425267bf2 -s ours am: e282df7461 -s ours
am skip reason: Change-Id If0674eda954a25f0f6c9188501ff77db8ba0813b with SHA-1 9ca5334683 is in history

Change-Id: I7b2e26b36c31b091a29eb87be15570771a693dec
2020-05-20 01:29:08 +00:00
Suren Baghdasaryan df33958681 [automerger skipped] lmkd: Enable stricter compiler checks am: 5096d16091 am: 2b90436606 -s ours am: 4f28667d38 -s ours
am skip reason: Change-Id Ia802dbd7abb167d66b76390e269e4a4418ca5def with SHA-1 5096d16091 is in history

Change-Id: Ie6500c05e4371a05ef8f28ee4b5cf6c8c5ae7821
2020-05-20 01:04:41 +00:00
Suren Baghdasaryan aabd90f698 [automerger skipped] lmkd: Remove unused variables and fix type mismatches am: dd7ec447ab am: 9cc5e9624f -s ours am: 6c907defc8 -s ours
am skip reason: Change-Id I7f0839d803a6bf6532f077208ce54aba761dc9fe with SHA-1 dd7ec447ab is in history

Change-Id: I86097aaaa185e1464d63274c7507207449af0669
2020-05-20 01:04:39 +00:00
Suren Baghdasaryan 5af3a0a53d [automerger skipped] lmkd: enable ro.lmk.kill_timeout_ms to be used with kill notifications am: c7e51b7b2a am: c5969c34b2 -s ours am: 9b76491496 -s ours
am skip reason: Change-Id Ia3eed3448fd6928a5e634c2737044722048b3578 with SHA-1 c7e51b7b2a is in history

Change-Id: Ia1833cc968f9309d5976501ada418211977b6773
2020-05-20 01:04:38 +00:00
Suren Baghdasaryan 017406d886 [automerger skipped] lmkd: polling code cleanup am: 3f84a211e5 am: 8a6cf251b8 -s ours am: b8af60cf35 -s ours
am skip reason: Change-Id If0674eda954a25f0f6c9188501ff77db8ba0813b with SHA-1 3f84a211e5 is in history

Change-Id: Ia174bdf991fcece8cebc9073757c54e747085d59
2020-05-20 01:04:35 +00:00
Automerger Merge Worker f31871b1cf Merge changes from topic "am-a5100bc1a1c340719c31abf373ae0c6d" into rvc-qpr-dev-plus-aosp
* changes:
  [automerger skipped] lmkd: Enable stricter compiler checks am: 5096d16091 -s ours am: 0d423bd611 -s ours am: 84f06d35e3 -s ours
  [automerger skipped] lmkd: Remove unused variables and fix type mismatches am: dd7ec447ab -s ours am: 742af8a026 -s ours am: e2a6306736 -s ours
  [automerger skipped] lmkd: enable ro.lmk.kill_timeout_ms to be used with kill notifications am: c7e51b7b2a -s ours am: f0e2037d23 -s ours am: cd54a7cdf4 -s ours
  [automerger skipped] lmkd: polling code cleanup am: 3f84a211e5 -s ours am: 3c092ca721 -s ours am: 8a32051ccf -s ours
2020-05-20 01:04:17 +00:00
Suren Baghdasaryan 7bdf5ad280 [automerger skipped] lmkd: Enable stricter compiler checks am: 5096d16091 -s ours am: 0d423bd611 -s ours am: 84f06d35e3 -s ours
am skip reason: Change-Id Ia802dbd7abb167d66b76390e269e4a4418ca5def with SHA-1 e538ba2df6 is in history

Change-Id: I9a67c359118c31f76b283c3836dae6d2f9d79943
2020-05-20 01:04:11 +00:00
Suren Baghdasaryan 3daeb697c3 [automerger skipped] lmkd: Remove unused variables and fix type mismatches am: dd7ec447ab -s ours am: 742af8a026 -s ours am: e2a6306736 -s ours
am skip reason: Change-Id I7f0839d803a6bf6532f077208ce54aba761dc9fe with SHA-1 ed715a3424 is in history

Change-Id: I08f412f3db08c95561f97da0a48ecc3727344c8d
2020-05-20 01:04:09 +00:00
Suren Baghdasaryan 43b3a90315 [automerger skipped] lmkd: enable ro.lmk.kill_timeout_ms to be used with kill notifications am: c7e51b7b2a -s ours am: f0e2037d23 -s ours am: cd54a7cdf4 -s ours
am skip reason: Change-Id Ia3eed3448fd6928a5e634c2737044722048b3578 with SHA-1 03dccf35a1 is in history

Change-Id: I64e1adbefe516fa4941ab65a6e90b260019a0e09
2020-05-20 01:04:08 +00:00
Suren Baghdasaryan 147a5437de [automerger skipped] lmkd: polling code cleanup am: 3f84a211e5 -s ours am: 3c092ca721 -s ours am: 8a32051ccf -s ours
am skip reason: Change-Id If0674eda954a25f0f6c9188501ff77db8ba0813b with SHA-1 9ca5334683 is in history

Change-Id: Ia47e26107096f1b4a6e049a43a76030f73bbfa01
2020-05-20 01:04:06 +00:00
Suren Baghdasaryan 6d78423053 [automerger skipped] lmkd: Enable stricter compiler checks am: 5096d16091 am: 2b90436606 am: 15b83b66d1 -s ours
am skip reason: Change-Id Ia802dbd7abb167d66b76390e269e4a4418ca5def with SHA-1 e538ba2df6 is in history

Change-Id: I0f0ac74b3337dc987ee0d1cb00b4ccd409624278
2020-05-20 01:04:01 +00:00
Suren Baghdasaryan 62d3403507 [automerger skipped] lmkd: Remove unused variables and fix type mismatches am: dd7ec447ab am: 9cc5e9624f am: aabfa71492 -s ours
am skip reason: Change-Id I7f0839d803a6bf6532f077208ce54aba761dc9fe with SHA-1 ed715a3424 is in history

Change-Id: I64e0be8b341ca3fab1c71923cd2ec79a544f2870
2020-05-20 01:03:59 +00:00
Suren Baghdasaryan 628a00239d [automerger skipped] lmkd: enable ro.lmk.kill_timeout_ms to be used with kill notifications am: c7e51b7b2a am: c5969c34b2 am: de6c2612e2 -s ours
am skip reason: Change-Id Ia3eed3448fd6928a5e634c2737044722048b3578 with SHA-1 03dccf35a1 is in history

Change-Id: I14fefb57c64b51f4f887ccb254bb22b48295a382
2020-05-20 01:03:58 +00:00