PERFORCE change 182023 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Sat Aug 7 13:10:46 UTC 2010


http://p4web.freebsd.org/@@182023?ac=10

Change 182023 by trasz at trasz_victim on 2010/08/07 13:09:45

	Update TODO.

Affected files ...

.. //depot/projects/soc2009/trasz_limits/TODO#22 edit

Differences ...

==== //depot/projects/soc2009/trasz_limits/TODO#22 (text+ko) ====

@@ -39,6 +39,29 @@
 
 Issues:
 
+ - In the long term, the goal is to get rid of lim_get(9), chgproccnt(9) etc,
+   turning this:
+
+   	limit = lim_get(...);
+	if (value > limit)
+		return (EWHATEVER);
+
+	[ do stuff ]
+
+   into this:
+
+   	if (rusage_add(...))
+		return (EWHATEVER);
+
+	[ do stuff ]
+
+	if (some error)
+		rusage_sub(...);
+
+   However, this requires per-process limit enforcement to be hooked into
+   container mechanism.  This is a part of HRL, and it's outside the scope
+   of the containers project.  This means the code is full of "#ifdef CONTAINERS".
+
  - Don't account resources for system processes.  It's not as easy as checking
    for P_SYSTEM flag, as the flag will be set for AIO kernel processes.
 


More information about the p4-projects mailing list