Particularly, does proc
always list the VmRSS value in kB
? I can't find a solid answer on the documentation, although it appears that it sticks to one unit.
Does /proc/[pid]/status Always Use kB?
memoryproc
memoryproc
Particularly, does proc
always list the VmRSS value in kB
? I can't find a solid answer on the documentation, although it appears that it sticks to one unit.
Best Answer
Yes, it's always in kB. KiB (1024-bytes, not 1000) to be exact.
At least in Linux 4.0 (and this code has been largely unchanged since at least April 2005—that's when Linus switched to
git
, and I don't care to check back further) that output comes fromtask_mem
infs/proc/task_mmu.c
. Excerpting a few lines:Not sure if you can read C, but that "kB" is hardcoded there. There is no logic to output any other unit.