|
|
Using the HP 3000 Workload Manager: HP 3000 MPE/iX Computer Systems > Chapter 3 Creating WorkgroupsAdding New Workgroups |
|
Using Workload Manger, you can create an essentially unlimited number of user-defined workgroups for your system. When you create a workgroup, you specify three kinds of information: the workgroup name, membership criteria, and scheduling characteristics. You can use the NEWWG command to add a new workgroup to the current configuration or to replace the entire workgroup configuration with a new one. For instructions to replace the workgroup configuration, read “ Creating a New Workgroup Configuration” later in this chapter. To add a workgroup to the existing configuration, use the NEWWG command to specify the name, one or more membership criteria, and the scheduling characteristics. The syntax of the NEWWG command is:
For more detailed information on this command, refer to Chapter 5, “Commands Reference”.
For example, to create a new user-defined workgroup named Program_Development whose base and limit priorities are 160 and 170 (respectively) and with a boost property of OSCILLATE, enter:
Or, using positional parameters instead of keywords, you would enter:
The membership criteria must appear in the order MEMB_LOGON, MEMB_PROGRAM and MEMB_QUEUE when the keywords are not specified and, in this case, since MEMB_QUEUE isn't specified, a comma is used as a placeholder. The ampersand character (&) appears at the end of the command lines in the examples above to indicate continuation. If you type the command on one single line (so that it wraps), omit the ampersand. For a process to become a natural member of the Program_Development workgroup (that is, one that naturally meets the membership criteria), both of the following conditions must be true:
The workgroups on your system are maintained in an ordered list. When the Workload Manager assigns a process to a workgroup, it searches the list of workgroups on your system and places the process into the first workgroup in which it fits. Since workgroup membership dictates how a process is scheduled, which workgroup it falls into is critical. When you create new workgroups, you can use the POSITION parameter to determine where the workgroup is positioned in the ordered list. You should order workgroups so that those with the most specific membership criteria appear first and those with more general membership criteria follow. For example, to create a workgroup named Payroll_online for online users of the Payroll account that appears ahead of the Program_Development workgroup (created in the preceding example), enter:
Or, to use positional parameters, you enter the command this way:
Note that you must use the comma as a placeholder for the membership criteria you are not specifying. The ampersand character (&) appears at the end of the command lines in the examples above to indicate continuation. For a process to become a natural member of the Payroll_online workgroup, the user must logon to the Payroll account with any user name. (The user can also choose a session name. Since it isn't specified in the membership criteria, any session name is considered a match.) The Payroll_online workgroup has a base priority of 170, a limit of 190, the default minimum and maximum quantum of 1 and 2000 milliseconds, the default boost property (DECAY), and the default timeslice of 200 milliseconds. For more conceptual information and an example of determining workgroup membership, read “To understand the importance of workgroup order” and “How workgroup membership is determined: an example”, in Chapter 2. To display information about all workgroups on the system, you use the SHOWWG command. You can choose to display information in any of the formats available: SUMMARY, DETAIL, PROCS, or WGFILE. If you do not specify a format (as shown below), the SHOWWG command defaults to the SUMMARY format. For example, assuming that you had just created the two workgroups shown in the previous examples, entering the SHOWWG command would produce this information:
|
|