In theory, doing "pmap -x /proc/*" and making the sum of all totals of the anon colum and adding all the shared memory (ipcs -ma) you will have the same value.
But i did it and I have very differents values (lower for pmap sum). What's wrong in my suppose or who command is lying me? I hav tested it in several machines with the same result: big differences in values.