get memory usage

From: Theewara Vorakosit
Date: Tue Oct 14 2003 - 09:51:46 EST


Dear All,
I want to get memory usage of myself and my child process. I try
to use getrusage but the memory field in rusage struct is always 0. I
check getrusage function in kernel/sys.c. I found that there is no memory
usage information so the memory usage by getrusage is always 0. Do I
understand correct? And is there any other function to do this?
Thanks,
Theewara

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/