aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2011-05-27 19:57:58 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2011-05-27 19:57:58 +0000
commit7e2548ae0ab2baaa3d20599e34c9876eb6214851 (patch)
tree458eb3af078e0dba68bc05087dcbea63e280a43f /sys
parent4daae0cde65486678dca3b1a3cfe3f65be11430d (diff)
downloadsrc-7e2548ae0ab2baaa3d20599e34c9876eb6214851.tar.gz
src-7e2548ae0ab2baaa3d20599e34c9876eb6214851.zip
Remove definitions for RACCT_FSIZE and RACCT_SBSIZE - these two are rather
performance-sensitive and not that useful, so I won't be merging them before 9.0.
Notes
Notes: svn path=/head/; revision=222380
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_racct.c5
-rw-r--r--sys/kern/kern_rctl.c2
-rw-r--r--sys/sys/racct.h40
3 files changed, 19 insertions, 28 deletions
diff --git a/sys/kern/kern_racct.c b/sys/kern/kern_racct.c
index 98bd9c56a0ed..01f77776711d 100644
--- a/sys/kern/kern_racct.c
+++ b/sys/kern/kern_racct.c
@@ -104,8 +104,6 @@ SDT_PROBE_DEFINE2(racct, kernel, racct, leave, leave, "struct racct *",
int racct_types[] = {
[RACCT_CPU] =
RACCT_IN_THOUSANDS,
- [RACCT_FSIZE] =
- RACCT_RECLAIMABLE | RACCT_INHERITABLE | RACCT_DENIABLE,
[RACCT_DATA] =
RACCT_RECLAIMABLE | RACCT_INHERITABLE | RACCT_DENIABLE,
[RACCT_STACK] =
@@ -120,8 +118,6 @@ int racct_types[] = {
RACCT_RECLAIMABLE | RACCT_DENIABLE,
[RACCT_NOFILE] =
RACCT_RECLAIMABLE | RACCT_INHERITABLE | RACCT_DENIABLE,
- [RACCT_SBSIZE] =
- RACCT_RECLAIMABLE | RACCT_DENIABLE | RACCT_SLOPPY,
[RACCT_VMEM] =
RACCT_RECLAIMABLE | RACCT_INHERITABLE | RACCT_DENIABLE,
[RACCT_NPTS] =
@@ -627,7 +623,6 @@ racct_proc_exit(struct proc *p)
/*
* XXX: Free this some other way.
*/
- racct_set(p, RACCT_FSIZE, 0);
racct_set(p, RACCT_NPTS, 0);
racct_set(p, RACCT_NTHR, 0);
racct_set(p, RACCT_RSS, 0);
diff --git a/sys/kern/kern_rctl.c b/sys/kern/kern_rctl.c
index 2d43bdce521c..3d0a478a8cce 100644
--- a/sys/kern/kern_rctl.c
+++ b/sys/kern/kern_rctl.c
@@ -100,7 +100,6 @@ static struct dict subjectnames[] = {
static struct dict resourcenames[] = {
{ "cpu", RACCT_CPU },
- { "fsize", RACCT_FSIZE },
{ "data", RACCT_DATA },
{ "stack", RACCT_STACK },
{ "core", RACCT_CORE },
@@ -108,7 +107,6 @@ static struct dict resourcenames[] = {
{ "memlock", RACCT_MEMLOCK },
{ "nproc", RACCT_NPROC },
{ "nofile", RACCT_NOFILE },
- { "sbsize", RACCT_SBSIZE },
{ "vmem", RACCT_VMEM },
{ "npts", RACCT_NPTS },
{ "swap", RACCT_SWAP },
diff --git a/sys/sys/racct.h b/sys/sys/racct.h
index cbd96a976615..222dbcec1af6 100644
--- a/sys/sys/racct.h
+++ b/sys/sys/racct.h
@@ -49,27 +49,25 @@ struct ucred;
*/
#define RACCT_UNDEFINED -1
#define RACCT_CPU 0
-#define RACCT_FSIZE 1
-#define RACCT_DATA 2
-#define RACCT_STACK 3
-#define RACCT_CORE 4
-#define RACCT_RSS 5
-#define RACCT_MEMLOCK 6
-#define RACCT_NPROC 7
-#define RACCT_NOFILE 8
-#define RACCT_SBSIZE 9
-#define RACCT_VMEM 10
-#define RACCT_NPTS 11
-#define RACCT_SWAP 12
-#define RACCT_NTHR 13
-#define RACCT_MSGQQUEUED 14
-#define RACCT_MSGQSIZE 15
-#define RACCT_NMSGQ 16
-#define RACCT_NSEM 17
-#define RACCT_NSEMOP 18
-#define RACCT_NSHM 19
-#define RACCT_SHMSIZE 20
-#define RACCT_WALLCLOCK 21
+#define RACCT_DATA 1
+#define RACCT_STACK 2
+#define RACCT_CORE 3
+#define RACCT_RSS 4
+#define RACCT_MEMLOCK 5
+#define RACCT_NPROC 6
+#define RACCT_NOFILE 7
+#define RACCT_VMEM 8
+#define RACCT_NPTS 9
+#define RACCT_SWAP 10
+#define RACCT_NTHR 11
+#define RACCT_MSGQQUEUED 12
+#define RACCT_MSGQSIZE 13
+#define RACCT_NMSGQ 14
+#define RACCT_NSEM 15
+#define RACCT_NSEMOP 16
+#define RACCT_NSHM 17
+#define RACCT_SHMSIZE 18
+#define RACCT_WALLCLOCK 19
#define RACCT_MAX RACCT_WALLCLOCK
/*