diff options
| author | Christopher Ferris <cferris@google.com> | 2019-06-25 17:30:56 -0700 |
|---|---|---|
| committer | Christopher Ferris <cferris@google.com> | 2019-07-11 12:51:35 -0700 |
| commit | 89207939d890496b7c058be44d1c34ce6fd8ab42 (patch) | |
| tree | 23170ec34c66ae2cc4aa4a66a74ca2ba9fc164a3 /base/errors_unix.cpp | |
| parent | bb0838b5114419b4f8ecff67c0b6fb728399c7b7 (diff) | |
Cache only a small portion of page map data.
The scudo memory allocator will allocate a large virtual memory address
that causes procrank to allocate a huge amount of data. Modify so it
caches the data a bit at a time.
Remove some allocations that are not necessary since the data is only used
in the first loop.
Fix a few pread64 checks against the actual bytes read, rather than the
read is < 0.
Fix sort by rss in procrank.
Bug: 135694447
Test: Ran unit tests (only one unit test actually runs the modified code).
Test: Ran the old version of procrank using a static libmeminfo and verified
Test: that the same data is found as the new version.
Change-Id: I8adc169b5607ec994ff13a9e161a479350d84c4d
Merged-In: I8adc169b5607ec994ff13a9e161a479350d84c4d
(cherry picked from commit 7f8915c76e232dd228930e749ec289d10c547f85)
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
