diff options
author | Jay Lan <jlan@engr.sgi.com> | 2005-01-04 05:25:39 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-04 05:25:39 -0800 |
commit | b6a6107abf22149c9cedc68149d3fd78a76f7e34 (patch) | |
tree | de3c6674a0693dbfce15bfee0e59ce4f66ffc879 /fs | |
parent | 9ca7d6f6cdc862fdebc72c4c15249cbb729a2f0f (diff) | |
download | history-b6a6107abf22149c9cedc68149d3fd78a76f7e34.tar.gz |
[PATCH] enhanced Memory accounting data collection
This patch is to offer common accounting data collection method at memory
usage for various accounting packages including BSD accounting, ELSA, CSA
and any other acct packages that use a common layer of data collection.
New struct fields are added to mm_struct to save high watermarks of rss
usage as well as virtual memory usage.
New struct fields are added to task_struct to collect accumulated rss usage
and vm usages.
These data are collected on per process basis.
Signed-off-by: Jay Lan <jlan@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/exec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c index 1aac6ab013259c..0d1219531d755f 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -47,6 +47,7 @@ #include <linux/security.h> #include <linux/syscalls.h> #include <linux/rmap.h> +#include <linux/acct.h> #include <asm/uaccess.h> #include <asm/mmu_context.h> @@ -1165,6 +1166,8 @@ int do_execve(char * filename, /* execve success */ security_bprm_free(bprm); + acct_update_integrals(); + update_mem_hiwater(); kfree(bprm); return retval; } |