I am studying on system resource control matter.
I know ulimit utility can done the job well.
However,I want to clarify that whether workload load manager work in VM environment only.
For example
I have an AIX machine(not VM), can I use work load manager to limit user resource (such CPU time,network traffic)?
If so, can I assign user or group to a workload partition?
The Workload Manager (WLM) is part of the AIX kernel and controls the resources of a standard AIX installation as well as the resources of Worload Partition (WPAR).
WLM works with classes, e.g. system, default, etc. and these classes can be limited or prioritized for CPU, Memory, diskIO and Process:
General characteristics of a class
CPU resource management
Memory resource management
diskIO resource management
Process total resource management
Class total resource management
You can not directly assign a limitation for a specific user but you can assign a user (more specifically all commands from a user) to class, which is limited.
# Class User Group Application Type Tag
001 System root - - - -
002 Default - - - - -
I have not worked yet with WPARs but if i understand it correctly the (ressources of) WPAR is controled from the host system via WLM.
WLM is an extremely different approach to resource control than ulimit.
WLM is meant to be a policy-based control mechanism managing access to resources over time - while ulimit sets hard maximum amounts of resources.
With ulimit you have, basically, unregulated access to all resources until one of the resources reaches it maximum, then the process stops. With WLM you set target ceilings - when a target is reached access to resources may be postponed until the utilization (usually a percentage) is below target and access is granted again.
you can assign a executable to an class and limit the ressources of these class.
Here an example configuration:
# Class User Group Application Type Tag
001 Test - - /usr/bin/ksh - -
Class name Test
Maximum amount of CPU time [-]
for each process in the class
CPU time unit
Maximum amount of DiskIO [-]
for each process in the class
DiskIO unit [KB]
Maximum amount of activity time [-]
for a login session in the class
ConnectTime unit
Maximum Amount of Virtual Memory [-]
for each process in the class
Virtual Memory Unit [MB]