| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Library Interfaces and Headers Oracle Solaris 11 Information Library |
Library Interfaces and Headers
SMHBA_GetAdapterAttributes(3LIB)
SMHBA_GetAdapterPortAttributes(3LIB)
SMHBA_GetBindingCapability(3LIB)
SMHBA_GetDiscoveredPortAttributes(3LIB)
SMHBA_GetFCPhyAttributes(3LIB)
SMHBA_GetPersistentBinding(3LIB)
SMHBA_GetPortAttributesByWWN(3LIB)
SMHBA_GetProtocolStatistics(3LIB)
SMHBA_GetSASPhyAttributes(3LIB)
SMHBA_GetVendorLibraryAttributes(3LIB)
SMHBA_GetWrapperLibraryAttributes(3LIB)
SMHBA_RegisterForAdapterAddEvents(3LIB)
SMHBA_RegisterForAdapterEvents(3LIB)
SMHBA_RegisterForAdapterPhyStatEvents(3LIB)
SMHBA_RegisterForAdapterPortEvents(3LIB)
SMHBA_RegisterForAdapterPortStatEvents(3LIB)
SMHBA_RegisterForTargetEvents(3LIB)
SMHBA_RemoveAllPersistentBindings(3LIB)
SMHBA_RemovePersistentBinding(3LIB)
- pool configuration manipulation library
cc [flag... ]file... [library... ] #include <pool.h>
The functions in this library define the interface for reading and writingresource pools configuration files, as well as that for commiting an existingconfiguration to becoming the running OS configuration (with respect to partitioning subsystems).The <pool.h> header provides type and function declarations for all library services.
The resource pools facility brings together process-bindable resources into a common abstractioncalled a pool. Processor sets and other entities can be configured, grouped,and labelled in a persistent fashion such that workload components can beassociated with a subset of a system's total resources. Thelibpool library providesa C language API for accessing this functionality, whilepooladm(1M),poolbind(1M), andpoolcfg(1M) make this facility available through command invocations from a shell. Each ofthose manual pages describes aspects of the pools facility; this page describesthe properties available to the various entities managed within the pools facility.These entities include the system, pools, and thepset resources for processor sets.
When the pools facility is enabled on a system, the behavior ofthe following functions is modified.
|
Each active entity within the resource pools framework can have an arbitrarycollection of named, typed properties associated with it. Properties supported by thepools framework are listed, with descriptions, under each entity below. In general,resource properties can be one of five types: boolean (bool), signed (int64) andunsigned (uint64) integers, floating point (double), andstring values.
All entities and resources support a string property for commenting purposes; thisproperty is available for use by management applications to record descriptions andother administrator oriented data. The comment field is not used by thedefault pools commands, except when a configuration is initiated by thepoolcfg utility,in which case an informative message is placed in thesystem.comment propertyfor that configuration.
|
Thesystem.allocate-method,system.bind-default,system.comment,system.name,system.poold.log-level,system.poold.log-location,system.poold.history-file,system.poold.monitor-interval, andsystem.poold.objectives propertiesare writable; thesystem.version property is not.
Thesystem.allocate-method property accepts only two values, “importance based” and “surplus todefault”. The default value for this property is “importance based”. The propertyis optional and if it is not present the library will allocate resourcesas though it were present and had the default value. These stringsare defined in <pool.h> asPOA_IMPORTANCE andPOA_SURPLUS_TO_DEFAULT.
If “importance based” allocation is defined, then during a commit the librarywill allocate resources to pools using an algorithm that observes minimum andmaximum constraints for resources but favors those resources with greater importance.
If “surplus to default” is defined, then during a commit the librarywill allocate minimum resources to all resource sets apart from default whichwill receive any surplus.
Thesystem.bind-default property defaults to true. This property interacts with theproject.poolresource control to specify the binding behavior for processes associated with aproject. Ifproject.pool is not specified, then this property has no effect. Ifproject.pool is specified and the specified pool exists, this property has noeffect. If the specified pool does not exist, perhaps because of areconfiguration, then this property controls the binding behavior for the project member.Ifsystem.bind-default is true, then the project member is bound to thedefault pool (identified as the pool for whichpool.default is true); otherisethe project member is refused access to the system. Care should betaken with the pools configuration if this property is set to false, soas to avoid denying users access to the system.
The variouspoold properties are used to configure the operation ofpoold(1M).
Thesystem.poold.log-level property is used to specify the level of detail providedin log messages. Valid values are:ALERT,CRIT,ERR,WARNING,NOTICE,INFO, andDEBUG.
ALERT provides the least level of detail,DEBUG the greatest. Seesyslog(3C)for more information about the meaning of these debug levels. If this propertyis not specified, the default valueNOTICE is used.
Thesystem.poold.log-location property is used to specify the location of the logfilesgenerated bypoold. The special value of “syslog” indicates that logged messagesshould be written tosyslog(). If this property is not specified, the defaultlocation/var/log/pool is used.
Thesystem.poold.history-file specifies the location of the decision history file which isused bypoold to improve the quality of its decision making overtime. If this property is not specified, the default location/var/adm/pool is used.
Thesystem.poold.monitor-interval property specifies the monitoring interval (in milliseconds) to be usedbypoold when sampling utilization statistics. If this property is not specified,the default value of 15 seconds is used.
Thesystem.poold.objectives property specifies any system wide objectives. An objectives property hasthe following syntax:
objectives = objective [; objective]*objective = [n:] keyword [op] [value]
All objectives are prefixed with an optional importance. The importance acts asa multiplier for the objective and thus increases the significance of itscontribution to the objective function evaluation. If no importance is specified, thedefault value is 1.
The “wt-load” objective is the only objective to which a system elementcan be set. This objective favors configurations that match resource allocations toresource utilization. A resource set that uses more resources will be givenmore resources when this objective is active. An administrator should use this objectivewhen he is relatively satisfied with the constraints established using the minimumand maximum properties and would like the DRP to manipulate resources freelywithin those constraints.
|
Thepool.default,pool.sys_id, andpool.temporary properties are not writable; all other listedproperties are writable.
If pool.scheduler is specified, it must be set to the name ofa valid scheduling class for the system. See the-c option forpriocntl(1) for a list of valid class names.
|
Thepset.comment,pset.max,pset.min,pset.name, andpset.poold.objectives properties are writable; thepset.default,pset.load,pset.size,pset.sys_id,pset.temporary,pset.type, andpset.units properties are not.
Thepset.load property represents the load on a processor set. The lowestvalue for this property is 0. The value ofpset.load increases ina linear fashion with the load on the set, as measured bythe number of jobs in the system run queue.
Thepset.poold.objectives property specifies an objective which is specific to a particularpset. See thesystem.poold.objectives entry for the specification of this property's syntax.
There are two types of objectives that can be set on apset:
This objective influences the impact that locality, as measured by lgroup data, has upon the chosen configuration. This objective can take one of three values:
If set, configurations that maximize resource locality are favored.
If set, configurations that minimize resource locality are favored.
This is the default value for this objective. If set, configuration favorability is uninfluenced by resource locality.
This objective favors configurations that allocate resources to partitions that are failing to preserve the specified utilization objective.
These objectives are specified in terms of an operator and a value.The operators are
The ``less than'' operator is used to indicate that the specified value should be treated as a maximum target value.
The ``greater than'' operator is used to indicate that the specified value should be treated as a minimum target value.
The ``about'' operator is used to indicate that the specified value should be treated as a target value about which some fluctuation is acceptable.
Only one objective of each type of operator can be set. Forexample, if the~ operator is set, the< and> operatorscannot be set. It is possible to set a< and a> operator together; the values will be validated to ensure that they donot overlap.
|
Thecpu.comment,cpu.pinned, andcpu.status properties are writeable.
Thecpu.status property can be set only to the following values:
Set the CPU offline.
Set the CPU online.
Disable interrupt processing on the CPU.
These values are defined in <sys/processor.h> as thePS_OFFLINE,PS_ONLINE, andPS_NOINTRmacros.
The shared objectlibpool.so.1 provides the public interfaces defined below. SeeIntro(3)for additional information on shared object interfaces.
|
shared object
64-bit shared object
Seeattributes(5) for descriptions of the following attributes:
|
Intro(3),pool_component_info(3POOL),pool_conf_open(3POOL),pool_conf_to_elem(3POOL),pool_create(3POOL),pool_error(3POOL),pool_get_binding(3POOL),pool_get_property(3POOL),pool_get_resource(3POOL),pool_resource_create(3POOL),pool_value_alloc(3POOL),pool_walk_pools(3POOL),attributes(5),smf(5)
Functions inlibpool can be used to manipulate static configurations even whenthe pools facility is not enabled. Seepooladm(1M) andpool_set_status(3POOL) for moreinformation about enabling the pools facility. The pools facility must be enabled,however, to modify the dynamic configuration.
Since the Resource Pools facility is ansmf(5) service, it can alsobe enabled and disabled using the standard Service Management Facility (SMF) interfaces.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |