Method, system and computer program product for fast access channel usage using track status information

By employing track status information to identify active or inactive tracks, the solution addresses latency issues in fast access channels, ensuring timely completion of host requests by processing only on inactive tracks, thereby optimizing storage system performance.

JP2024531976AActive Publication Date: 2024-09-03INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024512023
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-09-03
Filing Date
2022-07-04
Publication Date
2024-09-03
Estimated Expiration
2042-07-04

AI Technical Summary

Technical Problem

In storage environments using fast access channels like PCIe interfaces, host requests face latency issues when the target track is not in cache or is currently being accessed by another processor, leading to unacceptable processing delays.

Method used

Utilizing track status information, specifically the active bit in the cache control block, to determine if a target track is active or inactive, allowing requests to be processed on a fast channel only when the track is inactive, thereby avoiding lock contention and reducing latency.

Benefits of technology

This approach enables efficient processing of host requests on fast access channels by immediately accessing inactive tracks, reducing latency and ensuring requests complete within the required time threshold, thus optimizing host request management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024531976000001
    Figure 2024531976000001
Patent Text Reader

Abstract

A method is provided for determining whether to process a host request on a fast access channel using track status information regarding an active or inactive status of a track. A host request to access a target track is received on a first channel to a host. A determination is made as to whether the target track has an active status or an inactive status. A target track has an active status when at least one process currently maintains a lock on the target track that prevents access, and a target track has an inactive status when no process maintains a lock on the target track that prevents access. In response to the target track having an active status, a failure is returned to the host to cause the host to resend the host request on a second channel. The first channel has less latency than the second channel.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a computer program product, system and method for using track status information regarding the active or inactive status of a track to determine whether a host request should be processed over a fast access channel. [Background technology]

[0002] In a storage environment, a host system may communicate a read / write request to an attached storage system through a high-speed access channel, such as a bus interface, such as a Peripheral Component Interconnect Express (PCIe) interface. If the data is in the storage system's cache, i.e., a read hit, the data can be quickly returned to the host system through the faster access channel, where the host thread for the read / write request is in a spin loop waiting for the request to complete. This saves processor time associated with a context swap, which deactivates the thread and reactivates it in response to an interrupt when a response to the read / write request is received. If the data for a read / write request sent through the high-speed channel is not in the cache, the storage system may fail the read / write request, and the host system may communicate the same read / write request through a host adapter and a storage area network, which is slower than processing an I / O request through a bus, such as a PCIe interface. Communicating a read / write request through the second channel requires the host system to context switch from the task handling the read / write request to another task while waiting for the read / write request to complete.

[0003] There is a need in the art for improved techniques for managing host requests on high speed access channels. Summary of the Invention

[0004] A computer program product, system, and method are provided for determining whether to process a host request on a fast access channel using track status information regarding an active or inactive status of a track. A host request to access a target track is received on a first channel to a host. A determination is made from the track status information as to whether the target track has an active status or an inactive status. A target track has an active status when at least one process currently maintains a lock on the target track that prevents access, and a target track has an inactive status when no process maintains a lock on the target track that prevents access of other processes. In response to determining that the target track has an active status, a failure is returned to the host to cause the host to resend the host request on a second channel, the first channel having less latency than the second channel. [Brief description of the drawings]

[0005] [Figure 1] FIG. 1 illustrates an embodiment of a storage environment. [Diagram 2] FIG. 2 illustrates one embodiment of a cache control block. [Diagram 3] FIG. 1 illustrates one embodiment of processing an input / output (I / O) request to a target track on a fast access channel. [Figure 4] FIG. 1 illustrates one embodiment of operations for locking a cache control block to access a target track in a cache. [Diagram 5] FIG. 1 illustrates one embodiment of operations for releasing a lock on a cache control block to finish accessing a target track. [Figure 6] FIG. 1 is a diagram of one embodiment of a computer architecture that may be used in the described embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0006] In current storage environments that use high-speed access channels such as PCIe bus interfaces, for I / O requests that must be completed within a certain threshold time, the storage system may fail the request if the target track is not already in cache. However, even if the track is in cache, significant latency may be experienced if the target track is currently being accessed by another processor and a lock must be obtained to access the target track in cache to service the host I / O request on the high-speed channel. This latency to access a track that is currently being accessed by another processor may result in unacceptable latency that exceeds the threshold time to complete processing a host request on the high-speed channel.

[0007] The described embodiments provide an improvement in a computer technique for host access requests submitted on a fast access channel by providing track status information, accessible through an active track data structure or through an active bit in a cache control block of a target track, that can be used to determine whether a target track of a host request on a fast access channel has an active status, i.e., is being accessed by another process, or an inactive status, not being accessed by another process. If the target track has an active status, the host request on the fast access channel is failed to avoid latency caused by waiting to obtain a lock on the target track in the cache while it is being accessed by another process. If the target track in the cache has an inactive status, the host request can be processed on the fast access channel because the target track can be accessed immediately in the cache to complete processing of the host request.

[0008] 1 illustrates one embodiment of a storage environment in which a host 100 sends read and write requests to a storage system 102 to access tracks within volumes configured on a storage device 104 in a disk enclosure 106. The host 100 includes a processor complex 108, which may be comprised of one or more processor devices, and a memory 110, which may include an operating system 111 executed by the processor complex 108. The host operating system 111 generates read and write requests to tracks configured on the storage device 104. The host 100 includes hardware for communicating the read and write requests over two different channels. The first channel, also called the high-speed channel or high-speed access channel, is a bus interface such as Peripheral Component Interconnect Express (PCIe) and includes a bus 112, a bus switch 114 for connecting one or more devices on the bus 112, including the processor complex 108, the memory system 110, and a bus host adapter 116 for extending the bus interface to the storage system 102 through an external bus interface cable 118. Additional bus interface technologies for extending the bus interface may be used, including components such as PCIe extension cables or distributed PCIe switches, to enable PCIe over Ethernet®, such as with ExpEther technology. The second channel for connecting the host 100 and the storage system 102, also called the low-speed channel, uses a network host adapter 120 connected to the bus 112, which connects to another network 122 over which the host 100 and the storage system 102 additionally communicate. The first channel through the bus interface may provide a faster access channel than the network 122 interface through the network host adapter 120 .

[0009] Storage system 102 includes a bus interface with buses 124a, 124b, a bus switch 126 that connects to end devices on buses 124a, 124b, and a bus host adapter 128 that connects to external bus interface cable 118 to enable communication over the bus interface with host 100 over a first channel. Storage system 102 includes an I / O bay 130 having bus host adapter 128, one or more device adapters 132 for connecting to storage devices 104, and one or more network host adapters 134 for connecting to network 122 and host systems.

[0010] Storage system 102 includes a processor complex 136 consisting of one or more processor devices, and a memory 138 having a cache 140 for caching tracks accessed by the connected host 100. Memory 138 includes a cache manager 142 and a storage manager 144. Storage manager 144 manages access requests from processes of host 100 and storage system 102 for tracks in storage 104. Devices 136, 138, 128, 132, and 134 connect through a bus interface implemented as bus lanes 124a, 124b and bus switch 126.

[0011] The cache manager 142 maintains an accessed track in the cache 140 for future read accesses to that track, allowing the accessed track to be returned from the fast access cache 140 instead of having to be retrieved from the storage 104. Additionally, tracks in the cache 140 may be updated by writing. A track may comprise any unit of data organized in the storage 110, such as a track, a logical block address (LBA), a storage cell, a group of cells (e.g., a column, row, or array of cells), a sector, a segment, etc., which may be part of a larger grouping of tracks, such as a volume, a logical device, etc.

[0012] In certain implementations, such as those using International Business Machines Corporation's ("IBM") Z / OS® operating system, each segment may have an associated descriptor called a Cache Segment Control Block (CSCB), and one of the CSCBs is cast as a cache control block called a Cache Directory Control Block (CDCB). The cache 140 may be divided into 4K segments. Each track in the cache may have up to 17 CSCBs. One of the CSCBs in a track is designated the cache control block, also called the CDCB (cache directory control block), which holds all the control information pertaining to the track. There is one cache control block for each track in the cache 140, which provides metadata about the track in the cache 140. (Z / OS is a registered trademark of IBM worldwide.)

[0013] The cache manager 142 maintains cache management information 146 in memory 138 to manage the read (unmodified) and write (modified) tracks in the cache 140. The cache management information 146 may include a least recently used (LRU) cache list 148 that indicates the tracks in the cache 140 for determining which tracks to demote from the cache 140, a cache directory 150 that provides an index of a cache control block 200 or a segment descriptor to the location of a segment in the cache 140 that has a specified cache control block 200 or segment in the cache 140, and an active track data structure 152 that indicates the active tracks in the cache 140.

[0014] In one embodiment, active track data structure 152 may comprise a bitmap having a bit corresponding to each segment of cache 140. A track may be assigned multiple segments in cache 140, and the cache control block 200 for a track may include a i The cache control block 200 for the track contains metadata about the track and may reside in one of the segments assigned to the track. i The bit in bitmap 152 corresponding to a track can be set to indicate whether the track is active or inactive. i The bits in the bitmap of the active track data structure 152 that represent segments that are not part of the active track data structure 152 are left unused. i This may be implemented in a cache line that needs to be locked in order to process its bits to determine if it is active.

[0015] In one embodiment, cache directory 150 may be implemented as a distributed index table, where a track address or cache control block identifier is hashed to an entry in the table. The entry in cache directory 150 into which the value is hashed corresponds to the cache control block 200 for a track if the cache 140 has data for that cache control block or track. i It will have a pointer to the location in the cache 140 where the segment is stored.

[0016] 1 as program code that is loaded into memory 138 and executed by processor complex 136. Alternatively, some or all of the functionality may be implemented as microcode or firmware in hardware devices within storage system 102, such as application specific integrated circuits (ASICs).

[0017] In one embodiment, there may be multiple hosts 100 connected to the storage system 102 through first and second channels to access tracks on the storage devices 104. In such a case, the storage system 102 has at least one bus host adapter 128 for connecting to the bus interface 118 of each connected host 100, and one or more network host adapters 134 for connecting to the network host adapters 120 of the hosts 100.

[0018] In one embodiment, the bus interfaces 112, 114, 116, 118, 124a, 124b, 126, and 128 may comprise Peripheral Component Interconnect Express (PCIe) bus interface technology. In alternative embodiments, the bus interfaces 112, 114, 116, 118, 124a, 124b, 126, and 128 may utilize suitable bus interface technologies other than PCIe. The bus host adapters 116 and 128 may comprise PCIe host adapters that provide an interface for connecting to the PCIe cable 118. The network 122 may comprise a storage area network (SAN), a local area network (LAN), a wide area network (WAN), the Internet, an intranet, etc., and the network host adapters 120, 134 provide the network 122 connection between the host 100 and the storage system 102.

[0019] Storage system 102 may comprise a storage system such as the DS8000(R) and DS8880 storage systems from International Business Machines Corporation (IBM(R)), or storage controllers and storage systems from other vendors. (IBM and DS8000 are trademarks of International Business Machines Corporation worldwide.) Host operating system 111 may comprise an operating system such as Z Systems Operating System (Z / OS(R)) from International Business Machines Corporation ("IBM"), or other operating systems known in the art. (Z / OS is a registered trademark of IBM worldwide.)

[0020] The storage devices 104 in the disk enclosure 106 may be comprised of various types or classes of storage devices, such as magnetic hard disk drives, solid state storage devices (SSDs) comprised of solid state electronic elements, EEPROMs (Electrically Erasable Programmable Read Only Memory), flash memory, flash disks, random access memory (RAM) drives, storage class memory (SCM) such as phase change memory (PCM), resistive random access memory (RRAM), spin transfer torque memory (STT-RAM), conductive bridging RAM (CBRAM), magnetic hard disk drives, optical disks, tapes, etc. Volumes in the storage space may further be comprised of arrays of devices, such as Just a Bunch of Disks (JBOD), direct access storage devices (DASD), redundant arrays of independent disks (RAID), virtualization devices, etc. Additionally, the storage devices 104 within the disk enclosure 106 may comprise a heterogeneous mix of storage devices from different vendors and different types of storage devices, such as a first type of storage device, e.g., a hard disk drive, having a lower data transfer rate than a second type of storage device, e.g., an SSD.

[0021] FIG. 2 illustrates a cache control block 200 corresponding to one of the tracks of cache 140. i 2 illustrates an example embodiment of a cache control block 200. i a cache control block identifier 202, such as an index value of a cache control block 200 associated with the track; ithe location in the LRU cache list 206 where the track is indicated; an active bit 208 indicating whether the track is indicated as having an active or inactive status in the active track data structure 152; usage information 210 providing usage statistics about the tracks in the cache, such as the number of active users, the number of active writes, the number of locks, the number of changes, waiting threads (waiters), etc.; i and a demote status 212 that indicates whether the track identified by should be demoted from the cache 140. Additional information not described herein that is used to manage the tracks in the cache 140 is stored in the cache control block 200. i may be included in

[0022] The active bit 208 provides an optimization to indicate whether the active track data structure 152 indicates that a track is active. This is because a process may not have read or write access to the cache control block 200. i This allows a process to determine whether a bit in active track data structure 152 needs to be reset during normal operation without having to lock the cache line that contains the bit to determine whether the bit to be read indicates active or inactive.

[0023] 3 illustrates one embodiment of operations performed by cache manager 142 or storage manager 144 to process an input / output ("I / O") request, e.g., a read or write, to a target track on a low latency first channel 118. Upon receiving (at block 300) an I / O request to a target track on fast access channel 118, if the target track is not in cache 140 (at block 302), storage manager 144 returns (at block 304) a failure to the host on first channel 118, causing the host to resubmit the I / O request on higher latency second channel 122 via network host adapter 120, 134. If the target track is in cache 140 (at block 302), cache manager 142 returns (at block 306) an active track data structure 152 or cache control block 200 for the target track. T 3. Determine whether track status information, such as active bit 208 in the cache 140, indicates that the track is active, i.e., another process is currently accessing the track, such as holding a lock on the track. If the target track has an active status (at block 306), control proceeds to block 304 which returns failure even though the target track is in the cache 140.

[0024] If (at block 306) the target track has an inactive status, i.e., there is no process currently accessing the track that is preventing a host I / O request from immediately gaining access, then the operations of FIG. 4 are performed (at block 308) to cache the target track's cache control block 200. TIf the request includes a read request (at block 310), the cache manager 142 reads the target track from the cache 140 and returns the read target track to the host 100 over the first channel 118. If the request includes a write (at block 310), the write data in the write request is written (at block 314) to the target track. After performing the requested read or write, a completion is returned (at block 316) to the host 100 over the first channel 118. The operations of FIG. 5 are then performed (at block 318) to lock the cache control block 200 for the target track. T releases the lock on and terminates the access.

[0025] In the embodiment of operation of FIG. 3, during a high speed write through the bus interface 118 or the first channel, the active track data structure 152, or the cache control block 200 of the target track, T If the track status information, such as in the active bit 208 of the cache 140, indicates that the target track is not currently being accessed, e.g., no lock is held on the target track, then the host request can access the target track without waiting. In such a case, the read / write request is allowed to proceed since the transaction can be processed very quickly because the target track can be accessed immediately without having to wait for another process to relinquish a lock or access to the target track in the cache 140. However, if the track status information indicates that the target track has an active status, then the host read / write request is failed because the transaction will likely not complete within the fast time threshold. This determination is important to avoid host delays in processing other tasks while the host processor is spinning on the thread handling the read / write request waiting for the read / write request to complete.

[0026] If the target track can be accessed immediately without having to wait for other processes to release access to the target track, there is a high probability that the read / write can be completed on the high-speed bus interface channel 118 in the time required to avoid the host processor holding the thread too long and thereby causing other host 100 I / O requests to be queued and delayed. If the target track status is active and the host I / O request must wait for other processes to relinquish access to the target track, the read / write request is unlikely to be completed within the time threshold that the host processor would spin on the thread for the read / write request, and a failure is returned. Returning a failure when the target track status is active causes the host thread waiting on the task of the read / write request to become inactive, the host processor may context switch to processing other tasks, and the read / write request is then reattempted on the second network channel 122 during the context switch.

[0027] FIG. 4 illustrates a target track cache control block 200 for accessing a target track in the cache 140. T 4 illustrates one embodiment of the operations performed by the cache manager 142 to lock the target track cache control block 200 (at block 400). T Upon initiating an operation to obtain a lock on the target track cache control block 200, the cache manager 142 (at block 402) determines (at block 404) the target track cache control block 200 to be accessed. T The lock is obtained through the cache directory 150. T If the active bit 208 of the cache control block 200 indicates active, this indicates that the cache control block 200 is being accessed. TIf the active bit 208 indicates inactive (at block 404), the cache manager 142 clears (at block 408) the target track cache control block 200. T The cache control block 200 obtains a lock on the cache line that contains the bit in the active track data structure 152 for the cache line. The bit in the locked cache line in the active track data structure 152 is stored in the cache control block 200. T Because the track is being accessed, it is then set (at block 410) to indicate active. T The active bit 208 in the target track cache control block 200 in the active track data structure 152 is also set to indicate active (at block 412). T The lock on the cache line that contains the bit set for is released.

[0028] In the embodiment of the operation of FIG. 4, the target track cache control block 200 is used to access the target track in the cache 140. TWhen the active track data structure 152 is accessed, a determination is made as to whether the active bit in the active track data structure 152 needs to be updated. In one embodiment, to determine whether an update is required, an exclusive lock is obtained on the cache line having the bit to be updated by examining the active bit 208 in the cache control block to determine whether the active track data structure 152 actually needs to be updated. This optimization avoids the need to lock and access the bit in the active track data structure 152 by first examining whether the active bit 208 actually needs to be set or reset. Additionally, the active track data structure 152 is updated with current information regarding the active status of the target track to maintain the active track data structure 152 with current information regarding the active track status, allowing host requests to be better serviced over the high speed bus channel 118.

[0029] FIG. 5 illustrates the target track cache control block 200 after completing an access to the target track in the cache 140. T 5 illustrates one embodiment of the operations performed by cache manager 142 to release a lock on a target track cache control block 200 (at block 500). T Upon initiating an operation to release the lock on the cache, cache manager 142 instructs cache control block 200 (at block 502) to i If the active bit 208 indicates active (at block 502), the cache manager 142 processes (at block 504) cache control block usage information 210, such as the number of active users, the number of writes, modified flags, etc., to determine whether the target track cache control block 200's active bit 208 indicates active. If the active bit 208 indicates active, the cache manager 142 processes (at block 504) cache control block usage information 210, such as the number of active users, the number of writes, modified flags, etc., to determine whether the target track cache control block 200's active bit 208 indicates active. T Determine if is active.

[0030] (at block 506) the target track cache control block 200 T If the target track cache control block 200 is inactive based on the usage information 210 and conflicts with the active bit 208, the cache manager 142 updates (at block 508) the target track cache control block 200. T 5, the cache control block 200 locks (at block 510) the cache line that contains the bit in the active track data structure 152 for T The cache control block 200 resets the bit in the cache line that is locked to indicate inactivity. T The active bit 208 in the target track cache control block 200 is reset (at block 512) to indicate inactivity. The lock on the cache line is released (at block 516) and the target track cache control block 200 T The lock on the target track cache control block 200 is released (at block 502). T If the active bit indicates inactive, control proceeds to block 516 which releases the lock without changing the active bit 208, which already indicates inactive. If the usage information 210 indicates the track is active (at block 506), control proceeds to block 516 which releases the lock without changing the active bit 208, which already indicates active.

[0031] In the embodiment of the operation of FIG. 5, the target track / cache control block 200 TUpon releasing access to a track, a determination is made as to whether the active bit in active track data structure 152 needs to be updated to indicate inactive by checking the active bit 208 in the cache control block to determine whether active track data structure 152 actually needs to be updated to indicate inactive. This optimization avoids the need to lock a bit in active track data structure 152 to access it by checking whether active bit 208 indicates that the bit in active data structure 152 needs to be reset. Furthermore, if active bit 208 indicates that the released target track is inactive, cache manager 142 verifies that other usage information 210 indicates that the target track is still active even though active track data structure 152 / active bit 208 indicates the track as inactive. If the released target track is determined to be active even though the active bit 208 and active track data structure 152 indicate that the track is inactive, then the information 208, 152 must be reset to indicate active for the target track, reflecting the current status of the track based on the usage information 210. This updates the active track data structure 152 with the current information about the active status of the target track to optimize subsequent host I / O requests on the fast access bus interface 118.

[0032] The present invention may be embodied as a system, method, and / or computer program product, which may include computer readable storage medium(s) having computer readable program instructions for causing a processor to implement aspects of the present invention.

[0033] A computer readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may 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 above. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), static random access memories (SRAM), portable compact disk read-only memories (CD-ROM), digital versatile disks (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or raised structures in grooves in which instructions are recorded, and any suitable combination of the above. A computer-readable storage medium as used in the present invention should not be construed as a transitory signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or electrical signals transmitted over electrical wires.

[0034] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to each computing / processing device or to an external computer or storage device via 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 include 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 within each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage within a computer readable storage medium within the respective computing / processing device.

[0035] The computer readable program instructions for carrying out the operations of the present invention may be either assembler instructions, instruction set architecture (ISA) instructions, machine 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++, etc., and conventional procedural programming languages ​​such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partially on the user's computer, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server, as a stand-alone software package. 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 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 circuit, 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 personalize the electronic circuitry to implement aspects of the invention.

[0036] 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.

[0037] Those 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 such that the instructions, executed via the processor of the computer or other programmable data processing apparatus, create means for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. Those computer-readable program instructions may also be stored in a computer-readable storage medium capable of directing a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner, such that the computer-readable storage medium on which the instructions are stored constitutes an article of manufacture including instructions implementing aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.

[0038] The computer readable program instructions may be loaded into a computer, other programmable data processing apparatus, or other device, causing the computer, other programmable apparatus, or other device to perform a series of operational steps to generate a computer-implemented process, such that the instructions, which execute on the computer, other programmable apparatus, or other device, perform the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.

[0039] 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 part of an instruction, which includes one or more executable instructions for performing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur 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 should also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, are implemented by a special-purpose hardware-based system that performs the specified functions or operates or implements a combination of special-purpose hardware and computer instructions.

[0040] The computer components of FIG. 1, including the host 100 and the storage system 102, may be implemented in one or more computer systems, such as the computer system 602 shown in FIG. 6. The computer system / server 602 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 602 may be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked by 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.

[0041] As shown in Figure 6, a computer system / server 602 is shown in the form of a general-purpose computing device. Components of the computer system / server 602 may include, but are not limited to, one or more processors or processing units 604, a system memory 606, and a bus 608 that couples various system components including the system memory 606 to the processor 604. The bus 608 represents any one or more of several bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor bus 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 Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnects (PCI) bus.

[0042] Computer system / server 602 typically includes a variety of computer system readable media. Such media may be any available media that can be accessed by computer system / server 602 and includes both volatile and nonvolatile media, removable and non-removable media.

[0043] The system memory 606 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 610 and / or cache memory 612. The computer system / server 602 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 613 may be provided for reading from and writing to a non-removable, non-volatile magnetic medium (not shown, commonly referred to as a "hard drive"). Although not shown, a magnetic disk drive may be provided for reading from and writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), as well as an optical disk drive for reading from or writing to a removable, non-volatile optical disk, such as a CD-ROM, DVD-ROM, or other optical media. In such an example, each may be connected to the bus 608 by one or more data media interfaces. As further illustrated and described below, the memory 606 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of embodiments of the present invention.

[0044] A program / utility 614 having a set (at least one) of program modules 616 may be stored in the memory 606, as well as an operating system, one or more application programs, other program modules, and program data, by way of example and not limitation. Each of the operating system, one or more application programs, other program modules, and program data, or any combination thereof, may include an implementation of a networking environment. The components of the computer 602 may be implemented as program modules 616 that generally perform the functions and / or methodologies of the embodiments of the invention described herein. The system of FIG. 1 may be implemented with one or more computer systems 602, and when implemented as multiple computer systems 602, the computer systems may communicate with each other over a network.

[0045] The computer system / server 602 may also communicate with one or more external devices 618, such as a keyboard, pointing device, display 620; one or more devices that allow a user to interact with the computer system / server 602; and / or any device (e.g., network card, modem, etc.) that allows the computer system / server 602 to communicate with one or more other computing devices. Such communication may occur via an input / output (I / O) interface 622. Additionally, the computer system / server 602 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, via a network adapter 624. As depicted, the network adapter 624 communicates with other components of the computer system / server 602 via a bus 608. Although not shown, it should be understood that other hardware and / or software components may be used in conjunction with the computer system / server 602. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archiving storage systems.

[0046] The terms "one embodiment," "embodiment," "embodiments (plural)," "this embodiment," "this embodiment (plural)," "one or more embodiments," "some embodiments," and "one embodiment" mean "one or more (but not all) embodiments of the invention," unless expressly specified otherwise.

[0047] The terms "including," "comprising," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.

[0048] An enumerated listing of items does not imply that any or all of the items are mutually exclusive, unless expressly specified otherwise.

[0049] The terms "a," "an," and "the" mean "one or more," unless expressly specified otherwise.

[0050] Devices that are in communication with each other need not be in continuous communication with each other unless explicitly specified otherwise, and devices that are in communication with each other may communicate directly or indirectly through one or more intermediaries.

[0051] A description of an embodiment having several components in communication with each other does not imply that all such components are required, rather various optional components are described to illustrate a wide variety of possible embodiments of the present invention.

[0052] Where a single device or article is described herein, it will be readily apparent that two or more devices / articles (whether they cooperate or not) are used in place of the single device / article. Similarly, where two or more devices or articles are described herein (whether they cooperate or not), 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 are 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.

[0053] The above 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 rather by the appended claims. The above specification, examples and data provide a complete description of the manufacture and use of the composition of the invention. Because many embodiments of the invention can be made without departing from the scope of the invention, the invention resides in the claims appended below.

Claims

1. 1. A computer program product for managing read and write requests from a host to tracks stored in a cache, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that is executable to perform operations, the operations comprising: receiving a host request on a first channel to the host to access a target track; determining from track status information whether the target track has an active status or an inactive status, where the target track has an active status when at least one process currently holds a lock on the target track that prevents access, and the target track has an inactive status when no process currently holds a lock on the target track that prevents access by other processes; in response to determining that the target track has the active status, returning a failure to the host to cause the host to resend the host request on a second channel, the first channel having lower latency than the second channel; and 2. A computer program product comprising:

2. 2. The computer program product of claim 1, wherein the track status information comprises an active bit in a cache control block of the track to indicate the active status or the inactive status of the track, and wherein determining whether the target track has the active status or the inactive status comprises determining whether an active bit in a cache control block of the target track indicates the active status or the inactive status.

3. The operation, maintaining an active track data structure indicating which tracks in the cache have an active status; setting an active bit in a cache control block for a track indicated as active in the active track data structure to indicate that the track is active; 3. The computer program product of claim 2, further comprising:

4. 2. The computer program product of claim 1, wherein the track status information comprises a bitmap including bits for cache control blocks, a bit for a cache control block indicating whether a track identified by the cache control block is active or inactive, and wherein determining whether the target track has an active or inactive status comprises determining whether a bit for the target track's cache control block in the bitmap indicates the active or inactive status.

5. The operation, determining whether the target track is in the cache in response to receiving the host request, wherein determining whether the target track has an active status is performed in response to determining that the target track is in the cache; in response to determining that the target track is not in the cache, returning a failure to the host to cause the host to resend the host request on the second channel; 10. The computer program product of claim 1, further comprising:

6. the host request comprises a read request, and the operation comprises:

6. The computer program product of claim 5, further comprising, in response to determining that the target track is in the cache and has the inactive status, processing the host request to read the target track in the cache and returning the target track on the first channel.

7. the host request comprises a read request, and the operation comprises: in response to determining that the target track has the inactive status, processing the read request to obtain a lock on the target track in the cache; in response to obtaining the lock, reading the target track in the cache; returning the read target track to the host on the first channel; 10. The computer program product of claim 1, further comprising:

8. 1. A system for managing read and write requests from a host to tracks cached in a cache, comprising: A processor; a computer readable storage medium having computer readable program code embodied therein, the computer readable program code performing operations when executed by the processor, the operations comprising: receiving a host request on a first channel to the host to access a target track; determining from track status information whether the target track has an active status or an inactive status, where the target track has an active status when at least one process currently holds a lock on the target track that prevents access, and the target track has an inactive status when no process currently holds a lock on the target track that prevents access by other processes; in response to determining that the target track has the active status, returning a failure to the host to cause the host to resend the host request on a second channel, the first channel having lower latency than the second channel; and Including, the system.

9. 9. The system of claim 8, wherein the track status information comprises an active bit in a cache control block of the track to indicate the active status or the inactive status of the track, and wherein determining whether the target track has the active status or the inactive status comprises determining whether an active bit in a cache control block of the target track indicates the active status or the inactive status.

10. The operation, maintaining an active track data structure indicating which tracks in the cache have an active status; setting an active bit in a cache control block for a track indicated as active in the active track data structure to indicate that the track is active; The system of claim 9 further comprising:

11. 9. The system of claim 8, wherein the track status information includes a bitmap including bits for cache control blocks, the bits for a cache control block indicating whether a track identified by the cache control block is active or inactive, and wherein determining whether the target track has an active or inactive status includes determining whether a bit for the cache control block of the target track in the bitmap indicates the active or inactive status.

12. The operation, determining whether the target track is in the cache in response to receiving the host request, wherein determining whether the target track has an active status is performed in response to determining that the target track is in the cache; in response to determining that the target track is not in the cache, returning a failure to the host to cause the host to resend the host request on the second channel; The system of claim 8 further comprising:

13. the host request comprises a read request, and the operation comprises:

13. The system of claim 12, further comprising, in response to determining that the target track is in the cache and has the inactive status, processing the host request to read the target track in the cache and returning the target track on the first channel.

14. the host request comprises a read request, and the operation comprises: in response to determining that the target track has the inactive status, processing the read request to obtain a lock on the target track in the cache; in response to obtaining the lock, reading the target track in the cache; returning the read target track to the host on the first channel; The system of claim 8 further comprising:

15. 1. A method for managing read and write requests from a host to tracks cached and stored in a cache, comprising: receiving a host request on a first channel to the host to access a target track; determining from track status information whether the target track has an active status or an inactive status, where the target track has an active status when at least one process currently holds a lock on the target track that prevents access, and the target track has an inactive status when no process currently holds a lock on the target track that prevents access by other processes; and in response to determining that the target track has the active status, returning a failure to the host to cause the host to resend the host request on a second channel, the first channel having less latency than the second channel.

16. 16. The method of claim 15, wherein the track status information comprises an active bit in a cache control block of the track to indicate the active status or the inactive status of the track, and wherein determining whether the target track has the active status or the inactive status comprises determining whether an active bit in a cache control block of the target track indicates the active status or the inactive status.

17. maintaining an active track data structure indicating which tracks in the cache have an active status; setting an active bit in a cache control block for a track indicated as active in the active track data structure to indicate that the track is active; 20. The method of claim 16, further comprising:

18. determining whether the target track is in the cache in response to receiving the host request, wherein determining whether the target track has an active status is performed in response to determining that the target track is in the cache; in response to determining that the target track is not in the cache, returning a failure to the host to cause the host to resend the host request on the second channel; The method of claim 15 further comprising:

19. the host request comprises a read request, the method comprising:

20. The method of claim 18, further comprising, in response to determining that the target track is in the cache and has the inactive status, processing the host request to read the target track in the cache and returning the target track on the first channel.

20. the host request comprises a read request, the method comprising: in response to determining that the target track has the inactive status, processing the read request to obtain a lock on the target track in the cache; in response to obtaining the lock, reading the target track in the cache; returning the read target track to the host on the first channel; The method of claim 15 further comprising:

Citation Information

Patent Citations

  • Cache memory system

    JP1994195263A

  • Computer program, system, and method for managing read and write requests to tracks in cached storage within a cache

    JP2020528624A

  • Managing cache behavior using track locks and stride group locks

    JP2021517684A