@Max, the pmap man page seems to contradict itself. In one of the examples it states that for an Anon value of 56, “each additional bourne shell uses approximately 56Kbytes of additional physical memory.” Also the totals row is labelled total Kb, so that suggests the Anon is really in Kb.
@Tanel, good work on this. My question is this (hopefully not a stupid one). Are the virtual addresses unique to each process or do they represent all of the system’s virtual memory? When using the -t option with multiple pids, I have seen that the segment “type” can vary for the same address across different pids (one may be anon, one may be a lib, etc) and they can also have different allocations for the same segment. It looks like the join of the -x and the -S files will wipe out duplicate rows with the same virtual address. I’m wondering if that is an accurate way to deal with the duplicates or not.