On Tue, Aug 20, 2002 at 05:59:58AM -0700, srinivas rao wrote: > I am using the MIPS based embedded box on which Linux > kernel 2.4.2 is running. Yikes, 2.4.2 has serious security problems. I hope there are no untrusted users on the machine. > I want to know if there is a tool which can estimate the runtime > memory requirement for each of the appliations(both userspace and > kernel space)that are currently running. $ grep ^Vm /proc/self/status VmSize: 1732 kB VmLck: 0 kB VmRSS: 612 kB VmData: 84 kB VmStk: 20 kB VmExe: 52 kB VmLib: 1372 kB There are /proc/<pid>/status files for all tasks on the system. (Though I don't know what happens with clone(2)'s CLONE_PID flag.) /proc/<pid>/maps will show you which files are mapped into each address space, so that you can help determine overlap among processes. And, as always, top(1) is useful to help summarize the information. :) -- "A mouse can be just as dangerous as a bullet or a bomb." -- US Representative Lamar Smith (R-Texas)
Attachment:
pgp00148.pgp
Description: PGP signature