I want to obtain information about memory used by different users and different processes which users are running and statistics about those processes like memory consumption, execution speed, etc., using Linux system calls. I don't want to use commands like free, top etc. Can anyone suggest how to do so?  
Monitoring process activities using system calls only (without utilities like `top`)
linux;process;memory;monitoring