You are on page 1of 2

Storage Strategies BY S T E V E P R YO R

Big Blocks and Big Iron —


The Large Block Interface

I f it is true that you can’t be too rich or


too thin, in data processing, programs
can never be too fast or consume too few
tapes. This support is present in BSAM,
BPAM, and QSAM, and in the COBOL
compiler, as well as the sort and other utili-
back-and-forth communication required
between the tape hardware, the channel,
and the CPU. IBM claims to have seen
resources. Performance is an important ties such as IEBGENER and the Volume elapsed time reductions of up to 50 percent
consideration in application programming; Mount Analyzer. The maximum size of a in some cases with 256KB blocks.
no matter how fast the processors and logical record that the access methods can Naturally, the use of the LBI requires
devices, they will never be sufficiently fast write is still unchanged, at 32KB. some changes. Like all enhancements in
to meet the needs of all possible workloads. OS/390, existing JCL and applications will
If I/O performance is an important con- for the most part continue to work
sideration for users, it is equally so for unchanged, and some action on the part of
storage administrators. This is especially Although current the user is usually required to take advantage
true since the backup and recovery func- hardware supports of LBI. Although LBI supports a maximum
tions performed in storage administration tape blocksize of 256KB, the maximum
often involve moving very large amounts blocks no larger blocksize that can now be specified in JCL
of data to and from tape. Often, the per- than 256KB, the LBI is 2GB. The BLKSIZE parameter now
formance of applications and storage accepts specifications in kilobyte,
administration utilities is limited by the positions DFSMS megabyte, or gigabyte units, such as BLK-
blocksize used. to support much SIZE=4MB or BLKSIZE=256KB. If an
Most applications write blocks no larger attempt is made to open a dataset using a
than 32KB. This limit is archaic, and can be larger blocks and blocksize larger than that supported by a
attributed to the fact that the standard other devices. device, a S013-68 abend results. To avoid
access methods (BSAM, QSAM, etc.) are this error, it may be useful to issue a
limited to reading and writing blocks no DEVTYPE macro using the new AMCAP
larger than this. Larger blocks, up to the (access method capacity) keyword to dis-
maximum size supported by the device, can With larger blocks comes more efficiency. cover the maximum blocksize supported by
be read and written, but this requires the use This efficiency is primarily in the form of the device before opening a dataset on it.
of EXCP access and is much more com- reduced channel overhead. Modern tape The AMCAP keyword returns 32 bytes of
plex. All MVS devices (disk and tape) hardware is very efficient in itself in terms information that includes not only the
support blocks larger than 32KB, and it is of space utilization - even when an applica- maximum blocksize supported by the
particularly onerous to have to reblock tion writes a very small block, the tape on device, but whether the LBI can be used and
files to smaller sizes to read/write open which it is written is actually filled to the optimal blocksize, which may be some-
systems data. Yet, until recently, there was capacity, because the tape control unit what different from the maximum, as well.
no way for ordinary applications to get actually writes data to the tape in The LBI also changes the format of the
around this limitation. “superblocks” of as much as 300KB or Block Descriptor Word (BDW) for variable-
more. These superblocks are visible only to length records. In a dataset containing
ADDRESSING THE PROBLEM: the hardware and not to normal access variable-length blocks, the first four bytes of
THE LARGE BLOCK INTERFACE methods, or even to EXCP-level pro- each block consist of a BDW, which contains
gramming. The real savings from large the length of the block. In a file without
OS/390 2.10 addresses this problem with blocks comes with reduced elapsed time. blocks larger than 32KB in size, the high-
the Large Block Interface (LBI). LBI Data is sent to the tape channel in larger order bit of the BDW is zero, and the length
allows the use of up to 256KB blocks on bursts, which can be transferred at a higher of the block is contained in the first two
IBM 3590 (Magstar) tape drives and up to average speed. Fewer blocks being sent bytes. With LBI, the high-order bit of the
64KB blocks on other types of cartridge also decreases the amount of per-block block is on (x’80’) and the block length

TECHNICAL SUPPORT • JULY 2001 ©2001 Technical Enterprises, Inc. Reproduction of this document without permission is prohibited.
occupies the entire remaining 31 bits of the methods will use at OPEN time when sys- COPYSDB=parameter in the DEVSUPxx
four-byte BDW. Applications that use tem-determined blocksize is in effect. In member of SYS1.PARMLIB determines
BSAM or EXCP, and therefore do their own addition to JCL, the blocksize limit can be which value of the SDB= parm serves as the
blocking and deblocking, must be aware of set in the data class, or in the DEFSUPxx default. The sort also recognizes the SDB=
the new format in order to process large member of SYS1.PARMLIB (the TAPE- parm when it is coded on an OPTION con-
blocks correctly. In addition, BSAM appli- BLKSZLIM parameter). The default value, trol statement. Of course, the actual block-
cations must also take into account some of course, is 32KB, so as to maintain down- size used is subject to the BLKSZLIM value
changes in the result of READ, CHECK, ward compatibility with prior releases of and the maximum blocksize supported for
and SYNADAF macros — the block length OS/390. Blocksize limiting takes effect the device.
for files which use LBI is at a different only when the system is determining the With the SDB= parm, IEBGENER must
location in the status area, for example. blocksize to use, never when it is specified now perform PARM processing where it did
In order to make use of LBI, a bit in the by the user. not do so before. This can lead to problems,
DCB Extension, DCBEULBI, is set if the since parm values coded on the IEBGENER
BLKSIZE= parameter is specified on the LBI AND IEBGENER EXEC statement were ignored previously.
DCBE macro. (It may also be set in a DCB Therefore, a job that (invalidly) specified
OPEN exit). If this bit is set, it indicates that The introduction of the LBI has an impact PARM=’SIZE=999999’, which ran correctly
LBI is in use, and that the blocksize will be on one of the most commonly used utilities under OS/390 release 2.9, might fail when
obtained from an eight-byte field in the in any data center, IEBGENER. IEBGENER run under release 2.10, which validates the
DCBE, rather than from the DCB. If this has used system-determined blocksize for PARM field. This behavior is documented in
value for blocksize in the DCBE is left at some time, whenever both the LRECL and APAR OW4973.
zero, and is coded elsewhere, system-deter- the RECFM are specified for the output DFSMS continues to evolve with version
mined blocksize will be in effect, and OS/390 (SYSUT2) dataset. In all other cases, the 2.10 and will no doubt continue to do so,
will calculate the best blocksize to use. With blocksize is copied from the SYSUT1 adding more capability, performance, and yes,
DCBEULBI on, the system will choose the dataset. Although this has been true since complexity, to the storage administrator’s task.
optimum blocksize for the device, which may system-determined blocksize was intro- Although current hardware supports blocks no
be larger than 32KB for tape devices. duced, message IEB368I SDB USED FOR larger than 256KB, the LBI positions DFSMS
However, it may not always be desirable OUTPUT was introduced only recently, to support much larger blocks and other
to write blocks as large as can be supported with APAR OW46214. devices.
by the hardware. For example, while Of more concern is the introduction of a
Magstar tape drives support a maximum new PARM recognized by IEBGENER to
blocksize of 256KB, if the same tapes are to control the use of LBI. Specifying NaSPA member Steve Pryor is a senior soft-
be used on 3490-type drives, which support PARM=’SDB=LARGE’ allows the ware developer with DTS Software, Inc., a
only 64KB blocks, then it may make sense SYSUT2 output dataset to contain blocks vendor of enterprise storage management
to limit the size of the blocks to 64KB to larger than 32K, while values of products. Steve has been involved in software
allow the datasets to be read on both types ‘SDB=INPUT’ or ‘SDB=SMALL’ indicate development, storage management, and
of drive and avoid the need to reblock. A that the large block interface should be used disaster recovery for more than 20 years. He
new JCL parameter, BLKSZLIM=, estab- if large blocks are present on the input can be contacted at pryor@atlanta.com.
lishes a maximum blocksize that the access dataset, or not at all, respectively. The

WWW.NASPA.COM TECHNICAL SUPPORT • JULY 2001

You might also like