Comment #10 on issue 16251 by joel.stan: Need to implement several more  
functions in process util linux.
http://code.google.com/p/chromium/issues/detail?id=16251

GetWorkingSetKBytes() is parsing smaps already (that code landed yesterday).

I didn't notice until now that smaps also has the show_map_vma() status  
bits as maps
(see fs/proc/task_mmu.c in the kernel).

So parsing smaps would give us the same as parsing maps, if we do the  
following:

   if flags[3] == 'p':
     flags[1] == 'w':
       private_bytes += vale of Size*1024

Taking a look at a real chrome processes smaps file, I'm left confused with  
how Size
relates to Shared_{Clean,Dirty} and Private_{Clean,Dirty}.  None of the  
numbers
listed add up to 192kB.

09aec000-09b1c000 rwxp 00000000 00:00 0
Size:                192 kB
Rss:                 124 kB
Pss:                 101 kB
Shared_Clean:          0 kB
Shared_Dirty:         24 kB
Private_Clean:         0 kB
Private_Dirty:       100 kB
Referenced:          104 kB
Swap:                  0 kB
KernelPageSize:        4 kB
MMUPageSize:           4 kB

This makes me wonder if it's valid to use the Shared/Private numbers in one  
spot, and
the total VM size in another.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to