Installation guide

4.7.5.1 Creating a Class
To create a class, either use the command mode or enter an interactive
session as follows:
# class_admin
class> create high_users 50
The command mode version is entered as follows:
# class_admin create batch_jobs 10
batch_jobs created at 10% cpu usage
changes saved
The first command creates a class named high_users and assigns a CPU
usage restriction of 50 percent. The second command creates a class named
batch_jobs and assigns a CPU usage restriction of 10 percent. Note that
in command mode, the changes are automatically saved to the database in
/etc/class. When making changes to classes interactively, you use the
command save to commit changes to the database. If you attempt to end
the session with the quit command and there are unsaved changes, you
will be prompted to save or discard the changes before quitting the
interactive session as follows:
class> quit
Class scheduler database modified.
Save changes? (yes/no) [yes]:yes
changes saved
4.7.5.2 Managing Identifier Types Within Classes
Members of a class are identified by any one of five identifiers assigned to
processes by the system. You specify one of these identifiers when assigning
a process to a class.
Once you have created classes, you can add processes to one or more
classes by specifying the ownership of the processes (using the UIDs and
GIDs) with the add command. You must specify the type of identifier (id)
used and enter one or more unique identifiers. UIDs and GIDs can be
determined from the /etc/passwd and /etc/group files. Alternatively,
you can use the graphical interface Account Manager (dxaccounts)to
display UID and group information.
4–32 Customizing the System Environment