# PRM configuration file record formats and syntax rules: # # The following lines show the syntax for each record type. Explanations # of the components are given in the record sections below. # # GROUP:{PRMID | HIER}:SHARES:[MAX]: # # GROUP:PSET:::[CORES]:[CORE_LIST][:PSET_ATTR] # # #!PRM_MEM:{PRMID|GROUP}:SHARES:[MAX]:::[[IMPORT]:[EXPORT]:] # # #!SHARED_MEM:{PRMID|GROUP}:MEGABYTES # # USER::::INITIAL_GROUP[,ALTERNATE_GROUP[, ...]] # # APPLICATION::::GROUP[,{ALTERNATE_NAME[, ...]|'REGEXP'}] # # VOLUME:{PRMID | GROUP}:SHARES:: # # #!SCOMP:COMPARTMENT_NAME:{GROUP | (NONE)} # # #!UXGRP:UX_GROUP_NAME:{GROUP | (NONE)} # # Text-string processing (of items such as GROUP, ALTERNATE_NAME, and so # forth) is case-sensitive. These strings cannot include spaces, tabs, # newlines, colons, commas, or the # character. # # For more detailed information on this file, see the prmconf(4) man page. # ########## FSS PRM group record ##################################### # # GROUP:{PRMID | HIER}:SHARES:[MAX]: # # GROUP # FSS PRM group name. For proper display by the ps command, use no # more than 7 characters in the PRM group name. # # PRMID | HIER # Parent nodes in a hierarchy use the HIER keyword, while leaf nodes # use PRM group ID. PRMIDs must be unique and can range from 1 # to 255. PRMID 1 (the default group for users not explicitly # assigned to a group) is required. # # SHARES # CPU shares and, if CPU capping is enabled, the capping value. # Share amounts can range from 1 to MAXINT. Shares determine the # resource allocation proportions for all children of the same parent. # # MAX (Optional) (Default is no per-group CPU limit) # Specifies a max (upper bound) for CPU consumption. The max value is # expressed as a percent, which is an integer value, ranging from the # percentage determined by the group's number of CPU shares to 100. # There is no requirement that the per-group max values total 100%. # This value is superceded by the minimum percent when CPUCAPON mode # is enabled. # ########## Pset PRM group record #################################### # # GROUP:PSET:::[CORES]:[CORE_LIST][:PSET_ATTR] # # GROUP # Pset PRM group name. For proper display by the ps command, use no # more than 7 characters in the PRM group name. # # PSET # The PSET keyword must be specified for Pset PRM group records. # # CORES # The number of cores allocated to this Pset PRM group. This value # may range from 0 to one less than the maximum number of cores on # a system. If blank, the value is determined from the number of # cores specified in CORE_LIST. # # CORE_LIST # Comma separated list of specific core ids to include in the # Pset PRM group. If this list is empty then the PRM API will # automatically choose the cores to include in the Pset PRM group. # If CORES is specified, then CORE_LIST must contain zero core # entries or the number of entries specified by CORES. # # PSET_ATTR # This optional field passes per-processor set attributes to HPUX. See # psrset(1m) -t option for a complete attribute list. Currently only # the logical CPU (Hyper-Threading) feature is integrated with PRM. # LCPU=ON means this pset has Hyper-Threads explicitly enabled. # LCPU=OFF means this pset has Hyper-Threads explicitly disabled. # Psets with no overriding attribute value mimic the default pset. # ########## PRM memory record ######################################## # # #!PRM_MEM:{PRMID|GROUP}:SHARES:[MAX]:::[[IMPORT]:[EXPORT]:] # # #!PRM_MEM # Indicates the start of a Memory record. The # character does not denote # the start of a comment in this case. # # PRMID | GROUP # PRM group ID or group name that corresponds to an existing PRM group. # When specifying parents in a PRM group hierarchy or a PRM PSET group, # use their names. If Memory records are used, there must be a one-to-one # match between PRMIDs in roup and Memory records. # # SHARES # Specifies the PRM group's guaranteed proportion of available memory. # Shares are integer values ranging from one to MAXINT. # # MAX (Optional) (Default is no limit) # Specifies a max (upper bound) for memory consumption. The max value is # expressed as a percent, which is an integer value, ranging from the # percentage determined by the group's number of memory shares to 100. # There is no requirement that the max values total 100%. You can not # specify values for both the MAX and the IMPORT/EXPORT fields. # # IMPORT (Optional) (Default is no import limit) # Used for memory isolation of a group. Leave this field blank to # disable the memory isolation feature. Assign the value 0 to both the # IMPORT field and the EXPORT field if you would like to isolate a memory # critical group to ensure it does not share memory with other groups. # The IMPORT field is supported on HP-UX version 11i and above. # # EXPORT (Optional) (Default is no export limit) # Used for memory isolation of a group. Leave this field blank to # disable the memory isolation feature. Assign the value 0 to both the # IMPORT field and the EXPORT field if you would like to isolate a memory # critical group to ensure it does not share memory with other groups. # The OTHERS group may never have EXPORT restricted. # The EXPORT field is supported on HP-UX version 11i and above. # # When specifying memory records for parents in a PRM group hierarchy, you can # not specify values for the following fields (MAX, IMPORT, EXPORT). # ########## PRM Shared Memory record ################################### # # #!SHARED_MEM:{PRMID|GROUP}:MEGABYTES # # #!SHARED_MEM # Indicates the start of a Shared Memory record. The # character # does not denote the start of a comment in this case. The Shared # Memory control feature is supported on HP-UX 11i v2 Update 2 and # later. # # PRMID | GROUP # PRM group ID or group name that corresponds to an existing PRM # Memory Group. PRM groups without a Shared Memory record shall # default to the PRM_SYS pool for shared memory allocation. Parent # groups in a PRM group hierarchy cannot have Shared Memory records. # # MEGABYTES # The size of the fixed dedicated shared memory pool in megabytes. # Every Memory Record, regardless of type, must be assigned at least # one megabyte. The maximum value for MEGABYTES is limited by the # available megabyte value reported by prmavail minus the minimum # amounts for all other Memory and Shared Memory records. # This field must be at least 256 memory pages. # ########## PRM user record ########################################## # # USER::::INITIAL_GROUP[,ALTERNATE_GROUP[, ...]] # # USER # This is either an individual user's login name, or a + character # followed by netgroup name. Login names should be found in # /etc/passwd. Netgroup names should be associated with a list of # login names in /etc/netgroup. At configuration time, any member of this # netgroup without an explicit user record will assume the INITIAL and # ALTERNATE groups from this record. # # INITIAL_GROUP # Name of user's initial PRM group upon login. The placeholder # (NONE) may be used to indicate that no default # mapping has been created for this user, while allowing the user # to be clearly accounted for in the configuration. # # ALTERNATE_GROUP (optional) # Name of another group in which this user has permission to run. # group may be changed from the INITIAL_GROUP to ALTERNATE_GROUP # by means of prmrun or prmmove commands. # # PRM User records other than root cannot contain the PRMID 0 group PRM_SYS. # ########## PRM application record ################################### # # APPLICATION::::GROUP[,ALTERNATE_NAME[, ...]] # or # APPLICATION::::GROUP[,'REGEXP'] # # APPLICATION # Full path of the application, starting with a slash (/). # The directory name must be fully qualified, but the file name can # include the shell file name wildcard characters *, ?, [, and ]. # At configuration time, all valid executables matching the expression # without explicit application records of their own will assume the # GROUP of this record. # # GROUP # Name of the application's assigned PRM group. # # ALTERNATE_NAME (optional) # Alternate name the application is assigned when executed. # REGEXP # An Extended Regular Expression as defined in regexp(5). # Any process whose command line matches the regular expression # and which does not have an application record of its own will # assume the GROUP of this record. # ########## PRM disk record ########################################## # # VOLUME:{PRMID | GROUP}:SHARES:: # # VOLUME # Full pathname of the desired logical volume beginning with /dev/v # # PRMID | GROUP # PRM group ID or PRM group name. If Disk records are used for a volume, # there must be a one-to-one match between CPU and Disk records. # # SHARES # Disk shares. Share amounts can range from 0 to MAXINT. # Shares determine the resource allocation proportions for all # children of the same parent. # ########## PRM Compartment record ################################### # # #!SCOMP:COMPARTMENT_NAME:{GROUP | (NONE)} # # COMPARTMENT_NAME # The alphanumeric name of a legal active compartment. # It may be between 1 and 256 characters in length. # Overrides all other record types for processes in this compartment. # There may be at most one such record per compartment. # # GROUP | (NONE) # Name of the default PRM group for the compartment (if any). # When using group hierarchies, you can only assign these records to # groups that do not have child groups. The place holder word (NONE) # will create no mapping, but allows all compartments to be clearly # accounted for in the configuration. # ########## PRM Unix group record ################################### # # #!UXGRP:UNIX_GROUP_NAME:{GROUP | (NONE)} # # UNIX_GROUP_NAME # The alphanumeric name of a defined Unix group. # It may be between 1 and 255 characters in length. # There may be at most one such record per Unix group. # This record will apply if no other record applies to a # given process, including User records which do not specify # the OTHERS group. # # GROUP | (NONE) # Name of the default PRM group for the compartment (if any). # When using group hierarchies, you can only assign these records to # groups that do not have child groups. The place holder word (NONE) # will create no mapping, but allows all Unix groups to be clearly # accounted for in the configuration. # # PRM Unix group records cannot contain the PRMID 0 group PRM_SYS. # ######################## DEFINICION DE LOS GRUPOS y CPU ###################################################### #nombre del grupo:ID del grupo:share:MAX:: OTHERS:1:1:: NUEVOS:2:99:: ############################################################################################################# ######################## DEFINICION DE LA MEMORIA ########################################################### ####!PRM_MEM:{PRMID|GROUP}:SHARES:[MAX]:::[[IMPORT]:[EXPORT]:]###### #Definicion MEM:ID del grupo al que aplica:% de mem disponible: Valor del memory CAP (25) #!PRM_MEM:1:5:::: #!PRM_MEM:2:99:::: ############################################################################################################## ######################## DEFINICION ANCHO DE BANDA DISCO ################################################### /dev/vg00/:1:1:: /dev/vg00/:2:99:: ############################################################################################################# ######################## DEFINICION de APLICACIONES / COMANDOS ################################################ /usr/bin/file::::OTHERS /usr/bin/dd::::OTHERS # # begin prmloadconf generated user records # ###root::::(PRM_SYS) root:::: OTHERS daemon::::(NONE) bin::::(NONE) sys::::(NONE) adm::::(NONE) uucp::::(NONE) lp::::(NONE) nuucp::::(NONE) hpdb::::(NONE) nobody::::(NONE) www::::(NONE) smbnull::::(NONE) tftp::::(NONE) sshd::::(NONE) iwww::::(NONE) owww::::(NONE) hpsmh::::(NONE) sfmdb::::(NONE) hduser::::(NONE) jmc53066::::OTHERS # # begin prmloadconf generated unix group records # ######!UXGRP:root:(NONE) #!UXGRP:root:OTHERS #!UXGRP:other:(NONE) #!UXGRP:bin:(NONE) #!UXGRP:sys:(NONE) #!UXGRP:adm:(NONE) #!UXGRP:daemon:(NONE) #!UXGRP:mail:(NONE) #!UXGRP:lp:(NONE) #!UXGRP:tty:(NONE) #!UXGRP:nuucp:(NONE) #!UXGRP:users:(NONE) #!UXGRP:nogroup:(NONE) #!UXGRP:smbnull:(NONE) #!UXGRP:tftp:(NONE) #!UXGRP:sshd:(NONE) #!UXGRP:hpsmh:(NONE) #!UXGRP:hpsmc:(NONE) # # prmloadconf execution completed Mon Apr 20 10:40:51 2009 # # # prmloadconf execution completed Mon Apr 20 16:16:01 2009 # # # prmloadconf execution completed Mon Apr 20 17:53:44 2009 # # # prmloadconf execution completed Tue Apr 28 09:34:30 2009 # # # prmloadconf execution completed Tue Apr 28 09:37:33 2009 # # # prmloadconf execution completed Tue Apr 28 09:46:56 2009 # # # prmloadconf execution completed Tue Apr 28 09:47:18 2009