Get Data like pagesize from a linux system

Today I have the job to determine the memory footprint of an application.
/proc/statm
delivers the memory in pages ( see the man page of proc for an explanation of statm )

Now the question is, how do I get the pagesize on the linux system.
On Solaris I would use pagesize to get a list or pmap -s to get the used
size. To set a different size you can use ppgsz or mpss.so.1 which must be preloaded.

On Linux I've found the following approach using Python

>>>import resource
>>>resource.getpagesize()
4096
But the simpler version is to read the man pages of sysconf(3) and getconf(1)
By the help of getconf, a lot of information can be requested from the system.

#getconf PAGESIZE
4096

top can show a lot more details when using the "f" key and selecting additional fields to show corresponding to memory.

top - 10:26:25 up 18 days, 2:42, 3 users, load average: 0.00, 0.00, 0.00
Tasks: 81 total, 2 running, 79 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2060868k total, 1737284k used, 323584k free, 170648k buffers
Swap: 1518100k total, 48k used, 1518052k free, 693176k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP CODE DATA COMMAND
28764 progvs 16 0 52388 6760 5208 S 0 0.3 0:02.14 44m 408 1252 progvs_prog