commit | 260251862e18ad1706a5be4a297bc66c0259fbeb | [log] [tgz] |
---|---|---|
author | Suren Baghdasaryan <surenb@google.com> | Fri Apr 13 12:43:41 2018 -0700 |
committer | Suren Baghdasaryan <surenb@google.com> | Sat Apr 14 23:50:00 2018 -0700 |
tree | d29aba1e159a240b28ae9eb09ee14c5043c67df9 | |
parent | 6157ea1c0646a949c11e7345dd42a22122f20fc7 [diff] |
lmkd: Optimize frequent file reads by keeping file descriptors open To check system memory state lmkd is using same files every time vmpressure event is received. Instead of opening and closing these files every time we store the file descriptor and use pread() to reread the file from the beginning. Bug: 77299493 Bug: 75322373 Change-Id: I8e27f8b9526e82e3cc313a02fce215c2e4dd3d29 Signed-off-by: Suren Baghdasaryan <surenb@google.com>