investigate shill memory usage |
||
Issue description
After removing chrome ("stop ui"), shill is the largest user of RAM. From a caroline:
run "top", type shift-F, select MEM with arrow keys, press "s" for "sort by that field", then ESC:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1843 root 20 0 108504 80336 6120 S 0.0 2.0 22:35.96 shill
2142 devbrok+ 20 0 33944 7004 3960 S 0.0 0.2 0:00.49 permission+
1872 root 20 0 336136 5020 4472 S 0.0 0.1 0:04.69 cryptohomed
30580 root 20 0 18332 4880 4276 S 0.0 0.1 0:00.03 sshd
80MB of resident set size for shill seems a little high and worth investigating---maybe there is a low-hanging fruit.
,
Apr 13 2018
Yes it looks like a leak. My device had been on for several days, and on the morning after an afternoon restart the numbers are similar to yours. top: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1886 root 20 0 38156 17404 12980 S 0.0 0.4 0:41.28 shill 2182 devbrok+ 20 0 33932 12484 9144 S 0.0 0.3 0:00.13 permission+ 1887 root 20 0 336004 12188 10744 S 0.0 0.3 0:00.16 cryptohomed 2261 arc-oem+ 20 0 179528 10936 9996 S 0.0 0.3 0:00.01 arc-oemcry+ 1682 chaps 20 0 178476 10548 9528 S 0.0 0.3 0:00.02 chapsd localhost ~ # grep ^Vm /proc/`pgrep shill`/status VmPeak: 38164 kB VmSize: 38156 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 17404 kB VmRSS: 17404 kB VmData: 3920 kB VmStk: 132 kB VmExe: 4780 kB VmLib: 12260 kB VmPTE: 96 kB VmSwap: 0 kB stack is the same localhost ~ # pmap `pgrep shill` | grep anon 000059e23bdeb000 3684K rw--- [ anon ] <---maybe we're seeing some leakage already 00007fa8403a0000 16K rw--- [ anon ] 00007fa84074a000 20K rw--- [ anon ] 00007fa840a4d000 84K rw--- [ anon ] 00007fa840d79000 16K rw--- [ anon ] 00007fa840fb5000 4K rw--- [ anon ] 00007fa84104b000 32K rw--- [ anon ] 00007fa841062000 12K rw--- [ anon ] 00007fa841083000 4K rw--- [ anon ] 00007fa841089000 4K rw--- [ anon ] 00007fa84119d000 8K rw--- [ anon ] 00007fa8411a3000 4K rw--- [ anon ] 00007fa84124a000 4K rw--- [ anon ] 00007fa84124d000 4K rw--- [ anon ] 00007ffd049f0000 8K r---- [ anon ] 00007ffd049f2000 8K r-x-- [ anon ] localhost ~ # restart shill shill start/running, process 9829 localhost ~ # pmap `pgrep shill` | grep anon 000056e3a7975000 1928K rw--- [ anon ] <--- suspiciously smaller 00007e7595e11000 8K rw--- [ anon ] 00007e7596a2c000 16K rw--- [ anon ] 00007e7596dd6000 20K rw--- [ anon ] 00007e75970d9000 84K rw--- [ anon ] 00007e7597405000 16K rw--- [ anon ] 00007e7597641000 4K rw--- [ anon ] 00007e75976d7000 32K rw--- [ anon ] 00007e75976ee000 12K rw--- [ anon ] 00007e759770f000 4K rw--- [ anon ] 00007e7597715000 4K rw--- [ anon ] 00007e7597829000 8K rw--- [ anon ] 00007e759782f000 4K rw--- [ anon ] 00007e75978d6000 4K rw--- [ anon ] 00007e75978d9000 4K rw--- [ anon ] 00007ffc9bfc1000 8K r---- [ anon ] 00007ffc9bfc3000 8K r-x-- [ anon ]
,
Apr 14 2018
I saw the numbers drift up a little bit after `restart ui` and re-logon. But when I started running it in a loop, the shill memory consumption eventually stabilized. Probably something else.
,
Jan 15
|
||
►
Sign in to add a comment |
||
Comment 1 by cernekee@chromium.org
, Apr 13 2018