Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Analysis of Oracle Solaris Containers Resource Management

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "Oracle Solaris Containers Resource Management Analysis". In daily operation, I believe many people have doubts about Oracle Solaris Containers resource management analysis. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts of "Oracle Solaris Containers Resource Management Analysis". Next, please follow the editor to study!

Local / etc/project file format

If you select files as the project database source in the nsswitch.conf file, the login process searches for project information in the / etc/project file. For more information, see the projects (1) and project (4) man pages.

For each project recognized by the system, the project file contains a single-line entry in the following form:

Projname:projid:comment:user-list:group-list:attributes

The field is defined as follows:

Projname

The name of the project. The name must be an alphanumeric character, an underscore (_) character, a hyphen (-), and a period (.) A string made up of. Periods are reserved for items that are of special significance to the operating system and can only be used in the user's default project name. Projname cannot contain colons (:) or newline characters.

Projid

The unique number ID (PROJID) for items within the system. The maximum value of the projid field is UID_MAX (2147483647).

Comment

Description of the project.

User-list

A comma-separated list of users who are allowed to participate in the project.

Wildcards can be used in this field. The asterisk (*) allows all users to participate in the project. An exclamation point followed by an asterisk (! *) excludes all users from the project. Exclamation point (!) Followed by a user name, the specified user is excluded from the project.

Group-list

A comma-separated list of user groups allowed to participate in the project.

Wildcards can be used in this field. The asterisk (*) allows all groups to participate in the project. An exclamation point followed by an asterisk (! *) excludes all groups from the project. Exclamation point (!) Followed by the group name, the specified group is excluded from the project.

Attributes

A semicolon-separated list of name-value pairs, such as resource control (see Chapter 6). Name is any string that specifies the property associated with the object, and value is the optional value for that property.

Name [= value]

In name-value pairs, names can contain only letters, numbers, underscores, and periods. Periods are commonly used as delimiters between categories and subcategories of resource control (rctl). The first character of the attribute name must be a letter. Names are case sensitive.

You can use comma and parenthesis structures in values to establish priority.

Semicolons are used to separate name-value pairs. You cannot use a semicolon in a value definition. Colons are used to separate project fields. You cannot use colons in value definitions.

Note-

If the routines that read this file encounter malformed entries, the routines stop. No items specified after the error entry are assigned.

The following example shows the default / etc/project file:

System:0:System:::user.root:1:Super-User:::noproject:2:No Project:::default:3::::group.staff:10::::

The following example shows the default / etc/project file with the project entry added at the end:

System:0:System:::user.root:1:Super-User:::noproject:2:No Project:::default:3::::group.staff:10::::user.ml:2424:Lyle Personal:::booksite:4113:Book Auction Project:ml,mp,jtd,kjh::

You can also add resource controls and attributes to the / etc/project file:

To add resource controls to your project, see setting up Resource controls.

To use the resource limit described in rcapd (1m) to set the daemon to define the physical memory resource limit for the project, see Properties that limit the project's physical memory usage.

To add the project.pool attribute to a project entry, see create a configuration.

Previous: naming service configuration

Next: project configuration of NIS

At this point, the study of "Oracle Solaris Containers Resource Management Analysis" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report