Commit 0fbf4cc9 authored by T.J. Mercier's avatar T.J. Mercier Committed by Suren Baghdasaryan
Browse files

ANDROID: Track per-process dmabuf RSS HWM



A per-process high watermark counter for dmabuf memory is useful for
detecting bursty / transient allocations causing memory pressure spikes
that don't appear in the dmabuf RSS counter when userspace reacts to
memory pressure and reads RSS after buffers have already been freed.

The /proc/<pid>/dmabuf_rss_hwm file in procfs now reports the maximum
value of /proc/<pid>/dmabuf_rss during the lifetime of the process.

The value of /proc/<pid>/dmabuf_rss_hwm can be reset to the current
value of /proc/<pid>/dmabuf_rss by writing "0" to the file.

Bug: 424648392
Bug: 434753952
Signed-off-by: default avatarT.J. Mercier <tjmercier@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:a7abb14bf6cad358dae04586139988df6c286fa3)
Merged-In: I1260ccc91601e1976f3e60ec3aa89e53281f17eb
Change-Id: I1260ccc91601e1976f3e60ec3aa89e53281f17eb
parent 6977ce0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment