ps doesnt show real memory used though

I have been searching how to see real memory used in unix/linux and so far I only know in Solaris you can see with pmap but others no luck