1. Technical Field
The present invention relates generally to an improved data processing system and in particular to a data processing system and method for maintaining attributes of multiple devices in association with a single device identifier. Still more particularly, the present invention provides a mechanism for overriding device default values within a data structure of device attributes with a single device identifier maintained in association with devices of different device classifications.
2. Description of Related Art
A conventional operating system implementation utilizes a group of device attributes to define attributes of system objects, such as peripheral adapters and devices. For example, the AIX operating system uses a group of device attributes implemented as predefined attribute objects (PdAt) that are managed by an object data manager (ODM). Attributes of a particular device classification are collectively grouped together based on a unique device identifier—for example, a uniquetype value associated with a classification of devices.
A uniquetype may support more than one device by way of model_map stanza. Devices that share a uniquetype all share the same initial values for the attributes defined by default entries of the PdAt. Devices requiring one or more different default values for a common attribute must be defined with separate uniquetypes. Thus, the performance of such a device is limited during system boot, install and operation until vendor specific ODM data, e.g., a PdAt entry for the device, is supplied.
It would be advantageous to provide a mechanism for maintaining attributes of multiple device types or classifications in association with a single device classification identifier. It would be further advantageous to provide a mechanism for maintaining attributes of multiple device classification having identical attribute sets in association with a single device classification identifier. It would still be further advantageous to provide a mechanism for overriding device default values within a data structure that supports association of device attributes with multiple device classifications via a single device classification identifier.
The present invention provides a method, computer program product, and a data processing system for maintaining object configuration data in a data processing system. A first set of attribute entries is stored in a database. The first set of attribute entries is associated with a first object classification and a second object classification. A second set and a third set of attribute entries each comprising at least one attribute entry are stored in the database. The second set of attribute entries is associated with the first object classification, and the third set of attribute entries are associated with the second object classification. A first object of the first object classification is configured with the first set of attribute entries and the second set of attribute entries, and a second object of the second object classification is configured with the first set of attribute entries and the third set of attribute entries.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
With reference now to the figures and in particular with reference to
Referring to
Peripheral component interconnect (PCI) bus bridge 214 connected to I/O bus 212 provides an interface to PCI local bus 216. A number of modems may be connected to PCI local bus 216. Typical PCI bus implementations will support four PCI expansion slots or add-in connectors. Communications links to clients 108-112 in
Additional PCI bus bridges 222 and 224 provide interfaces for additional PCI local buses 226 and 228, from which additional modems or network adapters may be supported. In this manner, data processing system 200 allows connections to multiple network computers. A memory-mapped graphics adapter 230 and hard disks 232a and 232b (collectively referred to as hard disks 232) may also be connected to I/O bus 212 as depicted, either directly or indirectly.
In the illustrative example, hard disks 232 is representative of two distinguishable hard disks. For example, hard disks 232a may have an identifier associated therewith representative of the manufacturer and model number of hard disk 232a, and hard disk 232b may have a identifier associated therewith representative of the manufacturer and model number of hard disk 232b.
For illustrative purposes, assume each of hard disks 232a and 232b have distinguishable identifiers. Various device attributes or parameters are stored by system 200 that facilitate configuration of hardware devices, such as hard disks 232, optical drives, other hardware devices or software devices, for proper operation thereof. The O/S of system 200 may retrieve such parameters, for example device attributes of hard disks 232, at boot up for initial configuration of hard disks 232 or during runtime to interact with hard disks 232. The present invention provides for a reduction in the quantity of configuration attribute data for supporting objects such as hard disks 232 as described more fully below.
As referred to herein, an attribute set is a collection of device attributes or parameters necessary for proper configuration of a device. Instances of devices sharing identical attributes and identical attribute values are associated with a respective attribute set via an identifier. In the AIX operating system, devices instances that are associated with an identical attribute set are associated with a uniquetype value. For example, instances of a hard disks having a common manufacturer and model number are assigned a common uniquetype and thus are configured with an attribute set that is associated with the uniquetype of the hard disk instances.
A device, such as a SCSI hard disk, may have an attribute set that is identical to another device of similar operational capabilities. In a conventional configuration of device attribute data, if one (or more) attribute of a first device has a different attribute value than that of the same attribute of a second device, a different attribute set is required to be stored on the data processing system. Various devices of similar operational capabilities may often have identical attributes with a small subset of the attributes having differing values between the devices. Thus, recordation of attribute sets for each of the similar devices results in attribute replication.
Those of ordinary skill in the art will appreciate that the hardware depicted in
The data processing system depicted in
In the illustrative example, the uniquetype value is a concatenation of a device class, a device subclass and a device type. For example, a device class may comprise all devices designated as disk devices, a subclass may comprise devices designated as SCSI devices, and a device type may comprise disk devices of a particularly storage capacity. In the examples provided herein, hard disk 232a comprises a disk device with a device class of disk, a device subclass of fcp, and a device type of mydisk1, and hard disk 232b comprises a disk device with a device class of disk, a device subclass of fcp, and a device type of mydisk2. The uniquetype value is derived by concatenating the device class, subclass, and device type with slash “/” delineators therebetween.
Each attribute entry includes various fields with each field having a specified value or null (designated “ ”). For example, each of attribute entries 410a-410d comprise respective fields 411-419, 421-429, 430-439 and 440-449. Each set of fields, e.g., fields 411-419, have respective field labels of uniquetype, attribute, default, values, width, type, generic, rep and nls_index. The particular fields shown, and the values or the lack thereof, assigned thereto, are illustrative only and are intended only to facilitate an understanding of the present invention.
Different system devices may have attributes unique thereto, may share attributes with other devices, or may have a combination of attributes that are shared among other devices as well as one or more attributes that are unique to the device. In the present example, hard disks 232a and 232b have identical attributes of queue_depth, q_type, unique_id, and model_map respectively specified by attribute entries 410a-410d and 450a-450d. Notably, hard disks 232a and 232b have common attribute values for attributes queue_depth, q_type, and unique_id. Specifically, hard disks 232a and 232b each have queue_depth attribute values of “1” as respectively specified by queue_depth default field 413 and 453, q_type values of “single” respectively specified by q_type default field 423 and 463, and unique_id attribute values of null (“ ”) respectively specified by unique_id default field 433 and 473. In the present example, hard disks 232a and 232b only have different values for model_map attributes defined by attribute entries 410d and 450d. Particularly, hard disk 232a has a model_map attribute value of “0810MYDISK MODEL ONE” specified by model_map default field 443, and hard disk 232b has a model map attribute value of “0810MYDISK MODEL TWO” specified by model_map default field 483. Although hard disk 232a and 232b have identical attributes of queue_depth, q_type, unique_id, and model_map, separate attribute sets 401 and 402 are required to be maintained in an ODM database due to the different model_map attributes when the ODM and ODM database are configured in a conventional arrangement.
Thus, eight total attribute entries 410a-410d and 450a-450d are required for defining attribute sets 401 and 402 of devices 252a and 252b in the conventional configuration depicted in
The example attribute entries provided are illustrative only, and attributes of a single device are typically more numerous. For example, typical hard disks often require thirty to forty such attributes for device configuration.
As the number of peripheral deices supported by a system is increased, the requisite number of attribute entries maintained in ODM database 302 increases correspondingly. Disadvantageously, many attribute entries are often redundant as devices have common attributes that share configuration values. In the above example, attribute entries for attributes of queue_depth, q_type, and unique_id are duplicative in that the only difference in attribute entries is in the uniquetype value used for indexing the attribute values for a hard disk assigned to a particular uniquetype. Such replication of device attribute data is wasteful of system resources, e.g., the storage resources required to maintain ODM database 302. Additionally, ODM access is hindered as the number of attribute entries increases resulting in corresponding increases in ODM interrogation and retrieval latencies. Moreover, as the number of attribute entries is increased, maintenance of the ODM data becomes more complex as well.
In the present example, hard disks 232a and 232b each have a common set of attributes comprising queue_depth, q_type, unique_id and model_map. A single attribute entry referenced by a uniquetype is recorded in ODM database 302 for both hard disks 232a and 232b when both hard disks have identical values for a common attribute. For example, attribute entry 510a defines the attribute “queue_depth” and includes a uniquetype field 511 with a uniquetype value (disk/fcp/mydisk) that is shared between hard disks 232a and 232b. In a similar manner, attribute entries 510b and 510c that respectively define the attributes q_type and unique_id are assigned to both hard disk 232a and 232b. Accordingly, PdAt entries 510a-510c respectively define queue_depth, q_type, and unique_id attributes and associated field values for both hard disks 232a and 232b.
Attribute entry 510d is included in ODM database 302 for defining the attribute model_map that has an attribute value unique to a particular device classification. In the present example, attribute entry 510d is uniquely assigned to hard disks having a model_map attribute value of “0810MYDISK MODEL ONE”, e.g., hard disk 232a and other similar classified hard disks, and attribute entry 510e is uniquely assigned to hard disks having a model_map attribute value of “0810MYDISK MODEL TWO”, e.g., hard disk 232b and other similarly classified hard disks. Notably, each of attribute entries 510d and 510e are uniquely associated with a particular classification of hard disk but share a common device uniquetype.
Thus, devices having identical attribute sets with one or more different attribute values are respectively associated with a set of attribute entries comprising an attribute entry subset shared with other devices of one or more different device classifications and one or more attribute entries that are uniquely associated with the device. In the illustrative example, hard disk 232a (and other instances of similarly configured hard disks) has an attribute entry set that comprises an attribute entry subset 501 shared with other device classifications and a attribute entry subset 502 that is only associated with devices having an identical set of attributes and attribute values. In a similar manner, hard disk 232b (and other instances of similarly configured hard disks) has an attribute entry set that comprises attribute entry subset 501 also assigned to other devices of different device classifications and attribute entry subset 503 that is uniquely associated with devices having an identical set of attributes and attribute values.
Attribute entries 500 shown in
In accordance with another embodiment of the present invention, override default values are provided by an attribute entry that is uniquely associated with a particular device classification. For example, model_map attribute entries are uniquely associated with device instances of a common device classification in the illustrative examples and are used for recording override default values as described below.
Attribute queue_depth has a default value of “1” defined by default field 613 of attribute entry 610a. In a similar manner, attribute q_type has a default value of “simple” defined by default field 624 of attribute entry 610b, and attribute unique_id has a default value of null (“ ”) defined by default field 633 of attribute entry 610c.
In accordance with a preferred embodiment of the present invention, a field of an attribute entry that is uniquely associated with a particular device classification is used to store override values of attributes that are defined in an attribute entry commonly associated with multiple device classifications. For example, field 644 of attribute entry 610d uniquely associated with the device classification of hard disk 232a stores an override value of “200C00” for the attribute unique_id and an override value of “2” for the attribute queue_depth. In a similar manner, field 654 of attribute entry 610e uniquely associated with the device classification of hard disk 232b stores an override value of “8” for the attribute queue_depth.
Thus, classifications of devices sharing a common set of attributes may have a subset of attributes commonly associated with the device classifications but may have override values for one or more of the attributes of the common set of attributes. Accordingly, replication of device attribute entries is advantageously avoided for devices sharing a common set of attributes but that require different attribute values.
It is important to note that while the present invention has been described in the context of a fully functioning data processing system, those of ordinary skill in the art will appreciate that the processes of the present invention are capable of being distributed in the form of a computer readable medium of instructions and a variety of forms and that the present invention applies equally regardless of the particular type of signal bearing media actually used to carry out the distribution. Examples of computer readable media include recordable-type media, such as a floppy disk, a hard disk drive, a RAM, CD-ROMs, and DVD-ROMs. The computer readable media may take the form of coded formats that are decoded for actual use in a particular data processing system.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Number | Name | Date | Kind |
---|---|---|---|
5161223 | Abraham | Nov 1992 | A |
6397221 | Greef et al. | May 2002 | B1 |
Number | Date | Country | |
---|---|---|---|
20060080355 A1 | Apr 2006 | US |