This application is a U.S. National Phase application under 35 U.S.C. §371 of International Application No. PCT/US2011/054313, filed Sep. 30, 2011, entitled PRESENTATION OF DIRECT ACCESSED STORAGE UNDER A LOGICAL DRIVE MODEL, the entire contents of which are incorporated herein by reference.
A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
Embodiments relate generally to the field of computing, and more particularly to the presentation of direct accessed storage under a logical drive model, including methods, systems, and apparatuses for implementing presentation of direct accessed storage under a logical drive model and other complementary solutions related to Direct memory access (DMA) based storage technologies, such as improved Redundant Array of Independent Disks (RAID) support, distributed RAID support, local block mirroring for improving device latency consistency, improved door bell schemes for coalescence and arbitration, as such improvements relate to DMA based storage technologies.
The subject matter discussed in the background section should not be assumed to be prior art merely as a result of its mention in the background section. Similarly, a problem mentioned in the background section or associated with the subject matter of the background section should not be assumed to have been previously recognized in the prior art. The subject matter in the background section merely represents different approaches, which in and of themselves may also correspond to disclosed embodiments.
In the computing arts, it is most common to have storage mechanisms which are directly accessed and managed by an Operating System (OS) in conjunction with a Central Processing Unit (CPU), the OS residing upon a computing device and enabled through execution capabilities of the CPU. However, alternative mechanisms also exist, such as DMA (Direct Memory Access) based mechanisms and Direct Access Storage devices which operate independently of a host and its operating system and file systems, for example, enabling access directly to hosted applications executing on the host without requiring that such hosted applications communicate access requests through the host or its operating system and/or file system.
Prior to standard storage interfaces (circa mid 1980s), programmers were required to write code to specifically handle reading and writing data from hard disk drives. Such code was required to identify cylinder, head, track and sector(s) on the hard disk drive (HDD) as part of the read and write operations. Identifying such detail as part of read and write operations to a HDD required changes to an OS in order to support any new HDD, given that the cylinder, head, track and sector(s) were inevitably different than what had been previously supported.
As standard storage interfaces, such as SCSI, ATA, SAS, SATA, FC, etc., were developed and adopted, it was then possible to hide the HDD's underlying cylinder, head, track and sector(s) layout from the programmer and present a consistent interface to the HDD, regardless of its underlying physical structure. These standard storage interfaces thus allowed programmers to simply identify a logical address in a command sent over the standard storage interface and the firmware in the hard disk drive which implemented the standard storage interface would then translate the logical address into the corresponding cylinder, head, track and sector(s) necessary to perform the read and/or write operation, move the read/write head to the correct location on the cylinder etc., and read or write the actual data per the command.
Device drivers to support these standard storage interfaces were included in operating systems so that applications residing on the OS could use standard OS calls to access any HDD via the standard storage interface, regardless of the HDD's underlying physical structure. While the standard storage interfaces and the supporting device drivers within the operating systems provided a solution to the complexities of identifying a HDD's underlying cylinder, head, track and sector(s), the standard storage interfaces and supporting device drivers themselves add complexity as well as computational overhead and therefore inefficiency which can slow performance.
The present state of the art may therefore benefit from the teachings set forth herein.
Embodiments are illustrated by way of example, and not by way of limitation, and will be more fully understood with reference to the following detailed description when considered in connection with the figures in which:
Described herein are systems, devices, apparatuses, techniques, mechanisms, and methods for the presentation of direct accessed storage under a logical drive model and other complementary solutions related to DMA based storage technologies.
In recent years with the advent of SSD (Solid-State Drive) technologies being incorporated into computer systems as mass storage devices, there is an opportunity to eliminate some of the overhead associated with traditional HDD type drives. For instance, SSD devices utilize solid state memory rather than cylinders, heads, tracks and sectors. It is therefore unnecessary for a standard storage interface to translate a logical address supplied via a programmer to an underlying cylinder, head, track and sector(s) associated with a particular read/write command. Use of such translation mechanisms in the standard storage interfaces have nevertheless been maintained so as to provide backward compatibility to older legacy systems, despite the above mentioned inefficiencies. Removal or bypassing the above mentioned standard storage interfaces requires new solutions and innovation so as to enable modern operating systems to communicate with SSD based storage devices. Such solutions and innovations are disclosed via the teachings provided below, and are claimed herein.
Direct memory access (DMA) is a feature of modern computers and microprocessors that allows certain subsystems within the computer to access system memory for reading and/or writing independently of the central processing unit and potentially independently of a hosted operating system. Systems that enable and support DMA capabilities may include, for example, disk drive controllers, graphics cards, network cards and sound cards. DMA capabilities may be beneficial insomuch as they off-load responsibility and overhead from the OS of a host computing device. However, utilization of DMA presents other problems, several of which are additionally the subject of the present application, and for which solutions are presented, taught, and claimed herein.
For instance, Applicants teach herein, solutions for 1) presentation of direct accessed storage under a logical drive model; 2) a distributed architecture for cooperative NVM (Non-Volatile Memory) Data protection; 3) data mirroring for consistent SSD (Solid-State Drive) latency; 4) solutions and methods for boosting a controller's performance and RAS (Reliability, Availability and Serviceability) with DIF (Data Integrity Field) support via concurrent RAID (Redundant Array of Independent Disks) processing; 5) arbitration and resource schemes of a doorbell mechanism, including doorbell arbitration for fairness and prevention of attack congestion; and 6) solutions and methods for multiple interrupt generation using a Messaging Unit, and NTB (Non-Transparent Bridging) in a controller.
For example,
In the following description, numerous specific details are set forth such as examples of specific systems, languages, components, etc., in order to provide a thorough understanding of the various embodiments. It will be apparent, however, to one skilled in the art that these specific details need not be employed to practice the embodiments disclosed herein. In other instances, well known materials or methods have not been described in detail in order to avoid unnecessarily obscuring the disclosed embodiments.
In addition to various hardware components depicted in the figures and described herein, embodiments further include various operations which are described below. The operations described in accordance with such embodiments may be performed by hardware components or may be embodied in machine-executable instructions, which may be used to cause a general-purpose or special-purpose processor programmed with the instructions to perform the operations. Alternatively, the operations may be performed by a combination of hardware and software.
Embodiments also relate to an apparatus for performing the operations disclosed herein. This apparatus may be specially constructed for the required purposes, or it may be a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer readable storage medium, such as, but not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, and magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any type of media suitable for storing electronic instructions, each coupled to a computer system bus.
The algorithms and displays presented herein are not inherently related to any particular computer or other apparatus. Various general purpose systems may be used with programs in accordance with the teachings herein, or it may prove convenient to construct more specialized apparatus to perform the required method steps. The required structure for a variety of these systems will appear as set forth in the description below. In addition, embodiments are not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the embodiments as described herein.
Embodiments may be provided as a computer program product, or software, that may include a machine-readable medium having stored thereon instructions, which may be used to program a computer system (or other electronic devices) to perform a process according to the disclosed embodiments. A machine-readable medium includes any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer). For example, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., a computer) readable storage medium (e.g., read only memory (“ROM”), random access memory (“RAM”), magnetic disk storage media, optical storage media, flash memory devices, etc.), a machine (e.g., computer) readable transmission medium (electrical, optical, acoustical), etc.
Any of the disclosed embodiments may be used alone or together with one another in any combination. Although various embodiments may have been partially motivated by deficiencies with conventional techniques and approaches, some of which are described or alluded to within the specification, the embodiments need not necessarily address or solve any of these deficiencies, but rather, may address only some of the deficiencies, address none of the deficiencies, or be directed toward different deficiencies and problems where are not directly discussed.
In accordance with disclosed embodiments, presentation of direct accessed storage under a logical drive model provides a mechanism by which to present storage space that is used for direct mapped storage 118 as a logical volume, thus enabling the space to appear in standard operating system tools and views. The terms “direct accessed storage” and “direct storage” as used herein refer to storage 118 that is accessed without going through such an Operating System's native or internal file system support.
A standard OS-readable drive partition 130 is provided which is accessible as block storage and used to present a logical volume (drive) (e.g., via LBA 134) that represents the existence of direct storage and the amount of storage space that is allocated to direct storage. Such a technique results in “direct mapped storage.”
Direct mapped storage 137 provides storage that is directly accessible by applications as well as the OS. However, direct mapped storage 137 is not organized using a standard file system, such as an NTFS (New Technology File System). If the storage space does not appear as a logical volume (e.g., LBA 134) to the OS 120, then standard tools, such as natively supported tools of the host Operating System 120, cannot be used to see whether direct accessed storage 117 even exists, nor can the Operating system determine how much storage space has been allocated for the direct accessed storage 117, how much space is available, how much space is presently utilized, and so forth.
Non-conventional storage, such as storage that is not shown using logical drives, is thus made accessible to traditional utilities familiar to a host operating system, whilst simultaneously enabling the benefits for which such non-conventional storage was chosen and implemented by the designer of the hosting computing device upon which the Operating System operates and executes.
Presently available solutions provide no mechanism whatsoever by which a region of direct storage 137 which is not directly accessible through the operating system's native file support capabilities and utilities may appear in standard operating system tools and views. Moreover, presently available solutions provide no mechanism whatsoever by which such non-conventional storage (e.g., direct accessed storage) can be partially or wholly accessed as logical block accessed (LBA) storage 134. Further still, presently available solutions provide no mechanism whatsoever by which partition data (e.g., metadata in a MBR/Partition table 133 or Logical Partition 131) can be made available to a host operating system, in which the partition data represents the presence and amount of storage used for direct storage which is otherwise unavailable and therefore, effectively invisible, to the host operating system 120, absent the techniques described herein.
The described techniques may be further extended through the use of a storage device or array 132 that provides a combination of LBA and Direct Accessed Storage 117 where both types of storage are enabled to appear as logical volumes coming from the same storage device or storage array.
The use of standard partitions in combination with providing a logical-block accessed (LBA) compliant device 134 corresponding to the direct accessed storage device to enable standard OS tools to directly read and interpret the partition data without requiring modification or augmentation of the OS tools is of particular benefit as reverse compatibility may be provided without having to overhaul such a host Operating Systems familiar tools used to manage, access, and view traditional storage space under the control of the Operating System. Without such a mechanism, the amount of storage used for direct access would not be visible to the user using the standard OS tools (without overhaul of the OS). For example, if the user has a 500 GB (gigabyte) storage device where 200 GB was used for LBA storage and 300 GB for Direct Access storage, only the 200 GB used for LBA storage would appear under the standard OS tools for disk management, leaving the remainder effectively invisible to the user and to the OS, absent the described techniques.
These techniques may be utilized specifically to accommodate the way certain FLASH Drives are managed or mapped, as well as other medium types of direct accessed storage 117.
An adaptor for the direct accessed storage 117 (e.g., such as a storage adapter 199 provided via, for example, a controller 105 or other capable device) provides a partition table 133 on behalf of the direct access storage 117 where the partition table 133 is accessed using logical block access (LBA) 131 by the host OS 120. The logical storage device 134 provided by the controller 105 or an equivalent mechanism includes at least a small portion of LBA storage, even if the bulk of the direct access storage 117 is used for direct access storage only, such as that depicted by example Q in which the vast majority of the direct access storage 117 remains as direct access storage 117 with only a very small portion presented to the host OS 120.
The presentation of the direct access storage 117 as a foreign file system helps prevent the host OS 120 from attempting to access the associated data. The partition data for the storage would typically be kept on the storage device itself, although it is possible that it could also be synthesized by the direct access storage driver (e.g., drivers 104 or other appropriate drivers).
The advent of direct access storage 117 carries with it a learning curve which may present barriers to adoption of the technology. The embodiments described herein enable the usability of the direct access storage 117 solutions by making them technologically compatible with existing models for hard drive and RAID (virtual drive) management under the host OS 120, thus making direct access storage 117 more readily comprehensible and acceptable to users, be they end-users of a computing device or designers of such host 119 computing devices.
The disclosed techniques may be implemented and in accordance with some embodiments, be implemented at least partially via data that is stored on the direct access storage 117 and communicably links/interfaces/hooks to a storage adapter 199 implementation be it within a controller 105 or otherwise. Moreover, open source software and third-party interfaces and solutions may be utilized to access the implementing data, may be used to access the storage of the data on the medium utilized for the direct access storage 117, and may utilize mechanisms which collectively provide the described features, subject to appropriate rights, permissions, and licensure.
In accordance with disclosed embodiments, Distributed Architecture for Cooperative NVM (Non-Volatile Memory) Data Protection provides a mechanism to ensure data protection and further to distribute the task of data protection and data recovery 215 amongst a community of solid state drives (SSDs), such as storage apparatuses. The disclosed mechanism and exemplary embodiments exploit features of PCIe (Peripheral Component Interconnect Express) 250, including, for example, multicast capabilities of PCIe 250, and thus, is enabled to leverage the I/O fabric between a host 119 and PCIe 250 based or PCIe 250 compatible SSDs. Although PCIe 250 is described as an example, any communication medium that provides multicast capabilities may implement the disclosed embodiments. For example, Internet Protocol (IP) based storage systems which support multicast capabilities and cooperative communication schemes may benefit from the described techniques.
A data protection and recovery 215 architecture and complementary mechanisms are disclosed which distribute the functionality among a community of SSDs. Since SSDs incorporate both ECC (Error-Correcting Code) and XOR (Exclusive OR and/or XOR gate) operations, such an approach reuses existing hardware and pushes the responsibility of data protection and recovery 115 on a host or on a controller to a storage device 299 or SSD capable of implementing distributed data protection and recover 215 as the acceleration already resides within such PCIe 250 based or PCIe 250 compatible SSD devices and storage devices 299.
Through the practice of such disclosed embodiments, RAID may further be implemented in a distributed fashion over the architecture, thus offloading data recovery 115 responsibility from a host 119 to the host's 119 endpoint drives operating as a storage device 299 capable of performing the distributed data protection and recovery techniques 215. In previously available data protection architectures, the host 119 aggregates data in order to generate XOR protection information and writes ‘bands’ over the set of drives. A band is a set of data per drive as well as a protection strip that is written to a drive, in which each band includes a data protection strip written to a different drive (e.g., not a drive storing the original data or portion of data) to level the protection data across the drive set.
Disclosed herein is a mechanism by which XOR protection information is not generated or checked by the host 119 or even a controller 105 or other controller implementing DMA storage techniques for communication with direct accessed storage devices 117, but instead is checked by the distributed PCIe based or PCIe compatible SSDs and storage devices 299 themselves. More particularly, the responsibility for performing and ensuring such XOR protections is off-loaded from the host 119 or a host RAID controller and onto the endpoint PCIe based or PCIe compatible SSDs storage devices 299.
For each band write across the PCIe based or PCIe compatible drive set, the host 119 or host OS 120 determines which drive will act as the data protection strip for that particular band. In one embodiment, the host 119 writes each drive strip (e.g., each drive's representative portion set for the band) to its representative drive and also to the protection drive via PCIe multicast. Such an approach allows each targeted PCIe based or PCIe compatible drive to receive its data for storage, but also enables the currently designated protection drive for that write sequence to receive the data necessary for XOR generation. As part of the write transaction, each drive knows whether it's a data-store drive for that particular transaction or conversely, an XOR generation target drive in which case it serves as the designated protection drive for that particular write transaction (e.g., each drive may be signaled by the host 119 as to is role for that write transaction as data-store or XOR generation, or derive its appropriate role from, for example, a header, flag, or other appropriate messaging operation).
For the data-store target drive(s) specifically, the write transaction is simply stored in the drive so as to store the data directed to the particular target data-store drive.
For the XOR generate target drive however (e.g., the designated protection drive for the band), the drive collects the data necessary to perform XOR generation (all other data within the band), and then awaits the next multicast write request to perform the XOR generate operation based on the collected data. RAID module 298 (
In an alternative embodiment, a host 119 or a controller 105 writes a single I/O transaction to the storage device 299, and the RAID module 298 of the storage device chunks the data of the write transaction as appropriate and initiates the multi-casting function so that all drives receive the necessary data chunks and such that the XOR targeted drive can generate XOR data based upon the data chunks seen by virtue of the multicast operation.
Take for example a 3+1 RAID set in which three multicast writes are performed. In such an example, the three drives receiving data as targeted or designated data-store drives and the one/single designated protection drive receiving/collecting each of the writes via multicast for the purpose of generating or calculating XOR from the data associated with the three writes targeted to the data-protection drives, but “seen” or visible to the designated protection drive through the virtue of the multicast operation, thus resulting in the XOR generation or calculation of RAID parity data appropriate for storage as the data protection strip upon the designated protection drive for that particular band write transaction.
As noted above, such a scheme offloads computational burden from the host 119, as the host 119 its OS 120, its operational software, even a RAID 298 controller for the host is not necessary to calculate parity data, as the burden is distributed to a designated protection drive or storage device 299 for that band write transaction which already possesses such a capability natively (e.g., such as the exemplary SSDs devices noted above which internally generate XORs over channels). The host 119 may designate different available drives as the protection drive for each of a plurality of such write transactions based on different methodologies, such as round-robin, or in view of an I/O load for such a drive, any queue times for such drives, or other characteristics as appropriate or the RAID module 298 within such a storage device 299 may coordinate the selection and designation of data target drives and XOR parity calculation target drives.
Because previously available solutions required that data protection and recovery be performed by the host 119 or its host OS 120 software, it was necessary to provide sufficient acceleration of XOR calculations so as to prevent a bottleneck or performance degradation of I/O based operations. Where hardware acceleration was not available with such prior techniques, software algorithms must be provided with significant performance reduction for the host 119 due to an extreme computational burden on the host's 119 processor(s).
Because the disclosed architecture and techniques pushes data protection and recovery burdens to the drives or storage devices 299 themselves via the multicasting of data to the target data-store drives, the RAID module 298 is enabled to calculate or have calculated appropriate parity data at the drives and then store such parity data. Through such techniques, significant performance increases can be attained without the host 119 having to implement any particular hardware acceleration mechanism for host 119 based XOR calculations or controller based XOR calculations. In one embodiment, write data is tagged with band information such that the available drives can autonomously generate XOR data, deriving their role designation from tagged data (e.g., as a data-store target drive or a designated protection drive for a particular write transaction, revolving around the drives with an appropriate methodology to minimize read performance degradation issues.
Data recovery operations, when necessary, may also performed at the drive level, absent the host having to perform XOR reconstruction operations. For example, where the available drives communicate with their peer drives in a peer-to-peer fashion, the peer drives are enabled to reconstruct data using XOR prior to submitting data back to the host, thus utilizing the distributed capabilities of the available drives to perform such data recovery capabilities and therefore, offloading such responsibilities from the host 119.
Conversely, presently available solutions centralize the job of data protection and recovery at a single entity, typically the host 119, its host OS 120, or even centralized via a host RAID controller. The techniques described herein do not centralize such burdens, but instead, distribute the load of the work/computational overhead to the endpoint drives, working in a cooperative fashion, thus permitting RAID protection with host offload, and further providing important valued-added features capable devices, such as the exemplary SSD type storage devices 299 disclosed herein. For example, the exemplary SSDs support multicast 294 (
The data recovery mechanism 115 depicted at
For example, in place of host 119 based firmware or host OS 120 based software as set forth in
In one embodiment, a RAID module 298 provides chunking capabilities of data into the plurality of chunks 295 and further initiates appropriate multicast 294 operations in a coordinated effort with the cooperative direct access storage devices 217. The RAID module 298 as well as the cooperative direct access storage devices 217 are integrated into a single storage apparatus 299 in accordance with on embodiment, such as within an SSD device. Data may arrive from, for example, a write aggregation mechanism 111, such as that shown within controller 105.
In addition to the capability to provide such features via distributed endpoint devices operating as cooperative direct access storage devices 217, the described techniques may further service to reduce cost and complexity of a host 119 due to such a host 119 no longer requiring its own RAID based capabilities via hardware acceleration, software, or a controller, and the described embodiments further introduce additional value to capable SSD devices or other compatible endpoint devices through their ability to provide such cooperative data protection features. Further still, the computational load is load-balanced across multiple devices due to the distributed nature of the embodiments disclosed, thus potentially provided improved performance and speeds over centralized based (e.g., host 119 based) solutions. Yet further still, the distributed approach which leverages the endpoint devices also minimizes the amount of data communicated within a PCIe fabric, thus improving I/O performance through a reduction of contention for the PCIe fabric resources. For example, writes are multicast to the target drive and the data protection drive rather than being individually sent for any particular chunk 281, thus, in a 3+1 RAID configuration such as that described above, there would be only three (3x) multicast writes performed instead of four (4x) typical non-multicast writes in which the fourth non-multicast write is the XOR chunk directed toward a designated parity drive or protection drive for that particular stripe write.
Because the data recovery burden is also offloaded from the host 119, when a drive detects that an internal data error has occurred (e.g., through its native internal parity), the drive at issue reads data from the peer drives in the set to respond to the issued read request and additionally automatically updates its data locally to correct the for error, again resulting in a lessened burden not just upon the host 119 but also a lessened I/O burden to the PCIe fabric.
In yet another embodiment, drive rebuilds are also offloaded from the host 119 and are also performed in a distributed and cooperative fashion via the cooperative direct access storage devices 217. For example, in a traditional RAID systems, the host 119 enters a rebuild mode to read data from all remaining drives in the RAID set, then regenerates the missing data, and then writes the missing data back onto the new drive which is being re-constructed. Such a process creates an enormous computational burden on the host 119 and upon the communication interface between the host 119 and its storage.
Conversely, in accordance with the disclosed embodiments described herein, each of the cooperative direct access storage devices 217 in the set cooperatively performs the rebuild for the new drive (each drive agrees or coordinates which chunks 281 it will regenerate for the new drive being reconstructed). In such a way, each of the cooperative direct access storage devices 217 performs a multicast read to the other drives in the RAID set to rebuild the missing data which is then written to the new drive, all of which may be performed without involving the host 119, and thus, there is no computational burden applied to the host 119 which may therefore carry out other operations. Because the reconstruction of a drive occurs via each of the remaining cooperative direct access storage devices 217 in the RAID set, the reconstruction occurs faster and minimizes the rebuild window, thus further reducing the risk of a dual-failure mode syndrome, and thus, potentially permanent data loss or non-recoverable data loss via that raid set (e.g., where “P” mode syndrome data is stored without additional “Q” based parity for dual syndrome recovery). For example, where a drive fails or is replaced with a drive to be re-constructed, there is not sufficient data present to reconstruct a second drive owing to a second failure if such a second failure occurs before the new drive is completely reconstructed. Thus, any decrease in reconstruction time reduces the risk of a dual syndrome failure situation.
In accordance with disclosed embodiments, data mirroring for consistent SSD (Solid-State Drive) latency provides a mechanism to ensure consistent latency and data mirroring via Solid State Drives (SSDs) 301 which deliver lower latency storage than mechanical Hard Disk Drives (HDDs).
NAND (Negated AND or Negated AND gate) 310 based flash memory is one type of underlying non-transitory physical storage media utilized for SSDs 301. Presently available NAND 310 technology requires some management overhead for it to be used for storage. For example, large blocks of the device must be erased at one time so that new data can be written to the NAND device. Performing a block erase takes a long time and while the erase operation is underway, the NAND device is incapable of allowing any access to data on the device during such an erase period (e.g., the time it takes to erase the designated block). If a read request is presented to the NAND device, it must be delayed or queued until the NAND device completes its erase operation, thus resulting in a potentially significant latency delay for access to the device.
Although such erase operations occur infrequently and are not persistently encountered when utilizing such a NAND based device, they do nevertheless occur and while underway, they are likely to create the above contention/conflict between a read request and a processing block erase, resulting in high latency periods for any I/O targeting other data to the same device being erased. Such a scenario creates a high variability in the I/O latency to SSDs.
So as to compensate for such problems, disclosed herein are mechanisms to manage NAND based FLASH in an SSD device such that a duplicate block exists for all data blocks (e.g., such as a mirrored block), and then managing the NAND device in such a way that one copy of any data block can be accessed at any time, even when a first copy of the requested block is not accessible due to an erase block operation on a particular NAND device. Through practice of the disclosed architecture, methodologies, and disclosed embodiments, variability of I/O to a NAND based SSD (or other storage device having similar limitations) is greatly reduced, producing a more consistent and predictable device for latency sensitive applications.
For example, NAND-m 398 and NAND-m′ 399 (NAND-m prime) are depicted, each having stored a mirror or a copy of the same data block. The mirrored data block 312 is stored in both devices such that one copy may be accessible at any time, regardless of whether a pending erase operation is underway which would otherwise cause an I/O request 313 to be delayed. The disclosed mechanism further provides management for erase activity of the various NAND devices such that two NAND devices (NAND-m and NAND-m′) having stored the two copies of the same data block are never erased at the same time, e.g., via block mirroring logic of the SSD 301. Managing the initiation an completion of erase periods allows for the NAND controller of the SSD device to ensure that any block of data can always be accessed with consistent latency, resulting in far greater predictability and drastically lessened variability for access requests to the SSD device due to practice of the disclosed methodologies and architecture for managing the NAND device arrays.
In the depiction set forth at
An exemplary algorithm for the disclosed mechanism is as follows:
1. Block “M” requires erasing;
2. Erase block “M” on primary NAND-m device 398;
3. During erase operation, service all new I/O reads from mirror device at NAND-m′ (NAND-m prime) 399;
4. When erase operation completes, perform erase on NAND-m′ device 399 (NAND-m prime); and
5. During erase operation of NAND-m′ (NAND-m prime) 399, service all new I/O reads from primary device at NAND-m 398.
Although present NAND based SSD devices implement complex algorithms to minimize the likelihood of an erase operation conflict causing latency inconsistency and increased variably, none are capable of fully eliminating an erase operation conflict. Mirroring or copying all data blocks in the manner taught herein is non-intuitive due the cost of NAND based SSD devices at a cost per gigabyte ratio in comparison to the vastly higher capacity and less costly per gigabyte HDDs. Such a solution is non-intuitive because the proposed solution consumes space as a trade-off for the guarantee of consistent latency. Nevertheless, there are applications where consistently predictable and low latency of the NAND based SSD device is paramount over capacity of a NAND based SSD device, and thus, the disclosed methodologies address the needs of such target applications that are highly sensitive to I/O access request latency periods. Placing the priority upon minimizing latency variability through the use of data block mirroring or storing data block copies differentiates the presently disclosed embodiments from the more complex algorithms which minimize, but do not guarantee elimination of such erase operation conflicts.
In accordance with disclosed embodiments, solutions and methods for boosting a controller's performance and RAS with DIF Support via concurrent RAID processing provides a mechanism to offer the highest performance through specialized chipset hardware in a controller capable to perform calculation of parity fields across a number of sources, and in particular, XOR (eXclusive OR) and GF (Galois Field) multiply operations in the nomenclature of RAID 5/6.
The concept of Redundant Array of Independent Disks (RAID) has been used in Storage technologies to increase the availability of data storage systems such as in databases, file storage and other critical areas. Hardware based RAID offers the highest performance through specialized chipset hardware implemented commonly into a dedicated controller for the calculation of parity fields across a number of sources. In RAID 5/6 nomenclature, such hardware based functionality includes XOR and GF multiply operations. Data integrity is an important feature for Storage systems in the enterprise and business segments. The Data integrity Field, or DIF, provides a system solution to protect communication between a host adapter and a storage device for a true end-to-end data integrity. Isolation and/or correction of bad data occurs as early as possible with minimal impact to system integrity and performance. Utilization of T10 type DIF allows for an expansion of the protection domains and DIF operations to include DIF insert, DIF verify, and DIF delete operations.
When data is transferred with RAID, the potential for data corruption is large if the system does not have suitable error detection schemes. At least two areas of design considerations for RAID systems warrant consideration to increase their suitability and appropriateness for implementation into medium an high end storage implementations. In particular, 1) High throughput; and 2) High RAS (Reliability, Availability and Serviceability) capability.
Silent data corruption which occurs in a fault tolerant RAID configuration negates the value of having a RAID implementation, as the RAID then stores corrupt data which is unusable. To obviate such a deficiency and improve overall RAS for the RAID system, the concept of DIF & RAID with DIF capabilities is disclosed herein as a mechanism to provide and utilize end to end CRC (Cyclic Redundancy Check) capabilities. The DIF (Data Integrity Field) and DIX (Data Integrity eXtension) 436 are mechanisms used to guard data through T10 type CRC and/or Checksum capabilities.
However, the implementation of RAID with DIF as disclosed herein in accordance with the various embodiments requires more complex logic in conjunction with the RAID processing engine to perform operations on DIF checks and update 438 operations in tandem.
Previously known RAID based algorithms implement a serial process to transfer data from the host to a local cache, perform parity calculations on the local data, and then write data and parity results to the disk.
Disclosed herein is a concurrent flow architecture through a specialized hardware chipset which is enabled to implement a the concurrent flow for implementing an improved RAID algorithms as will be described in additional detail below. For example, a DMA (Direct Memory Access) chipset or a CBDMA (Crystal Beach DMA) chipset available from Intel Corporation, legal assignee of the present application, may be utilized to implement the disclosed concurrent flow architecture and methodologies for an improved RAID storage solution as disclosed herein which optimizes the data transfer function and parity computational functions potentially resulting in higher overall application bandwidth, lower power, improved RAS, and reduced memory utilization.
The disclosed concurrent flow architecture and methodologies for an improved RAID storage solution provides additional advantages, such as reducing software overhead and further enables niche operations such as dual casting for storage IOP (Integrated I/O Processor) applications, thus resulting in savings of silicon area.
The demand for increases in capacity, speed, and availability of storage systems has provided impetus for the emergence of Redundant Array of Inexpensive Disks (RAID) industry wide. RAID-5 and RAID-6 (e.g., Raid 5/6) methods provide data protection for single mode failures and double mode failures respectively, sometimes referred to as single syndrome and double syndrome failure modes, single drive and double drive failure modes, and so forth. Raid 5 enables total recovery from a catastrophic loss on a single drive through the implementation of a single P parity data whereas RAID 6 enables total recovery from a catastrophic loss on two separate concurrent drive failures through the implementation of the P parity data and through the additional implementation of what is commonly referred to as Q parity data. The concepts of RAID 5/6 are not new, rather, disclosed herein is a concurrent flow architecture and methodologies for an improved RAID storage solution to optimize RAID 5/6 over what is previously known.
RAID cache 410 represents recent write data that yet to be written to the underlying disks which constitute a target RAID set at disk array 437. Previously known RAID 5/6 implementations suffer from a streaming write performance that limited by system memory 432 and thus serves as a bottleneck. Disclosed herein as part of the concurrent flow architecture and methodologies is the utilization of DMA capabilities to move the data from an application system memory region to a local system memory region for RAID 5/6 and data integrity checking Such an optimization eliminates a read/write operation to enhance system performance. Previously known mechanisms therefore require an additional read/write operation in contrast to improved concurrent flow architecture and methodologies described herein, and thus, are not as efficient.
Through the use of the concurrent flow architecture and methodologies for an improved RAID as disclosed herein, and additionally through the utilization of DMA based capabilities, data acceleration and increased RAS coverage may be realized, thus improving overall write throughput to an underlying RAID implementation which operates in accordance with one or more of the disclosed embodiments. Moreover, the disclosed architecture and methodologies result in an offloading of computational overhead from a host 119 system's CPU (Central Processing Unit), thus providing specialized chipset hardware functionality such as RAID 5/6 processing, data integrity computation, and multicasting, via the implementing hardware.
Previously known RAID 5/6 streaming write operations performed through an I/O Storage controller involve the transfer of source data (for writes) from a host 119 to a local memory of the host. Conversely, the concurrent flow architecture and methodologies disclosed herein utilizes a DMA engine in a storage controller to read the transferred data from local memory to calculate parity and write it back to local memory. Even where a DMA based architecture is utilized, the DMA engine of the I/O storage controller reads the transferred data from local memory to calculate parity and then writes the parity data back to local memory as depicted by DIF #2 operation at 434 pulling and writing data back to the RAID cache 410, after which point the DMA engine would then perform a read operation of the transferred data and the computed parity data written previously and then write all the data to the storage devices constituting the target RAID set at disk array 437. As can be seen, such previously known techniques involve multiple reads/writes across the memory interface resulting in high demand on the resource and causing contention with other applications and system operations competing for the same limited resource.
The concurrent flow architecture and methodologies disclosed herein provide a significant improvement in the memory bandwidth for streaming data sets utilizing DIF through the capability to combine the source data transfer and parity calculation into a single operation, thus eliminating a read/write operation compared to previously known techniques as described above. The concurrent flow architecture and methodologies therefore enable calculated parity and transferred data to be written to their final destination with fewer I/O resource demands (e.g., written to the target destination drives constituting the RAID set, such as HDDs, SCSI Drives (Small Computer System Interface Drives) or Flash or SSD based drives, such as those which, for example, may be implemented as Direct Accessed Storage 117 or implemented as endpoint drives which are under the control of the host 119, the host OS 120, or a controller operating on behalf of the host, such as a storage controller or a controller 105 having which implements the concurrent flow architecture and methodologies as disclosed herein).
In the disclosed embodiments utilizing the concurrent flow architecture and methodologies for an improved RAID storage solution, a DMA copy operation gets write data from the application buffer of the host 119 to the RAID cache (local memory) of the I/O processor with parity calculated concurrently thus enabling the I/O operation to completed to the host 119 without the delay of writing to the disk and at the same time, minimizing the memory overhead which would otherwise be associated with additional read/write operations, thus improving application data throughput.
For the general I/O write case where the write data is smaller than the RAID stripe, a Read Modify Write (RMW) operation to the disk is required. However, in embodiments for large streaming writes, where multiple sequential writes are issued, a full stripe of data can be collected such that a RMW to the disk is not required. In such an embodiment, new parity is calculated from new data which is copied from the host. A RAID stack therefore does not need to wait to accumulate I/O write requests sufficient to create a full stripe. In this embodiment, descriptors are formed for XOR calculations where the source data would be ordinarily be copied from I/O (host) to memory and the XOR result would ordinarily be calculated and stored in system memory 432.
An example of a large I/O write operation such as those which happen during disk copy is a 25 GB HD-DVD copy to disk, where the single I/O is at least as large or greater than the stripe length. In such an example, the RAID stack need not accumulate multiple I/O requests in order to issue the DMA/XOR operation and copy the data to cache while performing XOR. The concurrent flow architecture and methodologies enable such a new capability for the XOR/PQ operation where it combines both data copy and RAID.
Complementary RAID software manages the logical to physical translation of the I/O request up front in preparation for the combined DMA/XOR operations. Such an improved feature can be implemented directly into a RAID software stack or appropriate extensions, where the tasks associated with I/O caching would thus be directed to combine with the XOR processing.
Higher throughput is attained from the elimination of one read from memory for RAID calculation, reducing the memory bandwidth demands. Such an improvement is translatable directly to a quantifiable benchmark performance improvement for streaming write, and large write workloads which are known to be memory limited when utilizing previously known techniques.
Higher RAS coverage is attained performing RAID-5/6 and data integrity checks 438 concurrently in DMA supporting architecture by offloading computational demands from a host's 119 CPU and thus improves IPC (Instruction(s) per clock), eliminates SSE L1 thrash, and improves cache miss-improves, all resulting in enhanced RAS coverage.
For random server workloads of varying sizes, the stripe size, (e.g., 8 KB of the RAID-5/6 array) must be equal to or less than the expected I/O size to see such benchmarking improvements. Systems may thus be accordingly tuned to eliminate the RMW for parity, and to maximize storage performance for particular server workloads so as to elicit the above performance benefits.
Table 1 captures the various innovations provided via the disclosed concurrent flow architecture and methodologies for an improved RAID storage solution including, normal data, and DIF encoded data and DIX encoded data with auto-conversion to DIF in accordance with some embodiments. The stared (*) options denoted at 1b, 1c, 2c, 3a in the table represent new innovations provided by disclosed concurrent flow architecture and methodologies which are not attainable using previously known mechanisms for RAID 5/6 processing.
The disclosed methodologies may alternatively be integrated into a DMA engine of a processor for use with software-based RAID stacks running, for example, on the host's 119 Processor.
Consider the following performance analysis examples utilizing the disclosed concurrent flow architecture and methodologies. First, assume for example a 3+1 configuration having three (3x) source disks plus one (1x) disk for parity in a simple RAID-5 write configuration. For three sources, let 3x be the total incoming data BW from host to CBDMA where “x” is the per source BW on a PCIe link to the host 119.
An un-optimized RAID thus results in DMA reads at 3x from host and writes at 3x to the local memory; DMA Reads in at 3x from local memory and writes 1x (P) to the local memory; the disk controller reads 4x from local memory to write to storage media. Thus, total memory BW (R & W) is 3x+3x+1x+4x=11x total.
Consider now in contrast, an optimized RAID flow in accordance with the disclosed embodiments in which a DMA reads at 3x from host and writes at 3x (data)+1x (P) to the local memory; the disk controller reads 4x from local memory to writes to storage media. Thus, the total memory BW as optimized (R & W) is 3x+1x+4x=8x total, the reduction owing the eliminated read/write cycle discussed previously and demonstrated in the un-optimized example.
Thus, an application bandwidth gain of 11x/8x=1.375 results, or an improvement of greater than 37% in comparison to the un-optimized techniques. Further still, local memory bandwidth reduction is 3x/11x=0.272 or approximately ˜27% less overhead compared to the un-optimized techniques.
Power savings are further attainable through the practice of the disclosed embodiments using the concurrent flow architecture and methodologies. For instance, a DDR3 Physical layer (I/O) power dissipation for an exemplary memory controller is approximately ˜1.5 W @ 70% (max) utilization for the un-optimized RAID configuration. A 27% drop in utilization with the optimized case calculates out to be 1.1 W or a 400 mW reduction. Such a reduction is significant and may serve to bring an otherwise non-compliant TDP (Thermal Design Power) envelope within bounds. Further still, core logic power reduction is attained from less activity in the chipset.
Enabling the DIF/DIX checking and conversion during the RAID 5/6 parity computation on the fly provides such improvements over a lacking architecture incapable of performing DIF checking thus resulting in such a DIF check having to be performed by the host's 119 processor, resulting in computational overhead and by extension, an effective lowering of RAID streaming bandwidth throughput for hosted application.
The optimized (combined) operation of the data transfer and parity calculation in one ensemble reduces memory bandwidth, cuts down dynamic power (as fewer circuits are energized), requires fewer descriptors, and improves overall memory utilization and RAID-5/6 performance while boosting the RAS capabilities of the system with built-in DIF checks on streaming data.
For each of
The optimized RAID 5/6 operation 402 cuts down the number of read/write steps required for the overall transaction resulting in higher write throughput and reduced local memory utilization in contrast to the un-optimized RAID 5/6 operation 401. Further still, the DMA engine can insert DIF, or check DIF for encoded data and optionally convert DIX to DIF 438 while performing RAID parity calculations in accordance with the disclosed embodiments and the optimized RAID 5/6 operation 402.
Un-optimized RAID 5/6 operation 401 at
Optimized RAID 5/6 operation 402 at
When the DMA hardware is used for RAID processing, a software based RAID stack may employ a depth first fill 417 algorithm 403 filling each page up to the maximum strip size before switching over to the next disk sequentially, for example, filling S1 at element 411, then filling the next disk sequentially which is S2 at element 412, then S3 at element 413. Parity disk P for this example is depicted at element 414. Such a methodology creates large overhead due to the number of descriptors required. For example, 96 descriptors are required for the first strip across 3 disks as depicted at
Conversely, the optimized breadth first style fill 418 filling operation 404 depicted at
The dual canister data flow 405 (e.g., as implemented into, for example, a Briarwood controller, or other capable controller) as illustrated involves dual casting. Two exemplary controllers are depicted for this particular dual canister data flow 405 operation acting upon exemplary controller 461 and exemplary controller 462 respectively. An exemplary system memory 463 is further depicted showing the distinctive paths between A write cache and A write mirror and B write Mirror and B write cache respectively. With an optimized RAID DMA engine, operations 2a, 2b and 3 are combined into a single descriptor upon which transfer parity results to the local memory while saving data through the NTB (Non-Transparent Bridging) to the other partner node without having to re-read data from memory. This obviates the need for special multi-casting logic. The data path mapping table 464 set forth below provides notes regarding the various depicted paths for the dual canister data flow 405 including each of the shown data paths “1” “2A” “2B” “3A” “3B” and data path “4” as represented between the two exemplary controllers 461 and 462.
Performance analysis table 406 depicts a shown 20% improvement in the effective bandwidth for the Briarwood RAID 5/6 for a 10+2 disk storage system depicted. Performance analysis table 406 depicts several values shown via the practice of the disclosed embodiments including Max DRAM BW 469, Efficiency 471, Application usage 472, Useable DRAM BW 473, RAID-6 BW (RTF) 474, RAID-6 BW (Memory [single canister]) 476, RAID-6 BW (Memory [dual canister]) 477, RAID-5 BW (Memory [single canister]) 478, and RAID-5 BW (Memory [dual canister]) 479. Similar results are thus expected for other similarly capable controllers practicing the disclosed embodiments set forth herein. Software stack RAID operations are improved, a reduction in system memory usage is attained, overall RAID performance (I/O Operations per second) while simplifying a RAID stack software is attained by allowing use of bin-1 memory speed to get same performance as a non-optimized data flow. The methodology can be applied to SAS, SSD or any other storage technologies as long as the application is able to exploit it by providing data transfer size in excess of the stripe length of the RAID array.
Dual casting using RAID optimization helps to avoid other hardware methods such as PCIe or switch multicasting methods that are more complex and area intensive. Furthermore, high end RAS capability through DIF encoding checks executed concurrently on streaming data is enabled thus precluding extra cycles from a host's 119 CPU by not requiring additional memory reads.
In accordance with disclosed embodiments, arbitration and resource schemes of a doorbell mechanism, including doorbell arbitration for fairness and prevention of attack congestion provides a mechanism to handle host doorbell writes with a limited number of doorbells without throttling host doorbell writes or overflowing doorbell space in the I/O device. For example, in a host 119 which creates work queues in host memory and informs the I/O device to process them by writing to the doorbells implemented in the I/O device. Anytime the host 119 adds an entry to the host work queue, the host writes the tail pointer to the I/O doorbell space. Since the amount of doorbell space is limited in the I/O device, the disclosed mechanism as taught herein enables handling of the host doorbell writes with a limited number of doorbells without throttling host doorbell writes or overflowing doorbell space in the I/O device in accordance with disclosed embodiments. Further, the doorbell writes are processed in a fair manner through the practice of the disclosed embodiments.
Two types of jobs arrive from the host 119 to a card, such as controller 105. One type is an admin job arriving as Admin doorbell message into the Admin Queue (AQ) 590. The second type is a regular storage processing job arriving as Submission Queue Doorbell. Either admin jobs or regular storage processing jobs (doorbells) may be picked up and sent to be processed 585.
In Level 2 SQ_x (535, 540, and 545), a new doorbell arriving from the host 119 will not only go through Error Check 505, 510, and 515, but is also CAMed (checked against “Content-Addressable Memory” or “CAM”) against the Level 2 SQ_x using the SQids (Service Queue Identifiers) 520, 525, and 530 to make sure that no previous doorbell from the same SQ is still pending, before the arriving doorbell is pushed into the Level 2 SQ_x. A new doorbell for which a matching CAM hit is found will therefore be dropped 565.
After error checking, the doorbell (e.g., assuming an SQ number “n” for his example) will then be pushed into Level 1 SQ_High. This process continues until Level 1 SQ_High fills completely. Subsequent to the Level 1 SQ_High space being filled, other High priority doorbell will be put in Level 2 SQ_High space. For example, if SQ n sends ten (10x) more doorbells after Level 1 SQ_High is full, only the first doorbell is put in the Level 2 SQ_High, and the other nine doorbells are dropped. Doorbells from SQ medium are also placed into Level 2 SQ_High space at such time.
Doorbells in the Level 1 SQ_High will continuously be serviced until Level 1 SQ_High space is empty of pending doorbells (e.g., using a weighted round robin with Level 1 SQ_Medium and Level 1 SQ_Low rotational methodology). Next, pending doorbells from Level 2 SQ_High will be serviced, as is depicted by
A doorbell picked up from Level 2 SQ_High may only have up to a maximum number of jobs being service as determined by MAX_JOB_SQH value or other appropriately configured threshold in the configuration space. Left over jobs cause doorbell from SQ n in this example to be placed at the end of the Level 2 SQ_High space, waiting for the next round of doorbell servicing.
The Level 1 SQ Arbitration mechanism enables a requesting entity or platform that requires a submitted doorbell to be process strictly in the order that the host 119 sent to the I/O device. Level 2 SQ is provided for the prevention of any doorbell overflow. Preferably, behavior of the software is strictly controlled in accordance with the disclosed embodiments such that overflow will not occur or rarely occurs.
The size of the Level 2 SQ_x should preferably be set equal to the number of SQ in the host 119. Where the size of the Level 2 SQ_x is less than the number of SQs in the host 119, then implementing software needs to institute a guarantee that the number of SQs assigned to a specified prioritized Q cannot be more than the entry size of the Level 2 SQ_x, so as to avoid queue structure overflows.
Additionally, the size of the Level 1 SQ_x needs to be sufficiently large such that Level 2 SQ_x arbitration specifically and other active arbitration schemes need not be triggered as often. Otherwise, Level 1 SQ arbitration will provide a lesser benefit, and may be a candidate for complete disablement. Thus, tuning considerations warrant careful attention to the size of the Level 1 SQ_x structure or space.
Because a controller 105 allows a doorbell to be sent directly to I/O devices by applications, the host 119 may not have visibility to, or may simply be removed from the path or responsibility to manage submitted doorbell requests, and thus, appropriate arbitration and queuing schemes are advantageous because not only is the responsibility offloaded from a host 119, but appropriate doorbell queue and processing priority management can nevertheless be attained. Relevant architectures include those which bypass the host OS's 120 file system and storage stack, such as with a controller 105 enabled to write directly to direct accessed storage 117 without management from the host 119 or even any involvement from the host 119 or the host OS 120, the host's 119 file system, etc.
In accordance with disclosed embodiments, implementing hardware (such as that within a controller 105) arbitrates and pulls/receives the jobs from the host 119 and post them into the local implementing firmware. Any misbehavior of the software on the host 119 side, such as malicious software is prevented, apart from the guaranteed fairness that all doorbell requests will be arbitrated so as to deliver a minimal level of servicing, but in such a way that an abusive application cannot overwhelm the Q structures or the arbitration mechanisms to gain an unfair servicing advantage over other more well behaved applications. For example, abusive applications will have unnecessarily repeated doorbells dropped completely and will have disproportionately voluminous doorbell requests de-prioritized to the lower Q structures until other arriving doorbells have sufficient access to fair doorbell processing.
In accordance with practice of the disclosed embodiments, the above described Level 1 SQ_x structure and the Level 2 SQ_x structures are new to the arts, especially in conjunction with a host bypassing methodology in which applications are enabled to directly submit doorbells. The combination of both Level 1 and Level 2 arbitration and switching back and forth between level 1 and 2 arbitration is also now to the arts, again, especially where in combination with such host bypassing scenarios. Setting a certain SQ (like SQ high) into level 1 and level 2 arbitration depending on software requirements and behavior, while disabling level 1 arbitration for other priority SQs additionally a new capability for the arts as is the ability for the Level 2 re-queue of a doorbell (after maximum number of SQE (jobs) has been processed).
With reference now back to block 576, an alternative branch leads to block 578 which continues servicing doorbells in the Level 1 SQ_x space, then proceeding to 582 where the Level 1 SQ_x space is checked to see if it is empty. If no, not empty, then flow proceeds back to the start at block 570. If yes, empty, then flow proceeds then flow proceeds to block 586, and a check is made to determine if the Level 2 SQ_x is empty. Flow may also arrive to block 586 where the check is made to determine if the Level 2 SQ_x is empty advanced from the alternative branch of block 584 not addressed above. From block 586, if yes, Level 2 SQ_x is empty when checked, then flow returns back to the start at block 570. Alternatively, from block 586, if no, Level 2 SQ_x is not empty, then flow advances to block 592 where servicing upon a maximum number of SQE (Job) allowed per doorbell is checked via an appropriately configured threshold. Advancing to block 594, if the SQ has more jobs than the allowed SQE maximum then advancing to block 597 when yes, the doorbell is re-queued, which then advances the flow to block 595. Alternatively, if the SQ does not have more jobs than the allowed SQE maximum, then flow advances directly to block 595 without having to re-queue the doorbell. At block 595, a check is made to determine if the Level 2 SQ_x is empty. If no, the Level 2 SQ_x is not empty, then flow returns to block 592 where servicing upon a maximum number of SQE (Job) allowed per doorbell is checked once again. Alternatively, if yes, the Level 2 SQ_x is empty, then flow proceeds back to the start at block 570.
In accordance with disclosed embodiments, solutions and methods for multiple interrupt generation using a messaging unit and a NTB in a controller 105 or other controller 480 provides a mechanism to implement an interrupt coalescing scheme to reduce ISR overhead and also improve RAS by notifying on error conditions. The disclosed embodiments address the problem of how to efficiently present interrupts to the host 119 and the host's local CPU from the controller's 105 Messaging Unit, such that it can deal with normal completions and errors. In accordance with the disclosed embodiments, an interrupt coalescing scheme is implemented to reduce ISR overhead and also to improve RAS by notifying on error conditions.
Furthermore, the interrupt coalescing scheme to the host 119 uses the NTB (Non-Transparent Bridging) port's capabilities. Using a number of MSI-X (Message Signaled Interrupts and Message Signaled Interrupt eXtension) vectors and the NTB ports doorbell mechanism, the messaging unit completion processing can be communicated to the host and the local host 119 system for processing of work queues 624 (e.g., via the API work queue engine 617) leading to higher system performance of a hosted application using the RAID stack and also for better handling of error conditions.
An exemplary storage controller 480 (e.g., a controller implementation 105) as depicted by
Host 119 initiates an operation by posting an SQ entry, and writing the Tail pointer to an SQ Doorbell register 626 in which messaging unit doorbells are mapped to pages for protection domain. The messaging unit checks the Protection Domain Identifiers 629 (e.g., messaging unit protection Domain and access verification check with data append) along with SQ Context lookup (e.g., via WQ context 630 and/or permission tables 631), and if the check fails, a bad (e.g., errored) doorbell value is logged and the doorbell 635 (e.g., via NTB) is dropped. Alternatively, if the check passes, the messaging unit checks a corresponding Priority Work List 622 Head and Tail and fetches an SQ entry from host 119. The messaging unit performs necessary book-keeping (e.g., via Completion arbiter 632), updates on the SQ entry and posts the Work List entry to a Work list Address the controller's 105 memory.
The controller firmware processes the work list entry and posts the completion 623 (e.g., I/O or Admin type doorbells) and informs the messaging unit. The messaging unit processes the pending completion queue and posts the corresponding completion to the completion queue 625 in the host's 119 memory.
The messaging unit implements MSI-X interrupts 621 and 636 for both host 119 CPUs and local CPUs of the controller 105 or IOP controller or other implementing controller 480. Two sets of MSI-X data structures support host 119 CPUs and local CPUs. In particular, Host MSI-X Interrupts of two types: 1) Completion Queue interrupts (normal interrupts) via MSI-X interrupt mechanism 636 which can occur whenever the messaging unit posts a completion to a host's 119 completion queue. In accordance with the disclosed embodiments, these first type of “completion queue interrupts” are coalesced (e.g., via the interrupt coalesce control register 634) discussed in additional detail below. 2) The second type being an Error Interrupt via MSI-X interrupt mechanism 621 which indicates that an error condition has occurred which will impact the Driver and messaging unit's operation. The Error Interrupt type causes an immediate interrupt in accordance with disclosed embodiments.
In accordance with an alternative embodiment, an EXPROM may be disabled in host 119 via jumper settings of the host 119 motherboard or the host's 119 BIOS may be configured to not enable the EXPROM after it has loaded drivers.
In accordance with one embodiment, MSI-X capabilities enable the messaging unit to generate one error interrupt and 32 normal interrupts to the host's 119 CPU. In an exemplary embodiment, entries 0-31 of the MSI-X table are assigned to Normal interrupts and entry 32 is assigned to the Error Interrupt. In such an embodiment, the messaging unit has 1024 normal interrupt sources, but this quantity may obviously vary. These normal interrupt sources can be mapped in to any one of the 32 normal interrupts using dedicated mapping registers in the controller 105. Likewise, the messaging unit error sources can be mapped to an error interrupt using similar mapping registers.
Interrupt Coalescing capabilities implement a coalescing algorithm for use by the messaging unit such that an interrupt to the driver is only asserted if either the number of outstanding completions exceeds the Coalesce Number defined in the “Interrupt Coalescing Control Register” 634 or the coalesce timer expires through the use of 32 Interrupt Coalescing Control registers to control the “Coalesce Number” and “Coalesce Timer” for 32 MSI-X interrupt vectors assigned for completions.
The Coalesce Timer field specifies a minimum/maximum delay before an interrupt is issued. The time is based off a free running timer so the minimum range will be observed if the timer expired just after the completion entry was posted, and the maximum range will be observed if the timer expires just before the completion entry was posted.
Interrupt Generation via NTB/NTB-RP 671 capabilities operate cooperatively with the host's 119 processor 672 (e.g., External CPU/eCPU, such as a host or host's secondary remote CPU) when Message-Signaled Interrupts (MSI) or MSI-X (MSI eXtensions) are enabled. The messaging unit is responsible for performing a peer to peer write to the NTB (external to the messaging unit) to generate appropriate MSIs or MSI-Xs.
An NTB has a DOORBELL register defined for the external endpoint of the controller 105 as seen by the host 119 to implement door bell requests from the external side 673. The DOORBELL register contains 33 bits for mapping the messaging unit to the host's 119 completion queue and error interrupts. In addition, the DOORBELL register has a dedicated field for signaling to the host that the controller 105 (or other controller such as IOP controller or controller 480, etc.) is ready for operation after all initialization is completed.
During system initialization, the configuration software for an MSI-X compatible system will read the MSI-X table size in the “MSI-X Capability Register” of NTB to determine that 33 unique interrupt messages are supported, for example, via NTB to PCIe downstream port 678. The configuration software will also read the “MSI-X Table Offset Register” and “MSI-X Pending Bit Array Offset Register” of NTB PCIe configuration space to determine the locations of these structures.
The configuration software will initialize the MSI-X Table by writing the Message Address Registers (and the Message Upper Address Registers if Message Address is above the 4-Gigabyte addressable boundary), the Message Data Registers, and the Vector Control Registers in order to unmask a Table entry. Configuration of MSI-X completes by setting the MSI-X Enable in the “MSI-X Capability Register” of NTB.
Local MSI-X Generation from messaging unit supports two types of interrupts to local CPU of an implementing controller (such as an atom processor within, for example, a controller 105). 1) Normal Interrupts being the first type include the following: a) MSI-X on adding new Priority Work Entry to any Priority Work List; b) MSI-X on adding new Admin Work Entry to Admin Work List; c) MSI-X when Pending Completion Queue (PCQ) transitions from a full state to not full state; and d) MSI-X when Admin PCQ transitions from full state to not full state.
Error Interrupts being the second type indicates one or more error conditions have occurred which will impact the messaging unit's operation. Examples include incorrect read/write pointers, erroneous initialization errors, incorrect regions, etc.
Internal CPU 674 (e.g., iCPU such as a primary and local CPU for the implementing controller) is thus interruptible, for example, via interrupt 676 as shown, coming from iEP 651 in which a Door Bell_IP 653 is triggered. Door bell requests may also arrive from the internal side 675, such as from within the implementing controller. Doorbell (eEP) 654 at eEP 652 is shown as is MBAR01_XLAT 655, which is programmed to zero in accordance with disclosed embodiments, exiting the controller to the external side via, for example, interrupt 677.
In certain embodiments, an MSI-X address space is defined for improving system performance by assigning dedicated address and data vectors for each type of interrupt.
A messaging unit can typically generate 1000s of interrupts for each submission queue that it completes. Accordingly, the interrupt coalescing scheme as disclosed herein provides a remap mechanism to reduce these large submission queue completions through a smaller subset of MSI-X vectors that can be managed by Firmware in accordance with the disclosed embodiments. Furthermore, hardware utilized by the interrupt coalescing scheme provides facilities for interrupt coalescing to reduce the ISR invocation overhead and thus, removing computational stress from the CPUs involved, including the host's 119 CPU and also that of an implementing controller, such as a CPU within the controller 105. Further still, the NTB port in the controller 105 may be augmented with a compatible doorbell mechanism to map these vectors on a one to one basis for notification purposes.
Practice of the disclosed embodiments utilizing the interrupt coalescing scheme provides a solution to the shortcomings of the large MSI-X vector handling by the prior architectures (such as IA32) and is therefore more scalable. The interrupt coalescing scheme provides improved RAS by isolating errors and assigning unique interrupts. Through the remap facility described above, the large number of interrupts from the completion queues can be constrained to a smaller subset and sent through the NTB port via a doorbell mechanism. In addition, interrupt coalescing improves overall system performance due to the reduction in overhead associated with handling single or individual interrupts on a one by one basis when it is not necessary to do so, while at the same time, permitting immediate interrupt triggering on an error condition for which one by one notification schemes may be more appropriate.
Practice of the disclosed embodiments utilizing the interrupt coalescing scheme further improves use of RAID On Chip (ROC) as well as external storage platforms with a messaging unit that handles work queue submissions and needs notification to the CPUs. Storage may be of a direct accessed storage 117 type which operates outside of the management of the host 119 or may be of a type of storage which operates under the control of a host 119.
The exemplary computer system 700 includes a processor 702, a main memory 704 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc., static memory such as flash memory, static random access memory (SRAM), volatile but high-data rate RAM, etc.), and a secondary memory 718 (e.g., a non-transitory and non-volatile physical storage device including hard disk drives), which communicate with each other via a bus 730. Main memory 704 includes one or more hosted applications 724 to operate and execute upon the host machine 700. Main memory 704 further includes drivers 723 enabling the host to communicate with various peripheral unites, such as PCIe interface 734 communicatively interfaced with the host machine's 700 bus 730 and further communicatively with an external controller as depicted at
Processor 702 represents one or more general-purpose processing devices such as a microprocessor, central processing unit, or the like. More particularly, the processor 702 may be a complex instruction set computing (CISC) microprocessor, reduced instruction set computing (RISC) microprocessor, very long instruction word (VLIW) microprocessor, processor implementing other instruction sets, or processors implementing a combination of instruction sets. Processor 702 may also be one or more special-purpose processing devices such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), network processor, or the like. Processor 702 is configured to execute the processing logic 726 for performing the operations and functionality which is discussed herein.
The computer system 700 may further include a network interface card 708. The computer system 700 also may include a user interface 710 (such as a video display unit, a liquid crystal display (LCD), or a cathode ray tube (CRT)), an alphanumeric input device 712 (e.g., a keyboard), a cursor control device 714 (e.g., a mouse), and a signal generation device 716 (e.g., an integrated speaker). The computer system 700 may further include peripheral device 736 (e.g., wireless or wired communication devices, memory devices, storage devices, audio processing devices, video processing devices, etc.).
The secondary memory 718 may include a non-transitory machine-readable or computer readable storage medium 731 on which is stored one or more sets of instructions (e.g., software 722) embodying any one or more of the methodologies or functions described herein. The software 722 may also reside, completely or at least partially, within the main memory 704 and/or within the processor 702 during execution thereof by the computer system 700, the main memory 704 and the processor 702 also constituting machine-readable storage media. The software 722 may further be transmitted or received over a network 720 via the network interface card 708.
While the subject matter disclosed herein has been described by way of example and in terms of the specific embodiments, it is to be understood that the claimed embodiments are not limited to the explicitly enumerated embodiments disclosed. To the contrary, the disclosure is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements. It is to be understood that the above description is intended to be illustrative, and not restrictive. Many other embodiments will be apparent to those of skill in the art upon reading and understanding the above description. The scope of the disclosed subject matter is therefore to be determined in reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
1. An apparatus comprising: an Input/Output Interface (I/O Interface) module to a direct accessed storage; and a storage adapter to provide a partition table on behalf of the direct accessed storage, wherein the partition table implements Logical Block Access (LBA access) to the direct accessed storage over the I/O Interface module.
2. The apparatus of claim 1, wherein the direct accessed storage operates independently of a host, a host operating system, and/or a host managed file system and is not managed or controlled by the host, the host operating system, and/or the host managed file system.
3. The apparatus of claim 2, wherein the direct accessed storage is directly accessible via applications hosted by and executing upon the host or the host operating system.
4. The apparatus of claim 1, wherein the storage adapter further presents an LBA access device to a host communicatively interfaced to the apparatus, the LBA access device to support host originated Logical Block Access requests (LBA requests) to the direct accessed storage.
5. The apparatus of claim 1, wherein storage adapter to provide the partition table on behalf of the direct accessed storage comprises the storage adapter to implement, maintain, and store the partition table.
6. The apparatus of claim 1, wherein storage adapter to provide the partition table comprises the storage adapter to synthesize the partition table at the direction of a direct access driver to the direct access storage.
7. The apparatus of claim 1, wherein the apparatus is implemented within a controller.
8. The apparatus of claim 7, wherein the controller comprises a controller.
9. The apparatus of claim 7, wherein the controller comprises: a local controller Central Processor Unit (CPU); local controller memory; a PCIe (Peripheral Component Interconnect Express) interface to communicatively link the controller with a host machine; and a controller interface module to communicate instructions with the host machine via the PCIe interface.
10. The apparatus of claim 9: wherein the controller interface module to receive an LBA request from the host machine for data stored upon the direct access storage; and wherein the controller to fulfill the LBA request from the host machine via the storage adapter's implemented LBA Access to the direct accessed storage over the I/O Interface module of the controller.
11. A storage apparatus comprising: a plurality of cooperative storage devices, each of the plurality of cooperative storage devices comprising: a multicast interface to communicate with the remaining cooperative storage devices of the plurality of cooperative storage devices, an Error-Correcting Code (ECC) module, and an Exclusive OR (XOR) module; a RAID (Redundant Array of Independent Disks) module to receive a single I/O transaction from an external device communicatively linked with the storage apparatus and to further perform multiple ECC operations and at least one XOR function based on the single I/O transaction to a plurality of data chunks striped across the plurality of cooperative storage devices via the multicast interface.
12. The storage apparatus of claim 11: wherein the single I/O transaction from the external device comprises a write I/O transaction specifying data to be stored upon the storage apparatus; wherein the write I/O transaction provides no parity data or XOR protection information for the specified data; wherein the RAID module to chunk the specified data of the single I/O transaction into a plurality of data chunks and initiate multicast of the plurality of data chunks to specified target drives among the plurality of cooperative storage devices; wherein a non-specified target drive among the plurality of cooperative storage devices receives the plurality of data chunks via the multicast and generates XOR protection information based on the plurality of data chunks received via the multicast and stores the generated XOR protection information as an XOR chunk.
13. The storage apparatus of claim 11: wherein the single I/O transaction from the external device comprises a read I/O transaction specifying data to be retrieved from the storage apparatus; wherein the read I/O transaction specifies a data block for retrieval without specifying data chunk locations or an XOR chunk location for the specified data block; wherein the RAID module determines the data chunk locations and the XOR chunk location for the specified data block based on the data block specified for retrieval; wherein the RAID module determines one of the plurality of data chunk locations fails an ECC check as reported by a respective ECC module of one of the plurality of cooperative storage devices; wherein the RAID module to perform an XOR operation to reconstruct the one data chunk location determined to have failed the ECC check utilizing remaining data chunk locations and the XOR chunk location via multicast reads among the plurality of cooperative storage devices; and wherein the storage apparatus returns the specified data block to the external device in fulfillment of the single I/O transaction.
14. The storage apparatus of claim 11: wherein the storage device is a SSD (Solid-State Drive) having the plurality of cooperative storage devices integrated therein; and wherein the SSD reports XOR operation errors triggered by I/O read requests specified via the single I/O transaction back to the external device.
15. The storage apparatus of claim 11, wherein the plurality of cooperative storage devices constitute a cooperative direct access storage device which operates independently of a host, a host operating system, and/or a host managed file system and is not managed or controlled by the host, the host operating system, and/or the host managed file system.
16. The storage apparatus of claim 15, wherein the cooperative direct access storage device is directly accessible via applications hosted by and executing upon the host or the host operating system.
17. The storage apparatus of claim 16, wherein the cooperative direct access storage device is communicatively interfaced with a controller, the controller having an Input/Output Interface (I/O Interface) module to communicate with the cooperative direct access storage device and further wherein the cooperative direct access storage device offloads data protection and data recovery responsibilities from the controller by locally providing native data protection and native data recovery capabilities on behalf of the controller.
18. The storage apparatus of claim 17, wherein the controller comprises a controller, the controller having comprised therein: a local controller Central Processor Unit (CPU); local controller memory; a PCIe (Peripheral Component Interconnect Express) interface to communicatively link the controller with a host machine; and a controller interface module to communicate I/O operations and instructions with the host machine via the PCIe interface, the communicated I/O operations to be relayed to the cooperative direct access storage device.
19. The storage apparatus of claim 11, wherein the plurality of cooperative storage devices constitute a cooperative endpoint storage device which operates under the control of a host, a host operating system, and/or a host managed file system and is managed and controlled by the host, the host operating system, and/or the host managed file system.
20. The storage apparatus of claim 19, wherein the cooperative endpoint storage device is communicatively interfaced with a host machine, the host machine having an Input/Output Interface (I/O Interface) module to communicate with the cooperative endpoint storage device and further wherein the cooperative endpoint storage device offloads data protection and data recovery responsibilities from the host machine by locally providing native data protection and native data recovery capabilities on behalf of the host machine.
21. A storage apparatus comprising: a plurality of NAND (Negated AND) based flash memory components arranged into a plurality of NAND arrays; a NAND controller communicatively interfaced with the plurality of NAND arrays; and block mirroring logic to establish a mirrored copy for each data block written to the storage apparatus, each mirrored copy to be stored within one of plurality of NAND arrays.
22. The storage apparatus of claim 21, wherein the block mirroring logic to establish the mirrored copy for each data block written to the storage apparatus comprises the block mirroring logic to store each mirrored copy for each data block within one of plurality of NAND arrays which is distinct from a NAND array among the plurality of NAND arrays upon which a corresponding data block for each mirrored copy is stored.
23. The storage apparatus of claim 21: wherein the block mirroring logic designates one of the plurality of NAND based flash memory components as a first NAND location to store a data block; and wherein the block mirroring logic designates a second one of the plurality of NAND based flash memory components as a second NAND location (NAND location prime) to store the mirrored copy of the data block stored within the first NAND location.
24. The storage apparatus of claim 23, wherein the block mirroring logic further maintains exclusivity among the plurality of NAND arrays for each first NAND location and second NAND location prime which corresponds to any data block and a mirrored copy for the data block.
25. The storage apparatus of claim 21: wherein the NAND controller further is communicatively linked to an external device; wherein the NAND controller is to receive an I/O transaction from the external device; and wherein the storage apparatus fulfils the I/O transaction from the external device via the NAND controller in conjunction with the block mirroring logic via the plurality of NAND arrays.
26. The storage apparatus of claim 25: wherein the I/O transaction from the external device comprises a write I/O transaction specifying a data block to be stored upon the storage apparatus; wherein the block mirroring logic to write the specified data block to a first one of the plurality of NAND arrays; and wherein the block mirroring logic to write a mirrored copy for the specified data block a second one of the plurality of NAND arrays, wherein the first one of the plurality of NAND arrays and the second one of the plurality of NAND arrays are distinct.
27. The storage apparatus of claim 25: wherein the I/O transaction from the external device comprises a read I/O transaction specifying a data block to be retrieved from the storage apparatus; wherein the block mirroring logic to determine a first one of the plurality of NAND arrays upon which the specified data block is stored; wherein the block mirroring logic to determine the first one of the plurality of NAND arrays upon which the specified data block is stored is processing an active erase operation and is not available for retrieval of the specified data block; wherein the block mirroring logic to determine a second one of the plurality of NAND arrays upon which the mirrored copy for the specified data block is stored; and wherein the block mirroring logic to retrieve the mirrored copy for the specified data block from the second one of the plurality of NAND arrays in fulfillment of the read I/O transaction.
28. The storage apparatus of claim 27, wherein the block mirroring logic prevents an active erase operation to be issued to both the first one of the plurality of NAND arrays upon which the specified data block is stored and to the second one of the plurality of NAND arrays upon which the mirrored copy for the specified data block is stored at the same time to guarantee availability of either the specified data block or the mirrored copy for the specified data block at all times.
29. The storage apparatus of claim 21: wherein the storage device is a SSD (Solid-State Drive) having the plurality of NAND based flash memory components arranged into the plurality of NAND arrays integrated therein and further having the NAND controller integrated therein; and wherein the NAND controller of the SSD to implement the block mirroring logic for the SSD and wherein the SSD is to operate as one of: 1) a direct access storage device which operates independently of a host, a host operating system, and/or a host managed file system and is not managed or controlled by the host, the host operating system, and/or the host managed file system, the direct access storage device being directly accessible via applications hosted by and executing upon the host or the host operating system, wherein the direct access storage device is communicatively interfaced with an external controller operating as the external device in communication with the NAND controller of the SSD; or 2) an endpoint storage device which operates under the control of the host, the host operating system, and/or the host managed file system and is managed and controlled by the host, the host operating system, and/or the host managed file system, wherein the endpoint storage device is communicatively interfaced with the host, the host operating as the external device in communication with the NAND controller of the SSD.
30. The storage apparatus of claim 21: wherein the storage device is a SSD (Solid-State Drive); and wherein the external device comprises a controller, the controller having comprised therein: a local controller Central Processor Unit (CPU); local controller memory; a PCIe (Peripheral Component Interconnect Express) interface to communicatively link the controller with a host machine; and a controller interface module to communicate I/O operations and instructions with the host machine via the PCIe interface, the communicated I/O operations to be relayed to the SSD.
31. An apparatus comprising: a first Input/Output Interface (I/O Interface) module to a host machine, the first I/O Interface module to receive an I/O transaction comprising data to be stored and DIF or DIX (Data Integrity Field or Data Integrity eXtension) data for the data to be stored; a DMA (Direct Memory Access) module to move the data to be stored and DIF or DIX data for the data to be stored from a memory of the host machine to a memory local to the apparatus and to concurrently calculate parity for the data to be stored based on the DIF or DIX data; and a second I/O Interface module to a plurality of storage apparatuses, the second I/O Interface module to move the data to be stored and the calculated parity for the data to be stored from the memory local to the apparatus to the plurality of storage apparatuses.
32. The apparatus of claim 31: wherein the DMA module further interrupts a Central Processing Unit core (CPU core) local to the apparatus; and wherein the CPU core local to the apparatus responsively posts a completion notice into the memory of the host machine.
33. The apparatus of claim 32: wherein the CPU core local to the apparatus further builds a command for processing by a disk controller communicatively interfaced with the apparatus via the second I/O interface module to the plurality of storage apparatus; wherein the CPU core local to the apparatus posts the command into a messaging unit local to the apparatus; and wherein the CPU core local to the apparatus posts a link to the command into the disk controller.
34. The apparatus of claim 33: wherein the link to the command posted into the disk controller is fetched by the disk controller responsive to the command being posted into the disk controller; and wherein the second I/O Interface to further post a second completion notice into the messaging unit responsive to moving the data to be stored and the calculated parity for the data to be stored from the memory local to the apparatus to the plurality of storage apparatuses; and wherein the second I/O Interface to further interrupt the CPU core local to the apparatus.
35. The apparatus of claim 31, wherein the I/O transaction comprising data to be stored and DIF or DIX data for the data to be stored comprises a data stream having the data to be stored and the DIF or DIX data for the data to be stored encoded onto the stream.
36. The apparatus of claim 31, wherein the DMA module to concurrently calculate parity for the data to be stored based on the DIF or DIX data further comprises the DMA module to insert DIF data or to check DIF data for encoded data, or to convert DIX data to DIF data while concurrently calculating the parity for the data to be stored.
37. The apparatus of claim 31, wherein the DMA module to concurrently calculate parity for the data to be stored based on the DIF or DIX data comprises the DMA module to calculate P and Q parity, wherein P parity represents an XOR (eXclusive OR) operation based parity calculation and wherein Q parity represents a Galois Field (GF) multiply operation based parity calculation, the calculation of both P and Q parity sufficient to implement RAID-6 resilient to a dual syndrome failure mode.
38. The apparatus of claim 31, wherein the second I/O Interface module to move the data to be stored and the calculated parity for the data to be stored from the memory local to the apparatus to the plurality of storage apparatuses comprises the second I/O Interface module to implement a breadth first fill operation across the plurality of storage apparatuses.
39. The apparatus of claim 31, wherein the apparatus is implemented within a controller, the controller comprising a Central Processing Unit core (CPU core) local to the controller; caching memory local to the controller; a PCIe (Peripheral Component Interconnect Express) interface to implement the first Input/Output Interface module to the host machine and to communicatively link the controller with the host machine; and a controller interface module to communicate instructions with the host machine via the PCIe interface.
40. The apparatus of claim 1, wherein each of the plurality of storage apparatuses operate as a direct access storage device which operates independently of the host machine, a host machine operating system, and/or a host machine managed file system, wherein each direct access storage device is not managed or controlled by the host machine, the host machine operating system, and/or the host machine managed file system, each direct access storage device being directly accessible via applications hosted by and executing upon the host machine or the host machine operating system, and wherein each direct access storage device is communicatively interfaced with the controller via the second I/O Interface module to the plurality of storage apparatuses.
41. An apparatus comprising: a work engine queue having doorbell space for queued jobs; an Input/Output Interface (I/O Interface) module to a host machine, the I/O Interface module to receive doorbell entries for submission to the work engine queue; a first Queue Structure within the work engine queue to release doorbell entries from the work engine queue using an arbitration scheme; a second Queue Structure within the work engine queue to release additional doorbell entries from the work engine queue using the arbitration scheme; wherein the doorbell entries are queued within and released from the first Queue structure when a number of doorbell entries in the first Queue structure is below a threshold number of Service Queue Entries (SQEs); and wherein the additional doorbell entries are queued within the second Queue structure when the number of doorbell entries in the first Queue structure is above the threshold number of SQEs.
42. The apparatus of claim 41, further comprising an Admin Queue Structure within the work engine queue to store and release admin jobs arriving from the host via the Input/Output Interface module as admin doorbell messages.
43. The apparatus of claim 41, further comprising a second I/O Interface module to a direct access storage device; and wherein the doorbell entries received for submission to the work engine queue comprise storage processing jobs requesting an I/O transaction with the direct access storage device.
44. The apparatus of claim 43, wherein the direct accessed storage device operates independently of the host, a host operating system, and/or a host managed file system and is not managed or controlled by the host, the host operating system, and/or the host managed file system.
45. The apparatus of claim 44, wherein the direct accessed storage is directly accessible via applications hosted by and executing upon the host or the host operating system pursuant to the submission of the storage processing jobs requesting an I/O transaction with the direct access storage device via the work engine queue.
46. The apparatus of claim 41, wherein doorbell entries for the first Queue Structure are error checked for an erroneous or malicious doorbell entry request and are either placed into the first Queue Structure upon passing the error check or are dropped from further queuing, processing, and arbitration upon failing the error check.
47. The apparatus of claim 41, wherein doorbell entries for the second Queue Structure are CAM checked (checked against “Content-Addressable Memory”) to determine if a matching Service Queue Identifier (SQid) for the respective doorbell entries exists within the second Queue Structure based on a matching CAM entry to the SQid and are either placed into the second Queue Structure upon passing the CAM check or are dropped from further queuing, processing, and arbitration upon failing the CAM check.
48. The apparatus of claim 41, further comprising a configuration space to maintain a maximum number of SQEs allowed in the first Queue Structure and a memory space to store a number of presently queued SQEs in the first Queue Structure; and wherein all doorbell entries received for submission to the work engine queue are placed into the first Queue Structure until the first Queue structure reaches the maximum number of SQEs allowed in the first Queue Structure as maintained within the configuration space and further wherein additional doorbell entries received for submission to the work engine queue are placed into the second Queue Structure until the number of SQEs in the first Queue structure falls below the threshold number of SQEs allowed in the first Queue structure.
49. The apparatus of claim 41, wherein the apparatus is implemented within a controller.
50. The apparatus of claim 49, wherein the controller comprises a controller, the controller comprising: a local controller Central Processor Unit (CPU); local controller memory; a PCIe (Peripheral Component Interconnect Express) interface to communicatively link the controller with the host; a controller interface module to communicate instructions and I/O transaction requests with the host via the PCIe interface; a second I/O Interface module to a direct access storage device; and wherein the controller interface module to present I/O transaction requests to the second I/O Interface module for fulfillment of the I/O transaction requests via the direct access storage device communicatively interfaced with the controller.
51. An apparatus comprising: a Central Processor Unit (CPU) local to the apparatus; a work engine queue having doorbell space for queued jobs; an Input/Output Interface (I/O Interface) module to a host machine, the I/O Interface module to receive doorbell entries for submission to the work engine queue; a completion queue having space to coalesce completed jobs previously queued as queued jobs in the work engine queue; and a completion queue interrupt mechanism to initiate an interrupt based on a status associated with the completion queue.
52. The apparatus of claim 51, wherein the completion queue interrupt mechanism comprises: a local CPU interrupt mechanism to interrupt the CPU local to the apparatus based on the status associated with the completion queue; and a host machine CPU interrupt mechanism to interrupt a CPU of the host machine based on the status associated with the completion queue.
53. The apparatus of claim 52, wherein host machine CPU interrupt mechanism implements MSI (Message Signaled Interrupts) or MSI-X (Message Signaled Interrupt eXtension) to the host machine.
54. The apparatus of claim 53, wherein the MSI or MSI-X to the host machine operates in conjunction with dedicated addresses and data vectors corresponding to each of the host machine CPU interrupt mechanism and additionally to a host machine CPU error interrupt mechanism.
55. The apparatus of claim 51, further comprising an error interrupt mechanism to immediately initiate an error interrupt based on notification of an error having an affect on a driver associated with the apparatus or having an affect on a messaging unit for the apparatus.
56. The apparatus of claim 55, wherein the error interrupt mechanism comprises: a local CPU error interrupt mechanism to immediately interrupt the CPU local to the apparatus based on notification of the error; and a host machine CPU error interrupt mechanism to immediately interrupt a CPU of the host machine based on based on notification of the error, wherein the host machine CPU error interrupt mechanism implements MSI (Message Signaled Interrupts) or MSI-X (Message Signaled Interrupt eXtension) to the host machine via NTB (Non-Transparent Bridging).
57. The apparatus of claim 51, wherein the completion queue interrupt mechanism to initiate the interrupt based on the status associated with the completion queue comprises the queue interrupt mechanism to initiate the interrupt based on the completion queue having coalesced a number of completed jobs in excess of a coalesce number designating a maximum number of completed jobs to be maintained in the completion queue without initiating the interrupt.
58. The apparatus of claim 51, wherein the completion queue interrupt mechanism to initiate the interrupt based on the status associated with the completion queue comprises the queue interrupt mechanism to initiate the interrupt based on the completion queue having coalesced completed jobs for a time period that is in excess of a coalesce timer designating a maximum period of time for coalescing completed jobs in the completion queue without initiating the interrupt.
59. The apparatus of claim 58, wherein the coalesce timer implements a minimum and a maximum delay before an interrupt is to be initiated, wherein a minimum time period will be observed if the coalesce timer expires immediately prior to a new completion entry being posted for a completed job, wherein the new completion entry will be caused to associate with a subsequently initiated interrupt.
60. The apparatus of claim 51, wherein the controller comprises a controller, the controller comprising: the Central Processor Unit (CPU) local to the apparatus as a local controller CPU; local controller memory; a PCIe (Peripheral Component Interconnect Express) interface to communicatively link the controller with the host machine via the Input/Output Interface module to the host machine; a controller interface module to communicate instructions and I/O transaction requests with the host machine via the PCIe interface; a second I/O Interface module to a direct access storage device; and wherein the controller interface module to present I/O transaction requests to the second I/O Interface module for fulfillment of the I/O transaction requests via the direct access storage device communicatively interfaced with the controller.
61. The apparatus of claim 51, wherein the completion queue interrupt mechanism to initiate the interrupt based on the status associated with the completion queue comprises an NTB doorbell mechanism (Non-Transparent Bridging doorbell mechanism) to inject a host interrupt to the host machine via Non-Transparent Bridging.
62. The apparatus of claim 61, wherein the NTB doorbell mechanism is implemented via MSI (Message Signaled Interrupts) or MSI-X (Message Signaled Interrupt eXtension) to the host machine over a PCIe downstream port (Peripheral Component Interconnect Express downstream port) implemented at the I/O Interface module of the apparatus to the host machine.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/US2011/054313 | 9/30/2011 | WO | 00 | 7/24/2013 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2013/048451 | 4/4/2013 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5742752 | DeKoning | Apr 1998 | A |
7761658 | Cravens et al. | Jul 2010 | B2 |
7945752 | Miller et al. | May 2011 | B1 |
20040177181 | Yamamoto | Sep 2004 | A1 |
20100199041 | Schnapp et al. | Aug 2010 | A1 |
20100293351 | Kotsch et al. | Nov 2010 | A1 |
20110314354 | Fillingim | Dec 2011 | A1 |
20120072680 | Kimura et al. | Mar 2012 | A1 |
20120079189 | Colgrove | Mar 2012 | A1 |
Number | Date | Country |
---|---|---|
WO-2010071655 | Jun 2010 | WO |
WO-2011044515 | Apr 2011 | WO |
Entry |
---|
International Preliminary Report on Patentability for Application No. PCT/US2011/054313 dated Apr. 1, 2014, 6 pages. |
“PCI Express and Non-Transparent Bridging Support High Availability,” by Akber Kazmim, dated Jan.-Feb. 2004, 4 pages. |
International Search Report and Written Opinion for Application No. PCT/US2011/054313 dated May 14, 2012, 7 pages. |
Extended European Search Report for European Patent Application No. 11873475.5 mailed May 15, 2015, 7 pages. |
Number | Date | Country | |
---|---|---|---|
20140189212 A1 | Jul 2014 | US |