When trying to use pagemap to calculate the "proportional set size" [1] of a process, I discovered that there were often references to pages that could not be discovered by kpagecount. I changed kpagecount to return the number of times a page is mapped, rather than referenced, so kpagecount is more useful for determining how many processes are using a page. [1] PSS is the amount of memory used by a process, weighted by 1 / the number of processes sharing the memory -- so a 128K library shared by 2 processes counts as 64K PSS for each of them.