$cat /proc/meminfo
does give you details about current memory usage. Are you looking for something more than this?
Thankyou Sameer. cat /proc/meminfo gives the total memory and free memory at any instant of time. What I am looking for is a division of this memory usage between user space and kernel space. So here are my questions
If,
number of active pages = X
number of inactive pages = Y
total mem (pages) in use = Z (from /proc/meminfo)
Total User Space usage = ( X + Y ) * pg_size kB
Total Kernel Space usage = Z - ( X + Y ) * pg_size kB
Basically, I am attributing user space usage to the total number of pages in the LRU active and inactive lists. The rest of the memory is kernel static and dynamic memory.
1. Am I right?
2. Is there any other way of obtaining the number of pages used by the kernel/user space?
Thanks
Bithika