A pattern search request embedded in a transport mode command word for a channel subsystem in a storage system
Patent Information
- Application Number
- JP2024504206
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-08
- Filing Date
- 2022-09-05
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2042-09-05
AI Technical Summary
Existing channel subsystems in storage systems face inefficiencies in pattern search operations due to the need for repeated handshake signals and inefficient data transfer protocols, particularly in zHPF architectures, which limit the ability to perform pattern searches on data sets defined by physical keys.
Incorporating pattern search requests into device command words (DCWs) within the zHPF protocol, allowing the storage server to perform all search and comparison work in response to a single DCW, thereby reducing or eliminating channel handshaking and enhancing I/O operations.
This approach significantly improves I/O processing efficiency by enabling the storage server to perform pattern searches and comparisons within a single DCW, reducing handshake signals and optimizing data transfer operations.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a computer program product, system, and method for processing a pattern search request embedded in a transport mode command word for a channel subsystem. [Background technology]
[0002] Input / output (I / O) operations are used to transfer data between the memory and the input / output devices of a processing environment. Specifically, I / O operations are performed to write data from memory to one or more input / output devices and to read data from one or more input / output devices into memory.
[0003] To facilitate the processing of I / O operations, an I / O subsystem of a processing environment is used. The I / O subsystem is coupled to the main memory and I / O devices of the processing environment and directs the flow of information between the memory and the I / O devices. One example of an I / O subsystem is a channel subsystem. A channel subsystem uses channel paths as a communication medium. Each channel path includes a channel coupled to a storage server (also known as a control unit or storage controller), which is further coupled to one or more I / O devices to control these I / O devices.
[0004] Channel subsystems typically transfer data between I / O devices and memory using channel command words. The channel command word (CCW) identifies the command to be performed, and for the command to initiate a particular I / O operation, the CCW specifies the memory area associated with the operation, the action to be taken whenever the transfer to or from the area is completed, and other options. Thus, a known CCW contains a channel command, such as read, write, or control, along with the data address of the data area involved. The data is passed to the channel subsystem, which communicates the status of the I / O back to the issuing application.
[0005] During an I / O operation, a list of channel command words is retrieved from memory by the channel. The channel parses each command from the list of channel command words and forwards some commands to a processor in the storage server attached to the channel. The storage server then processes the commands. The channel tracks the state of each command and controls when the next set of commands should be sent to the storage server for processing.
[0006] Processing environments that incorporate CCWs have traditionally used unique protocols to transport the CCWs to storage servers. In a typical Fiber Connection (FICON) command mode channel program targeting a data format such as Count Key Data (CKD), one of a set of search commands is used to locate or establish a particular record area on a track prior to executing a separately transmitted read or write command. For example, with the Extended Count Key Data (ECKD) architecture for CKD format data, locate record operations such as the Define Extent (DX) and Locate Record (LR) commands are commonly used.
[0007] A well-known Fiber Optic Connection ("FICON") (Command Mode) write chain contains several CCWs that are supposed to allow a host server to transfer data to an attached storage system. As mentioned above, each CCW contains the command to be executed, points to control parameters, or points to a storage area that contains the data to be read or written. The CCW may point to a storage area directly, or it may point to a storage area using some form of indirect addressing (Indirect Address List (IDAL) or Modified Indirect Address List (MIDAL)).
[0008] A standard FICON write chain may contain Define Extent, Locate Record (Extended), and Write commands. Define Extent and Locate Record (Extended) may be grouped together in a prefix command. The Locate Record parameters describe the domain of the operation that will immediately follow in the chain. These parameters define the read or write domain type, the starting address for the data transfer, and the expected number of data transfer commands in the chain. The chain may also contain additional Locate Record (Extended) commands after the initial domain of the write command is completed. These additional Locate Record (Extended) commands are called embedded Locate Record commands and allow additional domains to be defined in the chain. These domains may be contiguous or non-contiguous.
[0009] In the Count Key Data (CKD) disk data format, the data field stores the user data. However, since data records can be of variable length, each data record also has an associated count field that provides a record identifier (record ID). By convention, this record ID is often used to specify a track address. An optional key field is also defined that contains additional information, such as a string (e.g., a file name), that can be used to identify the record. In addition to identifying the record, the count field provides the number of bytes in the optional key field and the optional user data area. Both the record ID and the key field allow a hardware search to be performed on a specific value. In a command mode channel program compatible with the CKD protocol, the storage server transfers a search argument from the channel, reads the count or key record area from the storage device or cache, and performs a logical comparison operation between the argument and the read area to locate the target record.
[0010] A CKD search command typically starts at a particular track (as defined by an earlier command in the chain), but then examines a particular field in each record and compares it to information that is typically a search argument provided by the host over the channel as described above. The host may request a search on a count field (ID) or a key field. The host may, for example, request that the field and argument match, or that the field have a value greater than the argument. A status returned by the storage server to the host indicates whether the storage server succeeded or failed in finding a record that satisfies the requested comparison. The host may choose to continue checking for a match, or may stop depending on the host program goals. For example, it may check multiple tracks, record by record, and incur significant command signaling handshaking overhead transferring across the link before a match is found. Once a match is found, the host may issue a write command to begin writing data to the data field of the successful search target, or may issue a read command to begin reading data from the data field of the successful search target.
[0011] In known command mode channel programs compatible with the CKD protocol, this process can be very inefficient, based on architectures from the 1960s and limitations associated with spinning disk type storage devices. The original CKD architecture was based on reading records from a spinning disk and comparing key fields to arguments passed by the host. As the disks logically spin, the storage server effectively reports "this is your record" or "this is not your record" to the host. The channel program, invisible to the storage server, determines what is done with the result of this test of one record. The most common result was to branch back and test the pattern again by sending another search command again for the next record. This chattering of handshake signals across the channel takes time and can interfere with other data transfers.
[0012] Gradually, there have been advances in architectures targeting CKD format data. For example, one known command mode channel program for data formats such as Count Key Data (CKD) has a mechanism for a FICON search command to indicate a "special search key mode" where the storage server may search all records for a particular track.
[0013] A further limitation of the current command mode ECKD architecture, related to its rotating disk origin, is that when an operation is performed on one field of a record (e.g., a key field), the disk direction is assumed to be to the subsequent field. For example, when a search is performed on a key field, the direction is assumed to point to the data field of that record. As a result, command mode channel search programs were written in such a way that they preserved information about the fields (e.g., count fields) in each record on which they operated in preparation for a successful search operation on a subsequent (e.g., key) field. According to the rules established for rotating disks, if a search on a key was successful, a backup operation was typically not available to read the count field. As a result, the count field of a record was typically read and saved before determining whether the key of this record matched the desired value (e.g., a search argument). If the key matched the argument, the saved count field was available to read / write data, and if not, the saved count field was typically discarded.
[0014] A recent improvement to the I / O architecture, High Performance FICON (HPF), features Fibre Channel Protocol (FCP) for transmitting device command words (DCWs) to the storage server. The DCWs may be used in channel command word descriptors (CCWDs) to represent multiple commands to be executed by the storage server. The commands are executed independent of the channel in that the status of the execution of individual commands is not tracked by the channel (or host). The storage server receives the multiple commands as a single information unit (IU) and is responsible for executing the commands in the appropriate fashion. By removing the responsibility for tracking individual commands from the channel, the performance of the channel is significantly enhanced. For example, the overhead associated with handshaking signals between the channel (or host) and the storage server can be significantly reduced.
[0015] In general, the number of commands that can be encapsulated in an IU for a DCW type operation is limited because the size of the transport layer in the DCW type operation is limited. In one known system, for example, the layer allows approximately 240 bytes of DCW data to be transmitted in the IU to the storage server. In this example, 80 bytes of the 240 bytes are reserved for DCW prefix parameters.
[0016] As mentioned above, in a typical Fiber Optic Connection (FICON) command mode channel program, one of a set of search commands is used to locate or determine the storage device to a particular record area on a track before executing a read or write command. A limited set of locate record operations, such as define extent and locate record commands, are also typically used in conjunction with the read and write system commands in a transport mode channel program that target a DCW. Thus, a write system command may be chained with a define extent and locate record command. In this way, when a single record is written to an I / O device, a DCW chain is created, for example, and sent to the storage server that controls the target I / O device. A DCW chain contains several DCWs, such as define extent, locate record, and write commands (or read commands or both), chained together in that order. The define extent and locate record commands that precede the read and write system commands are called prefix commands. A prefix command is followed by the prefix parameters described previously.
[0017] The FICON protocol, known as z High Performance FICON (zHPF) protocol, has a command set for use with transport mode channel subsystems. The known zHPF command set exhibits the behavior of the standard FICON architecture in that the known Define Extent / Locate Record Extended (DX / LRE) parameters may be included in the Initial Prefix (PFX) command of the DCW. The LRE parameters indicate which track, record, and / or field are used for the initial direction of an I / O operation in the FICON architecture. However, I / O operations performed against a data set defined by a physical key are not eligible for the known zHPF system. Therefore, the commands built into the DCW do not allow for pattern searches. Instead, the host provides the start record or track identification information to be used for the read or write operation in the DCW.
[0018] A known zHPF channel program contains a Transport Control Area (TCA) that contains the command and control parameters. Each command is represented by a Device Command Word (DCW), which contains a command code, flags to indicate chaining and other options, a control data count, and a data byte count if the command is used to transfer data. If the command transfers control data (command parameters) to the device, the control data follows the DCW in the TCA. The command codes used are the same as those used in the Channel Command Word (CCW).
[0019] Unlike CCWs, DCWs do not point to their corresponding I / O buffers. The I / O buffers for all DCWs are pointed to by the TCA, and the I / O buffer associated with a particular DCW is based on the amount of data transferred by the previous DCW.
[0020] System Z High Performance FICON ("zHPF") (Transport Mode) write chains compress the control data used to describe the transfer operations performed by the chain. The write DCW will specify a PFX command with an embedded CCW opcode and intent count. The embedded CCW opcode should be equal to the write command code used for the write CCW following the DX / LR or PFX in the FICON write chain. In addition, the prefix may also have an embedded locate record count and an embedded locate record list. These embedded locate record entries allow additional domains to be specified within a single DCW. In addition, there may be additional locate record extended DCWs in a transport mode chain that may also have embedded locate record entries. Summary of the Invention
[0021] Computer program products, systems, and methods are provided for packaging a pattern search request into a device command word (DCW) for transport mode processing in a channel subsystem for a storage system. By executing the pattern search request embedded in the DCW, for example, a storage server can perform all or substantially all of the search and comparison work of the pattern search in response to as little as one DCW from a host. As a result, in a transport mode architecture, such as a zHPF-compatible architecture modified to provide an embedded pattern search request according to the present description, all or substantially all of the channel handshaking normally associated with known command mode processing of a pattern search command can be reduced or eliminated.
[0022] In another aspect of the pattern search request embedded in the transport mode command word according to the present description, parameters for the pattern search function operating in response to the embedded pattern search request may be embedded in the Locate Record Extended (LRE) fields of the PFX / PFXR parameters of the DCW as defined in the z High Performance FICON (zHPF) protocol in one embodiment. For example, the pattern search behavior definition flags and other parameters may be embedded in existing fields in the first PFX / PFXR DCW in a chain of DCWs for a storage system compatible with the zHPF protocol. In this manner, compatibility with existing transport mode channel programs may be achieved while leaving known DCW I / O behavior unchanged or substantially unchanged.
[0023] In one embodiment, packaging the pattern search request includes packaging a key search pattern indicator and arguments for the pattern search request into a device command word. In an alternative embodiment, the embedded key search pattern parameters may include a key pattern search argument length parameter for defining the length of the key search pattern argument in embodiments having a variable length key pattern search argument. These key pattern search parameters may also be embedded into an existing Locate Record Extended (LRE) field, such as the first PFX / PFXR DCW in a chain of DCWs for storage systems compatible with the zHPF protocol, in one embodiment to achieve compatibility with existing transport mode channel programs.
[0024] In yet another aspect of the pattern search request embedded in the transport mode command word according to the present description, packaging the device command word may further include packaging an embedded input / output (I / O) operation command for initiating the I / O operation and a flag indicating that the I / O operation is to start in a precount field of a record that satisfies the embedded pattern search request. In one embodiment, the I / O operation command includes at least one of a read command and a write command embedded in the device command word. For example, the embedded I / O operation command may have at least one channel command word (CCW) embedded in the DCW. The I / O CCW may be embedded in the DCW using known techniques for the I / O CCW in a substantially unchanged manner to achieve further compatibility with existing transport mode channel programs. In other embodiments, a DCW with an embedded pattern search request is in a chain of DCWs where the same DCW does not have an embedded I / O operation command, such as an I / O CCW. In one embodiment, a DCW with an embedded pattern search request is before any DCW in the chain that has at least one of an embedded read command and an embedded write command.
[0025] In yet another aspect of the pattern search request embedded in the transport mode command word according to the present description, the locate record extended (LRE) parameter in the PFX / PFXR parameter of the DCW provides a starting direction for the execution of the embedded pattern search request. Furthermore, upon successful processing of the embedded pattern search request, the starting direction for the execution of the embedded CCW read / write operation is provided by the target record of the pattern search. Thus, upon successful completion of the requested pattern search, a known PFX / PFXR I / O operation initiated by the same DCW can be started using the direction provided by the successful pattern search. In this manner, the efficiency of I / O processing can be improved.
[0026] In one embodiment, packaging the pattern search command includes packaging pattern search request flags in a field of the DCW, the flags indicating at least one of a search field and a search type, a direction after success, at least one of a single record search and a multiple record search, and at least one of a single track search and a multiple track search, the search types including at least one of equal, greater than or equal, and greater than. These pattern search behavior parameters may also be incorporated into existing Locate Record Extended (LRE) fields, such as in the first PFX / PFXR DCW in a chain of DCWs for storage systems compatible with the zHPF protocol, in one embodiment, to achieve compatibility with existing transport mode channel programs.
[0027] In an alternative embodiment, the separate search type DCW has an embedded pattern search request, but does not have an embedded I / O command, such as an embedded read command or an embedded write command. In one embodiment, the separate search type DCW is placed in the transport control area (TCA) before the first read / write DCW. Thus, the read / write DCW placed thereafter would not have the enhanced pattern search behavior of this embodiment.
[0028] In yet another embodiment, packaging the pattern search request includes packaging a data pattern search indicator and a data pattern search argument such that the DCW has a pre-built pattern search request having both a key search pattern argument and a data pattern argument. Other pattern search behaviors may be requested depending on the particular application. In this manner, the pattern search request pre-built in the transport mode DCW may exhibit a variety of different behaviors as appropriate for the situation.
[0029] In another aspect of the presently described embodiment of an embedded pattern search request in a transport mode command word, a DCW having an embedded pattern search request is processed by a storage system, in one embodiment, the processing by the storage system includes receiving the DCW and using the embedded key search pattern argument to perform the pattern search requested by the embedded pattern search request.
[0030] In yet another aspect of a pattern search request embedded in a transport mode command word according to the present description, processing by the storage system includes receiving a device command word (DCW) for DCW transport mode processing in a channel subsystem for the storage system, the DCW having a pattern search request embedded in a PFX / PFXR parameter in the device command word (DCW) and a read / write channel command word (CCW) embedded in the DCW. In one embodiment, the pattern search request packages an embedded key search pattern argument in the device command word. The processing further includes performing the pattern search requested by the pattern search request in a start direction identified by a locate record extended (LRE) parameter in the PFX / PFXR parameter of the DCW. The read / write operation of the embedded CCW is performed in the start direction provided by the successful processing of the embedded pattern search request. [Brief description of the drawings]
[0031] [Figure 1] FIG. 1 is a diagram of an embodiment of a storage environment employing the use of a pattern search request embedded in a transport mode command word for a channel subsystem of the storage environment. [Diagram 2] FIG. 13 is a diagram of another embodiment of a storage environment employing the use of a pattern search request embedded in a transport mode command word for a channel subsystem of the storage environment. [Diagram 3] FIG. 13 illustrates an embodiment of a chain of I / O requests with a pattern search request embedded in a transport mode command word. [Figure 4] FIG. 13 is a diagram of an embodiment of a format for a pattern search request incorporated into a transport mode command word. [Diagram 5]FIG. 11 illustrates an embodiment of operations for processing a received transport mode command word having an embedded pattern search request. [Figure 6] FIG. 11 illustrates an embodiment of operations for packaging a transport mode command word to have an embedded pattern search request. [Figure 7] FIG. 1 is a diagram of an embodiment of a computer environment employing the use of a pattern search request embedded in a transport mode command word for a channel subsystem of the computer environment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0032] It will be readily understood that the components of the present embodiments, as generally described and illustrated in the Figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the present embodiments of apparatus, systems, methods, and computer program products, as presented in the Figures, is not intended to limit the scope of the embodiments as claimed, but is merely representative of selected embodiments.
[0033] The illustrated embodiments are best understood by referring to the drawings, in which like parts are designated with like numerals throughout. The following description is intended by way of example only and merely illustrates certain selected embodiments of devices, systems and processes consistent with the embodiments as claimed herein.
[0034] The pattern search request embedded in the transport mode command word for a channel subsystem according to the present disclosure provides a significant improvement to the computer art. For example, by a storage server processing the pattern search request embedded in a DCW, the storage server can perform all or substantially all of the search and comparison work in response to as little as one DCW from a host. In one embodiment, the DCW having the embedded pattern search request may be, for example, the first read / write DCW of a chain of DCWs.
[0035] By comparison, in known processes where individual commands are transmitted in channel subsystem command mode, the task of repeatedly attempting to identify records of interest is distributed among the host, the channel subsystem, and the storage server, resulting in numerous handshaking signals being transmitted back and forth as the search progresses. Such handshaking signals can occupy channel subsystem bandwidth that might otherwise be used for I / O operations, reducing the overall efficiency of the system.
[0036] Additionally, I / O processing in the zHPF architecture can be further enhanced to use the target record of interest of a successful embedded pattern search request as the starting point for read / write I / O processing, all in response to just one DCW. Furthermore, the directional rules can also be relaxed so that upon execution of subsequent commands in the first or subsequent DCWs in the chain, any and all fields of the record are accessible and available as soon as the target record is found.
[0037] In one embodiment, known PFX / PFXR DCW processing in a zHPF-compatible architecture is modified to add a key pattern search option to enable efficient pattern matching of a set of records. As described above, in a zHPF architecture modified to provide a built-in pattern search request, all or substantially all of the channel handshaking normally associated with known command mode processing of a pattern search command can be reduced or eliminated. Moreover, once the search is successfully completed, known PFX / PFXR I / O processing can commence using the direction provided by the successful pattern search. On the other hand, if the pattern search is unsuccessful and a record that satisfies the requested comparison of the pattern search cannot be located within the requested range of the search, the DCW chain can be unit checked (e.g., terminated) in the appropriate sense.
[0038] In another aspect of the pattern search request incorporated in the transport mode command word according to the present description, the pattern search function for storage systems compatible with the zHPF protocol may be incorporated in an existing field in the first PFX / PFXR DCW in a chain of DCWs, in one embodiment. In this manner, compatibility with existing transport mode channel programs may be achieved while leaving known DCW I / O behavior unchanged or substantially unchanged. In one embodiment, the pattern search behavior of the pattern search function is executed before any read or write behavior contained in the same or a subsequent DCW. As a result, the direction achieved by a requested successful pattern search in a DCW may be utilized for the execution of a requested read or write operation in the same or a subsequent DCW. In one embodiment, the starting point of the pattern search may be defined in the seek / search field of the LRE parameter or may be bound constrained as specified by the Define Extent (DX) extent range of the DCW.
[0039] One example of a processing environment incorporating and using one or more aspects of the embedded pattern search request in a transport mode command word for a channel subsystem for a storage system according to the present disclosure is described with reference to FIG. 1. Aspects of the embedded pattern search request according to the present disclosure may be embodied, for example, as a system, method, or computer product, as will be appreciated by those skilled in the art. Thus, aspects of the present disclosure may take the form of an embodiment combining software aspects (including firmware, resident software, microcode, etc.) and hardware aspects, all generally referred to as a "module," "method," or "system." Additionally, aspects of the present disclosure may take the form of a computer program product embodied in one or more computer readable mediums having computer readable program code / instructions embodied therein, including a controller, microcontroller, or computer processing unit.
[0040] In this example, processing environment 100 includes, for example, main memory 102, one or more central processing units (CPUs) 104, storage control element 106, channel subsystem 108, one or more control units 110, such as storage servers, and one or more input / output (I / O) devices 112, such as storage devices, each of which is described below. One or more components of processing environment 100 may include logic to incorporate and use one or more aspects of a pattern search request embodied in a transport mode command word for a channel subsystem for a storage system according to the present description, for example, as described with reference to FIG.
[0041] The main memory 102 stores data and programs input from the input devices 112. The main memory 102 is directly addressable, providing high speed processing of data by the central processing unit 104 and the channel subsystem 108.
[0042] The central processing unit 104 is the center of control for the environment 100. The central processing unit 104 includes sequencing and processing functions for instruction execution, interrupt action, timing functions, initial program loading, and other machine related functions. The central processing unit 104 is coupled to the storage control element 106 via a connection 114, such as a bidirectional or unidirectional bus.
[0043] Storage control element 106 is coupled to main memory 102 via connection 116, such as a bus, to central processing unit 104 via connection 114, and to channel subsystem 108 via connection 118. Storage control element 106 controls, for example, the queuing and execution of requests made by CPU 104 and channel subsystem 108.
[0044] The channel subsystem 108 is coupled to the storage control elements 106 as described above, and to each of the control units via connections 120, such as serial links. The channel subsystem 108 directs the flow of information between the I / O devices 112 and the main memory 102. The channel subsystem 108 removes from the central processing unit the task of communicating directly with the I / O devices, allowing data processing to proceed simultaneously with I / O processing. The channel subsystem uses one or more channel paths 122 as communication links in managing the flow of information to and from the I / O devices 112. As part of I / O processing, the channel subsystem 108 also performs a path management function that tests channel path availability, selects an available channel path, and initiates the execution of an operation with the I / O device.
[0045] Each channel path 122 includes a channel 124 (which in one example is located in a channel subsystem, as shown in FIG. 1), one or more control units 110, and one or more connections 120. In another example, it is also possible to have one or more dynamic switches as part of the channel path. The dynamic switches are coupled to the channels and the control units and provide the ability to physically interconnect any two links connected to the switch.
[0046] Subchannels (not shown) are also located within the channel subsystem 108. One subchannel is provided for and dedicated to each I / O device accessible to a program through the channel subsystem. The subchannels (e.g., data structures such as tables) provide a logical appearance of the device to the program. Each subchannel provides information about an associated I / O device 112 and the connection of the I / O device 112 to the channel subsystem 108. The subchannels also provide information about I / O operations and other functions involving the associated I / O device. The subchannels are the means by which the channel subsystem 108 provides information about the associated I / O device 112 to the central processing unit 104, which obtains this information by executing I / O instructions.
[0047] The channel subsystem 108 is coupled to one or more control units 110. Each control unit (also called a storage server) 110 provides logic for operating and controlling one or more I / O devices and, through the use of common functions, adapting the characteristics of each I / O or storage device 112 to the link interface provided by the channel. The common functions provide execution of I / O operations, indication of the status of I / O devices and control units, control of the timing of data transfers over the channel path, and a certain level of I / O device control.
[0048] Each control unit 110 is connected to one or more input / output devices 112 via a connection 126 (e.g., a bus). The input / output devices 112 receive information or store information in the main memory 102 and / or other memory. Examples of input / output devices include card readers and punches, magnetic tape units, direct access storage devices, displays, keyboards, printers, pointing devices, teleprocessing devices, communication controllers, and sensor-based equipment, to name a few.
[0049] One or more of the above components of the processing environment are further described in U.S. Patent No. 5,461,721, entitled "System For Transferring Data Between I / O Devices And Main Or Expanded Storage Under Dynamic Control Of Independent Indirect Address Words (IDAWS)", Cormier et al., "IBM® z / Architecture Principles of Operation", Publication No. SA22-7832-04, 5th Edition, September 2005, issued on October 24, 1995. IBM is a registered trademark of International Business Machines Corporation, Armonk, New York, USA. Other names used herein may be registered trademarks, trademarks, or product names of International Business Machines Corporation or other companies.
[0050] 2 illustrates an embodiment of a mirror copy or single copy storage environment having a host 200, a primary control unit (FIG. 1) designated as a primary storage server 202a in FIG. 2, and a secondary control unit designated as a storage server 202b, which communicate over a network 204. Storage servers 202a, 202b each include a processor 206a, 206b, an input / output (I / O) manager 210a, 210b that manages write requests from host 200, and a system memory 208a, 208b having a cache 212a, 212b, and a non-volatile storage device (NVS) 214a, 214b.
[0051] According to one embodiment of a storage system using embedded pattern search requests according to the present description, I / O managers 210a, 210b each include a pattern search function 216a, 216b, respectively, that processes pattern search requests embedded in transport mode command words for channel subsystem 108 (FIG. 1). Although depicted as software resident in memory 208a, 208b, the logic for the pattern search function to process pattern search requests embedded in device command words for channels in the storage system may be implemented using a variety of techniques. Thus, pattern search functions 216a, 216b may be implemented using one or more of hardware, software, and firmware, alone or in combination.
[0052] Write data in the cache 212a, 212b may be backed up to the NVS 214a, 214b of the same server 202a, 202b, respectively. Alternatively, the cache 212a, 212b of one storage server 202a, 202b may back up writes to the NVS 214b, 214a of the other storage server 202b, 202a, respectively. The I / O device 112a (FIG. 1), designated in FIG. 2 as the primary storage 112a, is coupled to the primary storage server 202a, and the secondary storage 112b is coupled to the secondary storage server 202b. The I / O managers 210a, 210b manage I / O requests from the host 200 that are targeted to data in the attached storage 112a, 112b.
[0053] Host 200 includes processor 104 (FIG. 1), system memory 102 (FIG. 1), and operating system 224 that includes an I / O request chain application programming interface (API) 226 for generating read / write request chains of ordered read / write requests to process I / O requests from applications 228 executing on host 200 or other systems in network 204 and submitting I / O requests to host 200. In one aspect of the present description, API 226 includes logic 230 for incorporating a pattern search request into a device command word for a channel in the storage system.
[0054] Although software is depicted as resident in memory 102, the logic for API 226, including logic for embedding pattern search requests in device command words for channels in a storage system, may be implemented using a variety of techniques. Thus, API 226 may be implemented using one or more of hardware, software, and firmware, alone or in combination.
[0055] In one embodiment, storage servers 202a, 202b include copy services 218a, 218b for mirroring / synchronizing host 200 writes to secondary storage server 202b with writes to secondary storage 112b. Storage servers 202a and 202b may comprise enterprise storage servers suitable for managing access to attached storage devices, such as International Business Machines Corporation's ("IBM") DS8000® storage systems. (DS8000 is a registered trademark of IBM in countries throughout the world). Operating system 224 of host 200 may include an operating system such as the Z System operating system (Z / OS®) from International Business Machines Corporation ("IBM"), or other operating systems known in the art. (Z / OS is a registered trademark of IBM throughout the world).
[0056] Network 204 may comprise a storage area network (SAN), a local area network (LAN), an intranet, the Internet, a wide area network (WAN), a peer-to-peer network, a wireless network, an arbitrated loop network, etc. In this embodiment, network 204 includes connector 118 (FIG. 1), channel subsystem 108 (FIG. 1), and associated channel paths 120 (FIG. 1) and connectors 120.
[0057] Storage devices 112a, 112b may each comprise one or more storage devices or arrays of storage devices configured as a simple bundle of disks (JBOD), a direct access storage device (DASD), a redundant array of independent disks (RAID) array, a virtualization device, tape storage, flash memory, etc. The storage devices comprising storage 112a, 112b may comprise hard disk drives, solid state storage devices (SSDs) (including solid state electronics, electrically erasable programmable read only memory (EEPROM), flash memory, flash disks, random access memory (RAM) drives, storage class memory (SCM), etc.), phase change memory (PCM), resistive RAM (RRAM), spin transfer torque memory (STM-RAM), conductive bridging RAM (CBRAM), magnetic hard disk drives, optical disks, tapes, etc. Although examples of a particular number of elements such as servers, storage, active and inactive copy relationships are shown, there may be any number of these components.
[0058] In one embodiment, the operating system 224 of the host 200 may include a channel subsystem having sub-channels that provide the information necessary to access the server 202a and underlying storage 112a on which the volumes are configured. The storage servers 202a, 202b and I / O managers 210a, 210b may include unit control blocks (UCBs) that provide a software representation of the underlying volumes and may point to sub-channels that have information on how to access the devices containing the volumes addressed by the UCBs.
[0059] 3 illustrates an embodiment of an I / O request chain 300 having an embedded pattern search request 302 according to the present description. Chain 300 is spawned by an I / O request chain API 226 (FIG. 2) executing within operating system 224, or by another connected host system. In this embodiment, chain 300 includes pattern search request 302 and a series of further write requests 3041, 3042...304. n The sequence of write requests, including both, may specify writing data to non-contiguous locations within storages 112a, 112b using the direction of the successful pattern search requested by the pattern search request 302.
[0060] The embedded pattern search request 302, in one embodiment, adds a search key option to perform a pattern search of the DCW. The DCW pattern search option represents a modification to a previously known device command word process, such as the PFX / PFXR DCW process, for a transport mode channel in the zHPF architecture. The added pattern search option provides efficient pattern matching for a set of records in one embodiment of the present description. For example, by modifying a transport mode channel process, such as that previously employed in the zHPF architecture, to further perform a pattern search in accordance with the present description, the channel handshaking previously associated with the search command in the command mode channel process may be reduced or eliminated. Then, upon successful completion of the pattern search in the modified zHPF transport mode channel process in accordance with the present description, the known PFX / PFXR process may then be performed, but using the direction provided by the added pattern search when the pattern search was successfully executed. If the appended pattern search cannot be satisfied, the chain will be unit checked (e.g., terminated) if necessary.
[0061] In the illustrated embodiment, each write request 3041, 3042...304 n may indicate a location within storage 112a, 112b, and the operation type for which the identified location is storage is based on the initial direction provided by the successful search performed in response to pattern search request 302. In one embodiment, each write request 3041, 3042...304 n The write request group may include a write request group that identifies a range of storage locations, or tracks, and a series of write transactions to the identified range, where the storage locations are identified according to an initial direction provided by a successful pattern search requested by pattern search request 302.
[0062] In one implementation, each write request 304 i The Locate Record (LR) domain specifies a range or group of tracks. i , and LR domain 306 i A plurality of write transactions 308 targeting the track identified in i and write transaction 308. i The successive write requests 3041, 3042...304 in the write request chain 300 are ordered according to a predefined order of the tracks in which they were written, i.e. ascending order, and the locations are specified according to the direction provided by the successful execution of the pattern search request. n Each Locate Record Domain 306 may have write transactions to non-contiguous ranges or sections of a track. i may specify a location, including a track and a record within the track, depending on the direction provided by the successful execution of the pattern search request. Additionally, the length of data to be transferred, and the operation type may be identified. In a further embodiment, the write requests 3041, 3042...304 nmay have a single write transaction.
[0063] In one aspect of the present description, a pattern search request 302 provided to a transport mode channel, such as one conforming to the zHPF protocol, can be incorporated into a DCW using existing fields in the device command word. For example, a field in the initial PFX / PFXR DCW of the zHPF protocol may be utilized by the pattern search request 302 to initiate a pattern search having a specified behavior prior to any read or write behavior contained in the same DCW. In one embodiment, compatibility with existing channel programs is also achieved by utilizing pre-existing I / O DCW behavior that is substantially unchanged. In this manner, a mechanism is provided for performing a pattern search prior to the execution of a read or write in the same or a subsequent DCW. In one embodiment, the requested pattern search starts at a starting point defined by a seek / search field in the LRE parameter and is bounded and constrained by the Define Extent (DX) extent range.
[0064] In one embodiment, the I / O chain API 226 (FIG. 2) may generate write requests 3041, 3042...304n in device command words (DCWs), with the embedded pattern search request 302 placed in one or more prefix parameters of the DCW command word. i and write transaction 308 i may also be packaged in the prefix parameter or in a parameter following the prefix parameter of the command word. In a particular embodiment, a DCW chain may have a first Locate Record, followed by truncated embedded Locate Records for operations to different locations.
[0065] In a locate record embodiment, the host operating system 224 (FIG. 2) uses write requests 3041, 3042...3043 to manage the transfer of the write requests to the storage server 202a. n or transfers the locate record to a channel subsystem in the host 200. The channel subsystem directs the flow of read and write operations between the host 200 and the storage server 202a, removing the task of communicating with the storage server 202a from the host operating system 224 and allowing the host operating system 224 to perform data processing and execute simultaneously with input / output (I / O) operations handled by the channel subsystem. The channel subsystem uses and manages the channel paths as communication links from the host 200 to the storage server 202a.
[0066] In one embodiment, the I / O request chain 300 may be used with zHPF (transport mode) write and / or chaining. In further embodiments, the I / O request chain may be used with different transport and command protocols.
[0067] In a FICON implementation, write requests 3041, 3042...304 n or locate record domain 306 i may be grouped together in a prefix command, and a locate record 306 i The parameters describe the domain of the operation that immediately follows in the chain. In a zHPF implementation, a prefix may have an embedded locate record list, which allows the embedded locate record 306 i allows additional domains to be specified within a single DCW. In FICON and zHPF implementations, the Locate Record Domain 306 i Each write request 3041, 3042...304n Each locate record 306 specifies one or more write operations to perform at a storage location, and a locate record may specify write operations for many non-contiguous locations. i The command specifies search arguments including the location, track and record within the track, the length of data to be transferred, and the operation type. Locate Records and associated writes in the chain may be processed sequentially, and all write operations for one Locate Record Domain must be completed or committed before the next Locate Record Domain is processed.
[0068] As mentioned above, the locate record operation is typically used in conjunction with read and write system commands. For example, a write system command may be chained with a define extent and locate record command. In this way, when a single record is written to an I / O device, the channel subsystem creates a DCW chain and sends it to the I / O device's storage server. A DCW chain contains several DCWs, such as define extent, locate record, and write, chained together in that order.
[0069] The define extent and locate record commands that precede the read and write system commands are called prefix commands, which are followed by the prefix parameters described previously.
[0070] FIG. 4 illustrates one example of a pattern search request 302, which may be embedded in a transport mode channel device command word, such as a zHPF type DCW. In one embodiment, the pattern search request 302 includes various fields, including a field for a pattern search request flag 404. In this embodiment, the pattern search request flag 404 includes a pattern search function indicator that is used to indicate to the storage server that use of the pattern search function by the storage server is being requested by the host. In this example, the search function indicator is represented by the state of one bit, namely, Locate Record Extended, Byte 1, Auxiliary Byte, Bit 6, to indicate whether use of the search function is being requested. In the illustrated embodiment, the search function indicator when set indicates that a key pattern search is being requested by the host to be performed by the search function of the storage server.
[0071] As mentioned above, in one aspect of the embedded pattern search request according to the present description, the pattern search request 302 can use an existing device command word field, such as, for example, a locate record extended field in the first PFX / PFXR DCW of the zHPF protocol, to initiate a pattern search operation prior to the requested read or write operation contained in the DCW. It is understood that other bits and fields may be used as the search capability indicator depending on the particular application. In one embodiment, the search capability indicator is preferably set only in the first DCW in a chain of DCWs, such that it is not set in subsequent LRE / LRER DCWs following the first DCW in the chain.
[0072] Figure 5 illustrates an example of the operation of pattern search function 216a (Figure 2) of storage server 202a, where pattern search function 216a performs a pattern search in response to receiving a pattern search request 302 (Figure 4) issued by a host via the channel subsystem. In this embodiment, pattern search function 216a is configured to perform the operations of Figure 5, including blocks 504-540, and the accompanying description of Figure 5. However, it is understood that other logic of storage server 202a may be configured to perform the operations, depending on the particular application.
[0073] As described in more detail below, according to one aspect of the present description, the search function 216a enables the storage server 202a, in executing the requested search request 302, to perform all of the search and compare operations of the pattern search within just one request relayed by the channel subsystem from the host as part of the first DCW, which may be a read / write DCW from the channel. Additionally, the zHPF architecture can be further optimized to use the record of interest, i.e., the target record, of a successful requested pattern search as the starting point (direction) for read and / or write operations, which may all be within a single DCW, for example. By comparison, in previous known storage systems, such search and compare operations that repeatedly attempt to identify records of interest in a pattern search are performed in a series of individual CCW commands from the host to the storage server via the channel subsystem operating in command mode, typically requiring numerous handshaking signals between the storage server and the host to accomplish the pattern search.
[0074] In response to receiving (block 504, FIG. 5) a device command word (DCW) from the host 200 (FIG. 2) via the channel path 120 (FIG. 1) operating in a transport mode, the pattern search function 216a (FIG. 2) of the primary storage server 202a (FIG. 2) parses (block 508) fields of the received DCW, including the flags field 404 (FIG. 4), to determine whether a pattern search function indicator is set in the flags field 404 of the received DCW (block 512, FIG. 5). In one embodiment, the pattern search request 302 (FIG. 4) is incorporated into the PFX / PFXR parameters of the received DCW. In response to determining that the search function indicator is set, the pattern search function 216a identifies from the pattern search request 302 a requested particular pattern search behavior for the requested pattern search (block 516, FIG. 5). In one embodiment, the pattern search request 302 includes the first two bytes of the extended parameters portion of the LRE parameters as additional flags in flags 404 (FIG. 4) to define a particular search behavior. For example, these additional flags may include a search field and type (i.e., equal to, greater than, greater than), a direction after success, a single record search or multiple record search, and an indication of a single track search or multiple track search. Thus, known pattern search behaviors from previous CCW strings may be adapted to a DCW that has been modified to have an embedded pattern search request according to this description. It is understood that various other search fields, types and search behaviors may be defined using flags or other indicators depending on the particular application.
[0075] In the illustrated embodiment, the search arguments 408 (FIG. 4) for the key pattern search are placed in one of the fields following the two bytes of flags 404 in the pattern search request 302. Thus, in this embodiment, the length of the extent parameter spans at least two bytes for flags 404 and then further the length of the key pattern search request arguments 408.
[0076] It is understood that other fields and formats may be used for the pattern search request embedded in the device command word for the transport mode channel depending on the particular application. For example, the pattern search request 302 may optionally include other pattern search indicators and fields for other pattern search arguments, such as fields for a count area pattern search or a data pattern search, as described below.
[0077] If the search function indicator for a key pattern search is set, for example, the search function 216a of the storage server 202a identifies the appropriate pattern search arguments, such as the key pattern search arguments 408 discussed above (block 520, FIG. 5), and performs the pattern search as directed by the search behavior flags 404 and the identified search argument or arguments (block 520, FIG. 5). In the illustrated embodiment, the search function 216a of the storage server 202a first determines the starting point, i.e., the CKD record that is the initial or starting direction for processing the requested pattern search, using the LRE parameter in the PFX / PFXR command of the DCW. By starting with the CKD record designated as the search start point, the search function performs the requested pattern search (block 520, FIG. 5), i.e., attempts to find records of interest based on the search arguments and flag information provided by the pattern search request 302. In one embodiment, the search function 216a of the storage server 202a processes the pattern search request 302 before performing any I / O operations embedded in the same DCW. Instead, as described below, if the requested pattern search is successful in finding a target record that satisfies the requested pattern search, a field such as a precount field of the target record is used as the starting direction or starting CKD record for reading or writing data to storage or cache.
[0078] In one embodiment, if search function 216a is directed to the count area of a CKD record, the pattern search operates on the key area of the same record, otherwise search function 216a is directed to the count area of the next user data record on the track and operates on the key area of this record to attempt to find a key byte that matches the pattern search key argument provided in pattern search request 302. If end of track is detected before the count area is found, search function 216a proceeds to the next track and attempts to continue searching with the search extent defined above until the count area (other than record zero) is found or the operation is terminated with an end of cylinder exception.
[0079] In a known CKD record, the length of the key area (KL) is defined in the key length field of the count area. If the KL is zero, the pattern search is deemed unsuccessful in one embodiment (block 524, FIG. 5) and in one embodiment, no further pattern key searches are continued by search function 216a. An unsuccessful pattern key search requested by a DCW terminates with appropriate status information reported to the requesting host (block 528, FIG. 5). For example, in one embodiment, status information such as CE / DE / UC with Status Not as Required is reported. In a FICON embodiment, storage is directed to the data field of the record with a KL of zero and a status of "CE / DE" is reported. It is understood that other status information may be provided depending on the particular application.
[0080] If the length of the pattern key search argument in the request 302 is less than the KL of the record being examined, the pattern key search argument 408 is compared to an equal number of bytes from the key area being examined. If the KL of the record is less than the length of the pattern key search argument, the key field of the record is compared to an equal number of bytes from the pattern key search argument.
[0081] In one embodiment, a pattern search request 302 provided by a host may request a pattern search on one or more of a count field (ID), a key field, or a data field. In performing the search, the storage server's search function 216a forwards the search argument from the request 302, reads the corresponding count, key, or data field from the storage device or cache, and performs a logical comparison operation between the argument and the read field. The request 302 provided by the host via the channel subsystem may request, for example, that the read field and the argument match, or that the read field have a value greater than the argument. Other search behaviors may be specified by the pattern search request 302 to govern the behavior of the requested search.
[0082] The requested pattern search continues in this manner, record by record, until a record having the requested pattern is successfully located or the search terminates when the end of the specified search extent is reached. In one embodiment of the pattern search request incorporated in the DCW according to this disclosure, because the pattern search proceeds record by record, handshaking signaling between the host and the storage server is significantly reduced or eliminated.
[0083] If the requested pattern search fails to locate a read field that satisfies the requested comparison within the specified search extent area (block 524), the search function 216a returns status information indicating that the storage server failed to find a record that satisfies the requested comparison (block 528, FIG. 5). However, following successful execution of the pattern search by the search function 216a of the storage server 202a, the I / O manager 210a of the storage server 202a is directed to a record having a read field that satisfied the comparison requirements (block 532, FIG. 5). The search behavior flag 404 of the search request 302 is used by the search function 216a, in one embodiment, to determine whether the I / O manager 210a is directed to the beginning of the record (pre-count / HA) or after the key field (key).
[0084] In one embodiment of a pattern search request embedded in a DCW according to the present description, additional CCWs may also be embedded in the same or subsequent DCWs, such as a read or write CCW. Thus, once the target record is located and a direction is determined by the target record, if it is determined that the DCW also includes an I / O operation, such as an embedded read or write CCW (block 536, FIG. 5), the embedded read / write CCW in the LRE parameters may be executed for a read or write starting at the data field associated with the direction point of the target record (block 538, FIG. 5). Successful completion of the requested pattern search, the direction at the matched record, and execution of the requested I / O starting from that direction may be reported to the requesting host (block 540, FIG. 5). If the DCW in which the pattern search request 302 is embedded does not have a read or write CCW, the successful completion of the requested pattern search and the direction in which the matched records were found may also be reported to the requesting host (block 540, FIG. 5).
[0085] Figure 6 illustrates an example of the operation of the pattern search request embedding logic 230 (Figure 2) of the host 200 to package a pattern search request 302 (Figure 4) into a DCW for transmission to a storage server via a channel subsystem operating in transport mode. In this embodiment, the pattern search request embedding logic 230 is configured to perform the operations of Figure 6, including blocks 604-624, and the accompanying description of Figure 6. However, it is understood that other logic of the host 200 or the channel subsystem may be configured to perform the operations, depending on the particular application.
[0086] In this example, the pattern search request embedded logic 230 packages a pattern search key flag, such as the pattern search function indicator as described above, into a DCW for transmission to the storage server via the channel subsystem operating in transport mode to indicate to the storage server that use of the pattern search function by the storage server has been requested by the host. In this example, the search function indicator is represented by the state of one bit, namely, Locate Record Extended, Byte 1, Auxiliary Byte, Bit 6, as described above, to indicate whether use of the search function has been requested. In the illustrated embodiment, the search function indicator in bit 6 when set indicates that a key pattern search has been requested by the host to be performed by the search function of the storage server.
[0087] The search arguments 408 for the key pattern search (FIG. 4) are packaged with the pattern search indicator for the pattern key search (block 604, FIG. 6). In one embodiment, the search arguments 408 are placed in one of the fields following the two bytes of flags 404 of the pattern search request 302. Thus, in this embodiment, the length of the extent parameter spans at least the two bytes for flags 404, as described above, and then further the length of the key pattern search request arguments 408.
[0088] In one embodiment, the key search arguments 408 may have a fixed length in the pattern search request 302. In other embodiments, the length of the key search arguments 408 may vary. In such an embodiment, the pattern search request 302 may optionally include a field in the extension parameters that defines the length of the key search request arguments 408, as indicated by the key search request argument length 412 field depicted in FIG.
[0089] For example, two bytes of search capability flags 404 (FIG. 4) may be followed by one byte of key search request argument length 412, followed by the key search request argument 408 itself. The layout of such an embodiment is as follows: The extended parameter length has a length equal to: 2 bytes (flags) + 1 byte (defines the length of the key search argument) + the length of the key search argument itself (in bytes) One example expansion parameters may be as follows: Flags (2 bytes): ● Search·Equal ● Single record ● Key search indicator Key search argument length 0x04 Key search argument 0x00000000 Thus, the extended parameter length in this example has a length of 7 bytes, it being understood that other lengths, formats, and fields may be used depending on the particular application.
[0090] In another embodiment of a storage system that uses pattern search requests embedded in device command words of a channel subsystem operating in transport mode, the embedded pattern search request architecture may be further expanded to provide pattern searches of other fields as well as key fields, such as, for example, pattern searches of data fields of CKD format records.
[0091] Thus, the pattern search request embedding logic 230 (FIG. 2) determines whether to embed an optional pattern search request targeted to the data field (block 608, FIG. 6). If so, the pattern search request embedding logic 230 (FIG. 2) packages a pattern search indicator for a pattern data search in the flags 404 of the DCW (block 612, FIG. 6). Also, a data search request argument length parameter 416 and a data search request argument 420 (FIG. 4) for a data pattern search are packaged in the pattern search request 302 of this example. In one embodiment, the data search argument length parameter 416 and the data search request argument 420 are placed in one or more of the fields following the two bytes of the flags 404 of the pattern search request 302. Thus, in this embodiment, the length of the extent parameters spans at least two bytes for flags 404 and further extends the length of key pattern search parameters 412 , 408 and data pattern search parameters 416 and 420 .
[0092] The layout for one example of such an embodiment may be as follows: The extended parameter length has a length equal to: 2 bytes (flags) + 1 byte (defines the length of the key search arguments) + 1 byte (defines the length of the data search arguments) + the length of the key search arguments themselves (in bytes) + the length of the data search arguments themselves (in bytes) The expansion parameters for this example may be: Flags (2 bytes): ● Search·Equal ● Single record ● Key search indicator ● Data search indicator Key search argument length 0x04 Data search argument length 0x04 Key search argument 0x00000000 Data search argument 0x00000000 Thus, the extension parameter length in this example has a length of 12 bytes. This embodiment facilitates different sizes for various key and data pattern search arguments. In embodiments where only key fields are to be pattern searched, the data search argument parameters may be omitted from the extension parameters. It is understood that other lengths, formats, and fields may be used depending on the particular application.
[0093] In another aspect of the embedded pattern search request according to the present description, the pattern search request embedding logic 230 optionally packages one or more I / O requests to be executed upon successful completion of the requested pattern search into the same (or a subsequent) DCW for transmission to the storage server via the channel subsystem operating in transport mode. Thus, in this embodiment, the pattern search request embedding logic 230 determines whether the I / O operation should be packaged into the same DCW that contains the embedded pattern search request 302 or into a subsequent DCW in the chain of DCWs that use the embedded pattern search request 302 (block 616, FIG. 6). If so, the pattern search request embedding logic 230 embeds one or more I / O commands or requests in the form of a CCW (block 620, FIG. 6), as described above in conjunction with FIG. 3.
[0094] Alternatively, if the pattern search request embedding logic 230 determines that the I / O operation should not be packaged in the same DCW that contains the embedded pattern search request 302 (block 616, FIG. 6), the pattern search request embedding logic 230 bypasses the embedding of one or more I / O commands or requests in the form of a CCW as described above with respect to FIG. 3 (block 620, FIG. 6). Known architectures for DCWs require that the DCW contain an I / O command type CCW. However, this alternative embodiment of the present disclosure allows for the implementation of a separate search type DCW that has an embedded pattern search request but no embedded I / O command, such as an embedded CCW read command or an embedded CCW write command. In one embodiment, the separate search type DCW of a chain of DCWs is placed in a transport control area (TCA) before the first read / write DCW of the chain. Therefore, any read / write DCWs placed after it in the chain should not have the enhanced pattern search behavior in this embodiment.
[0095] Once the packaging operation is complete, the host issues the completed DCW or chain of DCWs to the storage server that controls the target storage device via a channel subsystem that couples the host to the storage server (block 624, FIG. 6). In response, the storage server performs the requested pattern search or searches and, if the search is successful, initiates the requested I / O operation (if any) starting in the direction associated with the target record, as discussed above.
[0096] It can be seen from the above that a storage server processing a pattern search request embedded in a DCW provides the storage server with the ability to perform all or substantially all of the search and comparison work of the pattern search, for example, in response to as little as one DCW from the host. Furthermore, the numerous handshaking signals associated with known processing of individual commands transmitted in the command mode of the channel subsystem can be greatly reduced or eliminated. Such pattern search requests may be embedded in the DCW using existing fields in the DCW to facilitate compatibility with known protocols. Furthermore, I / O processing within the zHPF architecture can be enhanced to use the target record of interest of a successful embedded pattern search request as the starting point for read / write I / O processing, all in response to as little as one DCW. Moreover, the direction rules can also be relaxed so that upon execution of a subsequent command in the first or subsequent DCW in the chain, if the target record is found, any and all fields of the record can be accessed and used.
[0097] An example implementation of a pattern search request embedded in a transport mode device command word is provided.
[0098] Example 1 is a computer program product for processing requests to a storage system, the computer program product comprising a computer-readable storage medium having program instructions embodied thereon, the program instructions being executable by a processor to cause operations to be performed, the operations including packaging a pattern search request into a device command word (DCW) for DCW transport mode processing in a channel subsystem for the storage system, the packaging of the pattern search request including packaging a key search pattern argument for the pattern search request into the device command word such that the DCW has an embedded pattern search request having a key search pattern argument.
[0099] In Example 2, the subject matter of Examples 1 and 3-8 can optionally include packaging, in addition to the pattern search request, an embedded input / output (I / O) operation command for initiating the I / O operation and a flag indicating starting the I / O operation in a precount field of a record that satisfies the embedded pattern search request, wherein the I / O operation command includes at least one of a read command and a write command embedded in a device command word.
[0100] In Example 3, the subject matter of Examples 1-2 and 4-8 may optionally include the pattern search request being embedded within a PFX / PFXR parameter of the DCW, the operation further including packaging the embedded read / write channel command word (CCW) in the DCW in addition to the pattern search request, a Locate Record Extended (LRE) parameter in the PFX / PFXR parameter of the DCW providing a starting direction for execution of the embedded pattern search request, and successful processing of the embedded pattern search request providing a starting direction for execution of the read / write operation of the embedded CCW.
[0101] In Example 4, the subject matter of Examples 1-3 and 5-8 may optionally include packaging the pattern search request including packaging the pattern search request and key search pattern arguments in a Locate Record Extended (LRE) field of the DCW as defined in the z High Performance FICON (zHPF) protocol.
[0102] In Example 5, the subject matter of Examples 1-4 and 6-8 may optionally include packaging the pattern search request flags in a field of the DCW, the flags indicating at least one of a search field and a search type, the search type including at least one of equal to, greater than or equal to, and greater than, and the flags further indicating a direction after success, at least one of a single record search and a multiple record search, and at least one of a single track search and a multiple track search.
[0103] In Example 6, the subject matter of Examples 1-5 and 7-8 may optionally include a DCW with an embedded pattern search request being in a chain of DCWs, no embedded read command, and no embedded write command, such that the DCW with the embedded pattern search request is before any DCW in the chain of DCWs that have at least one of an embedded read command and an embedded write command.
[0104] In Example 7, the subject matter of Examples 1-6 and 8 can optionally include packaging the pattern search request includes packaging a data search pattern argument for the pattern search request such that the DCW has a pre-built pattern search request having both a key pattern search argument and a data pattern search argument.
[0105] In Example 8, the subject matter of Examples 1-7 can optionally include that the pattern search request is embedded in a field in a PFX / PFXR type DCW that is first in a chain of DCWs.
[0106] In Example 9, the subject matter of Examples 1-8 may optionally include processing the DCW by the storage system, including receiving the DCW and performing a pattern search requested by the embedded pattern search request using the embedded key search pattern argument.
[0107] Example 10 is a computer program product for processing requests in a storage system, the computer program product comprising a computer readable storage medium having program instructions embodied therein, the program instructions being executable by a processor to cause operations, the operations comprising receiving a device command word (DCW) for DCW transport mode processing in a channel subsystem for the storage system, the DCW having a pattern search request embedded within a PFX / PFXR parameter in the device command word (DCW) and a read / write channel command word (CCW) embedded in the DCW, the pattern search request packaging an embedded key search pattern argument into the device command word; performing a pattern search requested by the pattern search request in a start direction identified by a Locate Record Extended (LRE) parameter in the PFX / PFXR parameter of the DCW; and executing a read / write operation of the embedded CCW in a start direction provided by successful processing of the embedded pattern search request.
[0108] Example 11 comprises a system including a processor executing program instructions in a computer-readable storage medium to perform operations as described in Examples 1-10.
[0109] Example 12 comprises a method for performing the operations as recited in Examples 1-10.
[0110] Reference letters used herein, such as i, k, m, and n, are used herein to represent a variable number of instances of an element, which can represent the same or different values, and which can represent the same or different values when used with different or the same elements in the various examples described.
[0111] The present invention is a system, method, and / or computer program product, which may include a computer readable storage medium (or media) having computer readable program instructions for causing a processor to carry out aspects of the present invention.
[0112] A computer readable storage medium can be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium can be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge-in-groove structures having instructions recorded thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein should not be construed as being signals that are inherently ephemeral, such as electric waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted through wires.
[0113] The computer readable program instructions described herein can be downloaded from a computer readable storage medium to each computing / processing device or to an external computer or storage device over a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may comprise copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface of each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage on a computer readable storage medium within the respective computing / processing device.
[0114] The computer readable program instructions for carrying out the operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine language instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including object oriented programming languages such as Java®, Smalltalk®, C++, or the like, and traditional procedural programming languages such as the "C" programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, or partially on the user's computer, as a stand-alone software package, or partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (e.g., through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic device, a field programmable gate array (FPGA), or a programmable logic array (PLA) may execute computer readable program instructions by utilizing state information of the computer readable program instructions to individualize the electronic circuitry to perform aspects of the present invention.
[0115] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.
[0116] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, the instructions of which execute via the processor of the computer or other programmable data processing apparatus to produce means for performing the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may also be stored on a computer readable storage medium such that the computer readable storage medium having stored thereon instructions comprises an article of manufacture including instructions for performing aspects of the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams, and can direct a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner.
[0117] The computer readable program instructions may also be loaded into a computer, other programmable data processing apparatus, or other device to perform a series of operational steps on the computer, other programmable apparatus, or other device to produce a computer-executed process, the instructions executing on the computer, other programmable apparatus, or other device to perform the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.
[0118] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions noted in the blocks may be performed out of the order noted in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order depending on the functionality involved. It will also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be executed by a dedicated hardware-based system that performs the specified functions or acts or executes a combination of dedicated hardware and computer instructions.
[0119] The computer components of FIG. 1 and FIG. 2, including the CPU 104, the storage control element 106, the channel subsystem 108, the control unit 110, the host 200, and the storage servers 202a, 202b, may be implemented in one or more computer systems, such as the computer system 702 shown in FIG. 7. The computer system / server 702 may be described in the general context of computer system executable instructions, such as program modules, executed by the computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system / server 702 may be practiced in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media, including memory storage devices.
[0120] As shown in FIG. 7, a computer system / server 702 is depicted in the form of a general-purpose computing device. The components of the computer system / server 702 may include, but are not limited to, one or more processors or processing units 704, a system memory 706, and a bus 708 that couples various system components, including the system memory 706, to the processor 704. The bus 708 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example and not limitation, such architectures include an Industry Standard Architecture (ISA) bus, a MicroChannel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0121] Computer system / server 702 typically includes a variety of computer system readable media. Such media may be any available media that can be accessed by computer system / server 702 and includes both volatile and nonvolatile media, removable and non-removable media.
[0122] The system memory 706 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 710 and / or cache memory 712. The computer system / server 702 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 713 may be provided for reading and writing non-removable, non-volatile magnetic media (not shown, but typically referred to as a "hard drive"). Although not shown, a magnetic disk drive may be provided for reading and writing removable, non-volatile magnetic disks (e.g., "floppy disks"), and an optical disk drive may be provided for reading and writing removable, non-volatile optical disks, such as CD-ROMs, DVD-ROMs, or other optical media. In such an example, each may be connectable to the bus 708 by one or more data media interfaces. As further depicted and explained below, the memory 706 may include at least one program product having a set (e.g., at least one) of program modules configured to perform functions of embodiments of the present invention.
[0123] The programs / utilities 714 may have a set of program modules 716 (at least one), which may be stored in the memory 706, as well as, by way of example and not limitation, an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data, or some combination thereof, may include an implementation of a networked environment. The components of the computer 702 may be implemented as program modules 716 that generally perform the functions and / or methods of embodiments of the invention as described herein. The system of FIG. 1 may be implemented in one or more computer systems 702, and when implemented in multiple computer systems 702, the computer systems may communicate over a network.
[0124] The computer system / server 702 may also communicate with one or more external devices 718, such as a keyboard, a pointing device, a display 724, one or more devices that allow a user to interact with the computer system / server 702, or any device (e.g., a network card, a modem, etc.) that allows the computer system / server 702 to communicate with one or more other computing devices, or a combination thereof. Such communication may occur through an input / output (I / O) interface 722. Additionally, the computer system / server 702 may communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), or a public network (e.g., the Internet), or a combination thereof, through a network adapter 720. As depicted, the network adapter 720 communicates with other components of the computer system / server 702 through a bus 708. It is understood that other hardware and / or software components, not shown, may be used with the computer system / server 702. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archive storage systems.
[0125] The terms "an embodiment," "embodiment," "embodiments," "the embodiment," "the embodiment," "one or more embodiments," "several embodiments," and "one embodiment" mean "one or more (but not all) embodiments of the present invention," unless expressly specified otherwise.
[0126] The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
[0127] An enumerated listing of items does not imply that any or all of the items are mutually exclusive, unless expressly specified otherwise.
[0128] The terms "a," "an," and "the" mean "one or more," unless expressly specified otherwise.
[0129] Devices that are in communication with each other need not be in continuous communication with each other unless expressly specified otherwise. In addition, devices that are in communication with each other may communicate directly or indirectly through one or more intermediaries.
[0130] A description of an embodiment with several components in communication with each other does not imply that all such components are required, to the contrary, various optional components are described to illustrate the wide variety of possible embodiments of the present invention.
[0131] It will be readily apparent that when a single device or article is described herein, two or more devices / articles (whether or not cooperating) may be used in place of the single device / article. Similarly, when two or more devices or articles are described herein (whether or not cooperating), it will be readily apparent that a single device / article may be used in place of the two or more devices or articles, or that a different number of devices / articles may be used in place of the number of devices or programs shown. The functionality and / or features of a device may alternatively be embodied by one or more other devices not explicitly described as having such functionality / features. Thus, other embodiments of the invention need not include the device itself.
[0132] The foregoing description of various embodiments of the invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. It is intended that the scope of the invention be limited not by this detailed description, but by the claims appended hereto. The above specification, examples and data provide a complete description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention resides in the claims hereinafter appended.
Claims
1. A computer program for processing a request to a storage system, the computer program comprising: packaging a pattern search request into a device command word (DCW) for DCW transport mode processing in a channel subsystem for the storage system, the packaging of the pattern search request including packaging a key search pattern argument for the pattern search request into the device command word such that the DCW has an embedded pattern search request having a key search pattern argument; A computer program that executes the following:
2. The computer program product of claim 1, further comprising causing the computer to package, in addition to the pattern search request, an embedded input / output (I / O) operation command for initiating an I / O operation and a flag indicating that the I / O operation is to start in a precount field of a record that satisfies the embedded pattern search request, wherein the I / O operation command includes at least one of a read command and a write command embedded in the device command word.
3. 3. The computer program product of claim 1, further comprising: the pattern search request being embedded within a PFX / PFXR parameter of the DCW; the computer further comprising: packaging a read / write channel command word (CCW) embedded in the DCW in addition to the pattern search request; a locate record extended (LRE) parameter in the PFX / PFXR parameter of the DCW providing a starting direction for execution of the embedded pattern search request; and successful processing of the embedded pattern search request providing a starting direction for execution of a read / write operation of the embedded CCW.
4. 3. The computer program product of claim 1, wherein packaging the pattern search request comprises packaging the pattern search request and a key search pattern argument in a Locate Record Extended (LRE) field of the DCW as defined in the z High Performance FICON (zHPF) protocol.
5. 3. The computer program product of claim 1, wherein packaging the pattern search request includes packaging a pattern search request flag into a field of the DCW, the flag indicating at least one of a search field and a search type, the search type including at least one of equal to, greater than or equal to, and greater than, and the flag further indicating a direction after success, at least one of a single record search and a multiple record search, and at least one of a single track search and a multiple track search.
6. 3. The computer program product of claim 1, wherein the DCW having an embedded pattern search request is in a chain of DCWs that has no embedded read command and no embedded write command, and the DCW having the embedded pattern search request is before any DCW in the chain of DCWs that has at least one of an embedded read command and an embedded write command.
7. 3. The computer program product of claim 1, wherein packaging the pattern search request includes packaging a data search pattern argument for the pattern search request such that the DCW has an embedded pattern search request having both a key pattern search argument and a data pattern search argument.
8. 3. The computer program product of claim 1, wherein the pattern search request is embedded in a field in a first PFX / PFXR type DCW in a chain of DCWs.
9. 1. A computer system comprising: A storage system; The host, a channel subsystem connecting said host and said storage system; a processor of at least one component of said computer system; A computer program for processing a request to the storage system, the computer program causing the processor to: packaging a pattern search request into a device command word (DCW) for DCW transport mode processing in a channel subsystem for the storage system, the packaging of the pattern search request including packaging a key search pattern argument for the pattern search request into the device command word such that the DCW has an embedded pattern search request having a key search pattern argument; The computer program A computer system comprising:
10. The computer system of claim 9, further comprising: causing the processor to package, in addition to the pattern search request, an embedded input / output (I / O) operation command for initiating an I / O operation and a flag indicating that the I / O operation is to start with a precount field of a record that satisfies the embedded pattern search request, wherein the I / O operation command includes at least one of a read command and a write command embedded in the device command word.
11. 11. The computer system of claim 9 or 10, wherein the pattern search request is embedded within a PFX / PFXR parameter of the DCW, further causing the processor to package a read / write channel command word (CCW) embedded in the DCW in addition to the pattern search request, a Locate Record Extended (LRE) parameter in the PFX / PFXR parameter of the DCW provides a starting direction for execution of the embedded pattern search request, and successful processing of the embedded pattern search request provides a starting direction for execution of the read / write operation of the embedded CCW.
12. 11. The computer system of claim 9 or 10, wherein packaging the pattern search request includes packaging the pattern search request and a key search pattern argument in a Locate Record Extended (LRE) field of the DCW as defined in the z High Performance FICON (zHPF) protocol.
13. 11. The computer system of claim 9 or 10, wherein packaging the pattern search request includes packaging a pattern search request flag into a field of the DCW, the flag indicating at least one of a search field and a search type, the search type including at least one of equal to, greater than or equal to, and greater than, and the flag further indicating a direction after success, at least one of a single record search and a multiple record search, and at least one of a single track search and a multiple track search.
14. 11. The computer system of claim 9 or 10, wherein the DCW having an embedded pattern search request is in a chain of DCWs that has no embedded read command and no embedded write command, and the DCW having the embedded pattern search request is before any DCW in the chain of DCWs that has at least one of an embedded read command and an embedded write command.
15. 11. The computer system of claim 9 or 10, wherein packaging the pattern search request includes packaging a data search pattern argument for the pattern search request such that the DCW has an embedded pattern search request having both a key pattern search argument and a data pattern search argument.
16. 11. The computer system of claim 9 or 10, wherein the pattern search request is embedded in a field in a first PFX / PFXR type DCW in a chain of DCWs.
17. Packaging a pattern search request into a device command word (DCW) for DCW transport mode processing in a channel subsystem for a storage system, the packaging of the pattern search request including packaging a key search pattern argument for the pattern search request into the device command word such that the DCW has an embedded pattern search request having a key search pattern argument. A computer-implemented method comprising:
18. 20. The method of claim 17, further comprising packaging, in addition to the pattern search request, an embedded input / output (I / O) operation command for initiating an I / O operation and a flag indicating starting the I / O operation with a precount field of a record that satisfies the embedded pattern search request, the I / O operation command comprising at least one of a read command and a write command embedded in the device command word.
19. 19. The method of claim 17 or 18, wherein the pattern search request is embedded within a PFX / PFXR parameter of the DCW, and the operation further comprises packaging a read / write channel command word (CCW) embedded in the DCW in addition to the pattern search request, a Locate Record Extended (LRE) parameter in the PFX / PFXR parameter of the DCW provides a starting direction for execution of the embedded pattern search request, and successful processing of the embedded pattern search request provides a starting direction for execution of a read / write operation of the embedded CCW.
20. 19. The method of claim 17 or 18, wherein packaging the pattern search request includes packaging the pattern search request and a key search pattern argument in a Locate Record Extended (LRE) field of the DCW as defined in the z High Performance FICON (zHPF) protocol.
21. 19. The method of claim 17 or 18, wherein packaging the pattern search request includes packaging a pattern search request flag in a field of the DCW, the flag indicating at least one of a search field and a search type, the search type including at least one of equal to, greater than or equal to, and greater than, and the flag further indicating a direction after success, at least one of a single record search and a multiple record search, and at least one of a single track search and a multiple track search.
22. 19. The method of claim 17 or 18, wherein the DCW having an embedded pattern search request is in a chain of DCWs that has no embedded read command and no embedded write command, and the DCW having the embedded pattern search request is before any DCW in the chain of DCWs that has at least one of an embedded read command and an embedded write command.
23. 19. The method of claim 17 or 18, wherein packaging the pattern search request includes packaging a data search pattern argument for the pattern search request such that the DCW has an embedded pattern search request having both a key search pattern argument and a data pattern argument.
24. 19. A method according to claim 17 or 18, wherein the pattern search request is embedded in a field in the first PFX / PFXR type DCW in a chain of DCWs.
25. 1. A computer program for processing a request in a storage system, the computer program comprising: receiving a device command word (DCW) for DCW transport mode processing in a channel subsystem for the storage system, the DCW having a pattern search request embedded within a PFX / PFXR parameter in the device command word (DCW) and a read / write channel command word (CCW) embedded in the DCW, the pattern search request packaging an embedded key search pattern argument into the device command word; performing a pattern search requested by said pattern search request in a starting direction identified by a Locate Record Extended (LRE) parameter in said PFX / PFXR parameters of said DCW; performing a read and / or write operation of said embedded CCW in a starting direction provided by successful processing of said embedded pattern search request; A computer program that executes the following:
