pmap total always in kilobytes?
Does the Linux command "pmap" always give the total memory usage in kilobytes?
$ pmap 3208920 | tail -n 1
total 71836K
It’s always shown in kibibytes:
if (sizeof(long) == 8)
/* Translation Hint: keep total string length
* as 24 characters. Adjust %16 if needed*/
printf(_(" total %16ldKn"),
(total_shared + total_private_writeable +
total_private_readonly) >> 10);
else
/* Translation Hint: keep total string length
* as 16 characters. Adjust %8 if needed*/
printf(_(" total %8ldKn"),
(total_shared + total_private_writeable +
total_private_readonly) >> 10);
(Shifting right by 10 is equivalent to dividing by 1,024.)