You are on page 1of 11

Term paper

of
operating system

Topic:- comparative study of different


device allocation

Submitted to-
submitted by:-
Mr.Sandeep Ranjan Sir
Anhul sharma

M1801B45
Reg no:- 10802861
BT
ECH CSE
 Understanding Device Allocation
A device is either a physical peripheral that
is connected to a Trusted Solaris system or a
software-simulated device called a pseudo-
device. Since devices provide a means for
the import and export of data to and from a
Trusted Solaris system, they must be provides a graphical user interface on top of
controlled to properly protect the data. The these commands called the Device
Trusted Solaris environment enables you to Allocation Manager that enables device
control data flowing through devices label ranges.
through device allocation and device label
ranges. Device allocation provides a way to control
the import and export of data. In the Trusted
 Device Allocation Solaris environment, the administrator
Device allocation provides a way to control decides which devices, if any, can be used to
data when it is imported and exported and import and export data and includes the
prevents unauthorized users from access to devices in the device_maps(4) file.
the information. In a Trusted Solaris system
the administrator decides which devices, if Users allocate devices through the Device
any, each user can use to import and export Allocation Manager. The Device Allocation
data and sets those devices to be allocatable. Manager mounts the device, runs a clean
The administrator then assigns to selected script to prepare the device and performs the
users the Allocate Device authorization . allocation. When finished, the user
The Configure Device Attributes, Delegate deallocates the device through the Device
Device Administration, and Revoke or Allocation Manager, which runs another
Claim Device authorizations are used to clean script and unmounts and deallocates
administer devices. Users authorized to use the device.
a device must allocate the device before
using it and deallocate the device when  Device Label Ranges
finished. Between the allocation and To prevent users from copying sensitive
deallocation of a device, the user has information, each allocatable device has an
exclusive use of it. associated label range that is assigned by an
administrator. To use an allocatable device,
The device allocation applications are the user must be currently operating at a
provided by the Solaris SunSHIELD Basic label within the device's label range. If the
Security Module (BSM). Refer to Chapter 4, user is not, allocation is denied. The user's
"Device Allocation," in current label is applied to data imported or
the SunSHIELDTM Basic Security Module exported while the device is allocated to the
Guide. The Trusted Solaris environment user. The label of exported data is displayed
when the device is deallocated so that the
user can physically label the medium
containing the exported data.
The Device Allocation Manager is accessed
Examples of devices that have label ranges from the Tools subpanel on the Front Panel.
are frame buffers, tape drives, diskette and The Device Allocation Manager is available
CD-ROM drives, printers, and network to users with the Allocate Device
interfaces. authorization for allocation and deallocation
only. Normal users cannot see if a device is
currently allocated to another user and
cannot perform maintenance through the
Device Administration button. The Device
Allocation Manager is shown in the
 Administering Devices With the following figure.
Device Allocation Manager

Device Allocation Manager

 Device Administration Dialog Box


You display the Device Administration dialog box by clicking the Device Administration button
in the Device Allocation Manager main window.

Figure 1-8 Device Administration Dialog Box


Buttons in the dialog box do the following: • New, configure - Displays the
Device Allocation Configuration dialog
• Revoke - Moves the selected device box through which you can create or
from a busy (allocated) state to an configure a device allocation.
available (deallocated) state.  Device Allocation Configuration
• Reclaim - Makes available a device Dialog Box
currently in an error state. To use the Device Allocation Configuration
dialog box requires the Configure Device
You must have the revoke or reclaim device Attributes authorization. You display the
authorization for the above actions. dialog box by clicking the Configuration
button in the Device Allocation
• Delete - Makes a device unavailable. Maintenance dialog box.

Figure 1-9 Device Allocation Configuration Dialog Box


The Device Allocation Configuration dialog specified in the Authorizations field), no
box is divided into three parts: users (if device is not allocatable), or all
users (if no authorizations required), and
• Device security attributes - Includes which authorizations to require for
device name and type, minimum and device allocation.
maximum labels, clean program, and • Deallocation options - For
device map. deallocating any allocated devices on
• Allocation specifications - For reboot and deallocate any allocated
specifying whether the device may be devices on logout.
allocated from Trusted Path or non-
Trusted Path (for command line users),
whether the device may be allocated by
authorized users (with the authorizations
 Device Allocation Authorizations you display the Device Allocation
Dialog Box Authorizations dialog box. It lets you
By clicking the Authorizations button in the specify the authorizations required for using
Device Allocation Configuration dialog box, the device.

 Device Allocation Authorizations Dialog Box

 Device Allocation Databases and • add_allocatable(1M) - Adds devices


Commands to the allocation databases.
If you do not have access to the Device • allocate(1) - Manages the ownership
Allocation Manager, you can use the of devices through its allocation
commands below to administer allocatable mechanism. It ensures that each device
devices. The commands are effective is used by only one qualified user at a
whenever use of the Device Allocation time.
Manager would be effective. The commands • deallocate(1) - Deallocates a device
check for authorization. The commands use allocated to the evoking user.
the device • list_devices(1) - Lists the allocatable
databasesdevice_allocate(4), device_dealloc devices in the system according to
ate(4), and device_maps(4). Note that the specified qualifications.
1M commands are not intended for non- • dminfo(1M) - Displays information
administrative users. about device entries in the device maps
file.
the device_clean(1M) man page for
interface detail.)
 Device Clean Scripts Not all allocatable devices require a device
Device clean scripts are special scripts that clean program. Devices that do not keep
are run when a device is first allocated. states and do not use removable media do
Clean scripts address two security concerns: not need a device clean program.
• Object reuse - The requirement that a Device clean programs for tape, floppy disk,
device is clean of previous data before CD-ROM, and audio devices are provided
being allocated or reallocated. by the Trusted Solaris environment. The
• Media labeling - The requirement configurable nature of the user device
that removable information storage allocation mechanism enables an
media have a physical label indicating administrator to install new devices and
its label. While the ultimate configure device clean programs
responsibility for putting the labels on accordingly.
the removable media rests with the user,
the device clean scripts can prompt the
 Understanding I/O device
user to do so.
allocation in z/OS
The name of a device clean script for a
specific device is stored with that device's When you submit a job, you identify I/O
entry in thedevice_allocate(4) file. The devices required by the job. The device
operations of each device clean program are information can be obtained from either a
specific to each device. The following is a catalog, SMS overrides, or specific UNIT
list of tasks that a device clean program parameters on DD statements. Before the
performs: job can continue execution, z/OS® must
allocate all those devices to the job.
• Eject media - Devices that store
information on removable media must There are three ways to specify device
be forced to eject that media upon allocation for a job using UNIT parameters
deallocation or reallocation of the on DD statements. On the UNIT=
device, to prevent passing information parameter, specify one of the following:
to the next user of the device who may
be at a different label. • A specific device number
• Reset device state - Devices that • A generic device type
keep state information can potentially be • An esoteric device group
used as a covert channel by the users.
Thus driver status information must be Indicating a specific device for allocation
reset to default values during
deallocation of the device. To request a device explicitly for a job,
• Remind user about media labeling - specify a device number on the UNIT=
Removable information storage media parameter or on the corresponding dynamic
be labeled with appropriate external allocation parameter. If that device is
media labels. The device user's label is available, z/OS allocates the device to the
passed to the device clean program job. However, if the device is unavailable
when it is invoked (See (for example, allocated to another job), your
job must wait until the device is available For more information, see the UNIT=
for allocation. parameter description in z/OS MVS JCL
Reference.
Specifying a generic device type for
allocation Specifying an esoteric device group for
allocation
z/OS logically groups device types with
similar characteristics and assigns the group A job that specifies an esoteric device
a generic name. Such a group is called a group is requesting z/OS to allocate a device
generic device type. z/OS, for example, from that group. An esoteric device group
groups the 3330-1, 3330-2, and 3333-1 into can include devices of different generic
a generic device type named 3330. Any time device types. All of the devices that you
a program allocates a 3330, z/OS interprets assign to an esoteric device group must be of
it to mean any of the devices in that generic the same device class with the following
device type. exception: you can define esoteric device
groups that contain devices from both
To request a device allocation, you can DASD and tape device classes but this is not
specify a generic device type on the UNIT= recommended.
parameter. z/OS allocates a device from the
specified generic device type. For example, Devices belong to one of the following
if you code the following DD statement: classes:

//OUTPUT DD UNIT=3330,... • Channel-to-channel adapters


• Communication devices
z/OS allocates a device from generic device • Direct access devices
type 3330. • Display devices
• Character readers
If you specify a device number, such as • Tape devices
3330, that may be mistaken for a unit device • Unit record devices
type, precede the device number with a
slash. To request device allocation, you can
specify an esoteric device group on the
For example, if you code the following DD UNIT= parameter. For instance, DASD and
statement: TAPE are group names that identify a group
of devices eligible for allocation to satisfy a
//OUTPUT DD UNIT=/3330,... UNIT=group request (for example,
UNIT=DASD, or UNIT=TAPE on the DD
z/OS allocates the device that has the device JCL statement).
number 3330.
z/OS uses the eligible device table (EDT) to
Note: determine the set of devices associated with
An esoteric device name must not contain a the esoteric device group. Figure 12 gives an
slash (/). example of relationships among generic and
esoteric device groups.
Figure 12. Relationships among Generic installation uses these procedures, you must
and Esoteric Device Groups define these esoteric device groups to HCD.

The group named SYSSQ must include only


tape devices or only direct access devices.
The group named SYSDA must include only
direct access devices.

In addition, your installation might use other


cataloged procedures that also refer to these
or to other esoteric names. To determine
which esoteric groups your installation uses,
check the UNIT= parameter on the
When z/OS allocates a tape device to a job, cataloged procedure DD statements.
it serializes access to the specified esoteric
device group until the allocation request is  Specifying order in an
satisfied. Only the devices that belong to the
specified esoteric device group are
esoteric with the device
unavailable for allocation to other jobs. preference table
When the tape device is automatically
switchable, all other automatically An esoteric device group can include
switchable devices of that generic device devices of more than one generic device
type are unavailable for allocation to other type. When z/OS attempts to allocate a
jobs during device selection. Referring demountable device, a unit record, or a
to Figure 12, assume that TAPE151 is printer from an esoteric device group, it
device 151 and TAPE152 is device 152 and turns to the device preference table that
that both devices are automatically defines the order in which to attempt the
switchable. If one jobstep requests allocation. The system uses the table to
UNIT=TAPE151 and during the selection serialize its selection of those devices.
process another jobstep requests
UNIT=TAPE152, the system does not HCD provides a predefined device
consider TAPE152 to be eligible for the preference table that defines the generic
second jobstep. This action occurs because device types and lists them in order of
both TAPE151 and TAPE152 are generic performance. (The first device type on the
type 3490 and are automatically switchable. list is the fastest. The last device type on the
list is the slowest.) You can use the default
device preference table values for a generic
or you can specify a different value to
change the allocation order.

 Required esoteric device groups For tape requests, the system considers
many factors: the type of request, the
A number of procedures in the IBM- devices eligible to satisfy the request, and
provided SYS1.PROCLIB refer to the the characteristics of each eligible device.
esoteric names SYSDA or SYSSQ. If your Based on these factors, the system selects
the optimal device to allocate. z/OS allows
users to participate in the selection process serializes access to the esoteric device
through the use of SSI function code 78 group.

 Advantages of specifying an To summarize how the system handles the


esoteric device group different UNIT specifications, here are three
examples. The first two examples describes
By requesting a specific device (for dedicated devices and the third describes
example, UNIT=570), you limit z/OS to a automatically switchable devices.
choice of only one device, thereby
decreasing the probability that the device The first example compares the likelihood of
will be available when the job needs it. In the system being able to satisfy the
contrast, by requesting a generic device following specific and generic device
type, you can allow z/OS a choice of several requests:
devices, thereby increasing the probability
that a device will be available when the job • UNIT=270
needs it. Of course, this increase in • UNIT=3480, where the devices are
probability assumes that there will be more defined at addresses 270, 273, 285,
than one device of that generic type 294, 366, and 414.
available for allocation.
In this case, it is more likely the request can
When you request a generic device type, be satisfied by any of the six devices eligible
z/OS serializes access to that generic device with the UNIT=3480 request than with the
type. This means that z/OS does not allocate UNIT=270 request.
devices from that generic device type to
other jobs until z/OS satisfies your jobstep The second example shows how you can
allocation request. Because z/OS makes the subdivide devices into two esoteric
entire generic device type unavailable for specifications so that two jobs can have
allocation to other jobs, there might be a similar device requests satisfied at the same
delay in satisfying other jobs' allocation time. The devices are defined as follows:
requests. Therefore, requesting a generic
device type increases the probability that • TAPE1 is 270, 273, and 285
there will be a delay in satisfying allocation • TAPE2 is 294, 366, and 414.
requests for other jobs. However, waiting for
a generic device type generally takes much In this case, jobs that request TAPE1 can be
less time than waiting for a specific device. in allocation at the same time as jobs that
request TAPE2.
Assuming that the esoteric device group
identifies more than one device, a device The third example is the same as the second
will more likely be available for a example and the UNIT specifications are the
UNIT=TAPE request, for example, than if same; however, all devices are automatically
the request was for a specific device. Also, if switchable. In this case, jobs that request
you assume that the esoteric device group TAPE1 and jobs that request TAPE2 cannot
does not contain all of the devices from any be in allocation at the same time. The
one generic device type, devices from each second job will have to wait for the first job
generic device type might still be available to complete allocation. This will be true
for allocation to other jobs while z/OS
whether the jobs are on the same system or Requests for dynamic allocation are not held
on different systems. up by requests waiting for batch allocation,
even though the jobs awaiting batch
 Holding or releasing allocation are holding resources.
resources while a job waits
A dynamic change can be held up from
completing if allocation is waiting for a
Assuming that you are not using JES3 pre-
response. For information about automating
execution setup, to make best use of device
responses to allocation messages.
allocation, you must decide whether the
system should hold or release resources
(non-sharable devices and volumes) while a
job waits for those resources. When the
operator requests that allocation for a
specific job is to wait for resources, the
system issues a message that asks the
operator to reply with either HOLD or
NOHOLD.  Bibliography
HOLD www.scientiairanica.com
The system holds non-sharable
devices and volumes already www.jmit.ac.in/cse5.doc
allocated to the job. Select this http://docs.sun.com/app/docs/doc/816-
option if the needed resources are
1047/6m7g9esue?l=en&a=view
constantly being freed, and
allocation requests for other jobs will http://publib.boulder.ibm.com/infocent
probably not be held up by the er/zos/v1r9/topic/com.ibm.zos.r9.idaj1
requests made for this job. This job 00/all999v3.htm
can hold up other requests in either
of two ways:

1. The job has already


allocated units needed for
another job.
2. The job is waiting for
devices to which z/OS is
controlling access through
serialization.

NOHOLD
The system releases non-sharable
devices and volumes already
allocated to the job. Select this
option if the needed resources may
not be freed for some time, and
allocation a

You might also like