Resource Controls Flags and Actions - Resource Management Oracle Solaris Zones and Oracle Solaris

100 zombies slot percenter

This section describes flags, effects, and signals related to resource management.

limit, Resource Limit

limitImplemented in the processlimitClarify the restricted boundary for the use of all kinds of system resources. Each process formed by the course is inherited from the first process. Resources are led by a pair of values. It has the meaning of the current limit (software) and the maximum limit (hard).

The process has the ability to make the meaning of each meaning of each meaning, equivalent or more, as well as flexible limits. To increase strict restrictions, there is a possibility only in a process with personal route numbers. Cm.Setrlimit ()andGetrlimit ().

addresslimitHas two members defining smooth limits and strict limits.

rlim_t rlim_cur;/ * Current (soft) limit */ RLIM_T RLIM_MAX/ * Strict Limited */

RCTL, Resource Control

RCTLExtend process restrictionslimitControl for processes, tasks, and resources based on them.

remarksRCTLOutstanding than implementationlimitThe only cause for installing resource constraints islimitThis is when it is necessary to transplant to a different UNIX platform.

Applications are divided into appropriate large numbers, depending on how the application works with resource control substances. Depending on what you are affected, the resource management method is further systemated. Most of them report the error and complete the work. Other resource monitoring methods are restored to work and adapt to a decrease in resourc e-used use. The latest action is set for each resource administrative substance.

The list of attributes that monitor resources consist of the effects of profits, setting the threshold, and when the threshold exceeds the threshold.

Resource Control Values and Privilege Levels

Each threshold setting for resource management must be associated with one of the appropriate benefits:

The level of benefits can be changed by the challenge process owner. RCPRIV_BASIC is associated with flexible resource restrictions.

Profit levels can only be changed by Patos (route) guidance. RCPRIV_PRIVILEGED is related to strictly restricting resources.

Setrctl(2) Success only when calling as a proxy for Pathos users in the mass zone. From inside the no n-global zonerootIt does not have the ability to introduce control to the entire zone.

The level of profits remains fixed to the entire copy of the control system.

FIG. 5-2 shows a short-term scale for setting the value of the signal signal./etc/projectfileProcess MAX-CPU timeResource control

Local Actions and Local Flags

Local actions and local flags apply to the current source management values ​​represented by this source management block. Local actions and local flags depend on certain values. The following local actions and local flags are available for each threshold set to control resources:

If this resource control value is exceeded, the local action will not be executed.

commandRCTLBLK_SET_LOCAL_ACTION ()It is sent to the process of this resource control value.

When this resource control value is encountered, resource requests are rejected. If this control is set in rctl_global_deny_always, all values ​​are set. If this control is set in rctl_global_deny_never, clear all values.

This resource control value indicates the maximum resource request for this control. If this resource control is set in rctl_global_infinite, RCTL_LOCAL_MAXIMAL indicates unlimited resource control values ​​that will never exceed.

Global Actions and Global Flags

Global flags apply to all current source management values ​​represented by specified source management blocks. Global actions and global flags are developed as follows:RCTLADM(1m). Global action and global flagCannot be set.Global flags apply to all resource control. The following global actions and global flags can be used for each of the excitements set for resource control:

Global action is not executed even if the specified control resource control level is exceeded.

This function is the default messagesyslog ()Record.

Define the restricted unit string as seconds.

Define the restricted unit string as numbers.

Define the limit unit set as a par t-time job.

In this flag, RCTL_GLOBAL_SYSLOG is for this resource management.RCTLADM(1m).

This control does not allow the value of the right RCPRIV_BASIC.

No n-privileged su b-clivers can lower the privileged resource control value of this control.

A treatment performed when the control value of this control level is exceeded will always refuse the use of resources.

A treatment performed when the control value of this control level exceeds the control value is always refused to use the resource. Resources are always provided, but other actions may be taken.

The signal that is effective for local actions is the SIGXFSZ signal.

The signal that is effective for local actions is the SIGXCPU signal.

This control does not allow local actions. Resources are always provided.

This resource control element supports the concept of unlimited values. Usually, unlimited values ​​apply only to accumulated resources such as CPU time.

Usually, resource control associated with tasks and projects does not support observable benchmarks. The privileged control value RCPRIV_BASIC set in the task or process generates an action only when the value is exceeded by the set process.

Resource Control Sets Associated With a Zone, Project, Processes, and Tasks

The following figure shows the resource management set related to zones, tasks, processes, and projects.

Figure 5-1 Zone, task, project, process resource management set

Each resource control is placed at a specific containment level in the process model. Resource control can be active in the same resource in both processes, team tasks or team projects. In this case, the process of the process is prioritized. for exampleProcess MAX-CPU timeToTask Max-CPU-TIMEIs checked at the same time.

Resource Controls Associated With a Project

There are following projects related resource control:

Absolute amount limit for CPU resources that can be consumed by projects. meaning100Absolute restrictions on CPU resources that can be consumed by projects.Project CPU capSettings. meaning125Is equivalent to 125 %. This is because when using a processor cap, 100 % are equal to one complete processor in the system.

The number of CPU share given to this project to use in the Fair Share scheduler,Fss(7).

Total amount of available kernel memorylibpkcs11Total amount of kernel memory that can be used. The assignment of a kernel buffer and sessio n-related structure is paid from this resource control.

Total permit of physically locked memory.

This resource control isMax-Device-Locked-MemoryI replaced it.

The maximum number of System V messages allowed in the project.

Maximum number of event ports that are allowed.

The maximum number of processes and slots that can be used simultaneously in the project.

Not e-Process table slots are occupied by both regular and zombie processes. meaningMaximum number of processesTherefore, it can prevent zombie processes from running out of the process table.max-lwpsNote that it cannot be protected from the zombie process that runs out the process table.

max-sem-ids

Maximum number of semaphone IDs allowed in the project.

The maximum number of common memory identifiers allowed in this project.

The maximum number of rushes allowed in this project.

Total memory capacity of system V that can be used in this project.

The maximum amount of LWP that can be used simultaneously in this project.

The maximum number of tasks accepted in this project.

The maximum number of contractions allowed in this project.

Resource Controls Associated With Tasks

Task resource control includes the following:

Maximum processor time (seconds) that can be accessed by this task process.

The maximum amount of LWP that can be accessed simultaneously to the process of this task.

The maximum number of processes in the process that can be accessed at the same time.

Not e-Process table slots are occupied by both regular and zombie processes. meaningMaximum number of processesTherefore, it can prevent zombie processes from running out of the process table.max-lwpsNote that it cannot be protected from the zombie process that runs out the process table.

Resource Controls Associated With Processes

There are the following resource management elements related to the process:

The maximum capacity (bytes) of the address space compiled in the segment where this process can be used.

The maximum size (bytes) of the main file created by this process.

Maximum processor time (seconds) available in this process.

Maximum file descriptor available in this process.

This process is the maximum displacement of files that can be incredible (bytes).

The maximum number of messages in the message queue. This value is based on resource managementMsgget ()Copy from time management of.

Maximum number of messages in the message (bytes). This value isMsgget ()Copy from resource management during time. If you set a new meaningProject Max-Msg-QbytesInitialization is performed only for the meaning created later. newProject Max-Msg-QbytesIt does not affect existing values.

The maximum number of semaphones allowed in pr e-payment recruiting.

The maximum number of semaphones allowed by operation.semaphore()The maximum number of semaphones allowed by calling. This value isMsgget ()SometimesMaximum SEM-OPS of the projectThis only affects the initialization of the meaning that is created afterwards and does not affect existing values.

The maximum number of events permitted to one port of the event.

Zone-Wide Resource Controls

General resource control (General Resourc e-Control) can be used in a system where the zone is installed. General resource control limits general use of resources through all processes in the zone.

Absolute restrictions on processaria sauce that can consume no n-global zones. meaning100Absolute restrictions on CPU resources that can be consumed by projects.Project CPU capSettings. meaning125Is equivalent to 125 %. This is because when using a processor cap, 100 % are equal to one complete processor in the system.

The limit on the number of CPU shares for the factorial distributed scheduler (FSS) for the zone. Scheduling class must be FSS. Processor placement is determined by the zone first freeing up the CPU shares and then the parametersproject cpu-sharesrecord. Largerzone cpu-sharesis allowed to use more processors than fewer zones.

The total amount of physically blocked memory the zone can use.

The maximum amount of.lofiThe maximum amount of devices the zone can create.

The maximum amount of LWPs this zone can use simultaneously.

The maximum number of messages allowed in this zone.

The maximum number of processes available simultaneously in this zone

remarkszone max-processesImproves resource isolation and prevents zones from using too many processes of processes and impacting other zones. The distribution of trench resources between projects in a zone uses the parameter Project Max Processes. The global property name of this control element Max Processes. The Max Processes resource control for a zone on a site is the Zone Max-LWPS resource control. As Zone Max Processes is installed Zone Max-LWPS is not installed Zone Max-LWPS is implicitly set equal to 10 times the value of Zone Max Processes when the zone is loaded. Both normal processes and zombies occupy slots in the process table. Meaning Max Processes Prevents process starvation of processes that have zombies. However, Max-lwps does not protect against zombie processes from running out of processes, since zombies of processes do not necessarily have LWPs. Zone. Ma x-SE M-IDs The maximum number of semaphore identifiers allowed in this zone. The maximum number of isolated memory identifiers allowed in this zone The total amount of isolated memory allowed in this zone The total amount of pumping is determined by the address space of the user process and the TMPFS mounts in this zone. Note that the commandZoneSetTo use zone control of resources to the global zone on a system with non-global zones installed. Also note thatMaximum number of processes(2) will only succeed if called on behalf of a privileged user in the global zone. In a non-global zonezone max-processescannot control resources in the global zone.For each threshold established for managing resources, a narrow set of signals is provided:Abort the process.zone max-processesA "sigh" is sent to the processes controlling the terminal to signal a freeze.For each threshold established for managing resources, a narrow set of signals is provided:Abort the process.For each threshold established for managing resources, a narrow set of signals is provided:A process is completed.zone max-processesAbort the process.

Abort the program.Maximum number of processesTherefore, it can prevent zombie processes from running out of the process table.max-lwpsNote that it cannot be protected from the zombie process that runs out the process table.

A processor time limit exceeded.

Available only for resource management components with the RCTL_GLOBAL_CPUTIME property.

Other signals may be permitted due to the bulkiness of the particular management substance.

Note - specifying an unacceptable signal to the function

setrctl()will not succeed.Figure 5-2 Devices with Benefit Values ​​for Signals

Setrctl(2) Success only when calling as a proxy for Pathos users in the mass zone. From inside the no n-global zoneroot

Signals Used With Resource Controls

Cannot be set.

avatar-logo

Elim Rim - Journalist, creative writer

Last modified 27.09.2024

To manage resources, the Oracle Solaris operating system provides a set of flags, actions, and signals that are referred to collectively as resource controls. Resource Management, Oracle Solaris Zones, and Oracle Solaris 10 Zones Developer's Guide describes how to write applications that partition and manage system. Resource controls and other attributes are set in the final field of the project database entry. The values associated with each resource control are enclosed.

Play for real with EXCLUSIVE BONUSES
Play
enaccepted