US9767030B2 - Sizing a write cache buffer based on emergency data save parameters - Google Patents

Sizing a write cache buffer based on emergency data save parameters Download PDF

Info

Publication number
US9767030B2
US9767030B2 US15/252,679 US201615252679A US9767030B2 US 9767030 B2 US9767030 B2 US 9767030B2 US 201615252679 A US201615252679 A US 201615252679A US 9767030 B2 US9767030 B2 US 9767030B2
Authority
US
United States
Prior art keywords
write cache
storage controller
transfer logic
volatile memory
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
US15/252,679
Other versions
US20160364336A1 (en
Inventor
Kirk D. Lamb
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines Corp filed Critical International Business Machines Corp
Priority to US15/252,679 priority Critical patent/US9767030B2/en
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION reassignment INTERNATIONAL BUSINESS MACHINES CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: LAMB, KIRK D.
Publication of US20160364336A1 publication Critical patent/US20160364336A1/en
Priority to US15/696,262 priority patent/US10007611B2/en
Application granted granted Critical
Publication of US9767030B2 publication Critical patent/US9767030B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • G06F12/0871Allocation or management of cache space
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0638Combination of memories, e.g. ROM and RAM such as to permit replacement or supplementing of words in one module by words in another module
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0804Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches with main memory updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • G06F12/0868Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1032Reliability improvement, data loss prevention, degraded operation etc
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/31Providing disk cache in a specific location of a storage system
    • G06F2212/312In storage controller
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/60Details of cache memory
    • G06F2212/604Details relating to cache allocation
    • Y02B60/1225
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present invention relates generally to saving data upon loss of power, and more specifically, to sizing a write cache buffer based on parameters related to carrying out this emergency data save procedure.
  • Computer systems may use a storage controller as an intermediary between a host processor and permanent storage such as a disk subsystem.
  • the host processor sends read and write transactions to the storage controller, and the storage controller in turn issues read and write commands to the permanent storage subsystem.
  • a typical storage controller implements a write caching policy so that a write transaction is not always immediately passed on to the permanent storage subsystem, but is instead written to a write cache allocated from volatile storage such as dynamic read access memory (DRAM).
  • DRAM dynamic read access memory
  • the storage controller issues a command to write the data from the write cache to the permanent storage subsystem.
  • Embodiments include a method, device, and computer program product for allocating a write cache on a storage controller.
  • a computer program product comprises a computer readable storage medium having program instructions embodied therewith.
  • the computer readable storage medium is not a signal and the program instructions are readable by a processing circuit to cause the processing circuit to perform a method.
  • the method includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache.
  • the component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic.
  • the method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters.
  • the method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller.
  • a computer implemented method includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache.
  • the component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic.
  • the method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters.
  • the method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller.
  • a storage controller device includes a volatile memory, a non-volatile storage, transfer logic configured to copy, upon a power loss, contents of a write cache in the volatile memory to the non-volatile storage; an instruction memory; and a processor, communicatively coupled to the instruction memory.
  • the storage controller device is configured to perform a method that includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache.
  • the component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic.
  • the method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters.
  • the method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller.
  • FIG. 1 depicts a computer system including a storage controller in accordance with an embodiment
  • FIG. 2 depicts a process flow for sizing and allocating a write cache in a storage controller in accordance with an embodiment
  • FIG. 3 depicts a process flow for determining an energy consumption rate during an emergency data save, in accordance with an embodiment
  • FIG. 4 depicts a storage controller device in accordance with an embodiment
  • FIG. 5 depicts a computer-readable medium according to an embodiment.
  • conventional storage processors may implement write caching. Some conventional storage processors make this caching transparent to the host by reporting a successful write transaction back to the host processor once the data is written to volatile storage. To complement this transparent write caching, some conventional storage processors provide an emergency data save facility so that if no power is available to write to the permanent storage subsystem, cached data is temporarily stored in non-volatile storage. When power is restored, the storage processor copies the data from non-volatile storage to the permanent storage subsystem, thus putting stored data into the state expected by the host processor.
  • an energy storage element such as a capacitor.
  • This amount of stored energy along with the energy consumption rate during the save, sets a maximum limit on the amount of data that can be transferred from the write cache to non-volatile storage.
  • Embodiments disclosed herein dynamically use operating parameters obtained at run-time to determine a maximum size of the write cache. Embodiments disclosed herein then allocate the write cache buffer to have this maximum size.
  • the operating parameters are used to determine the energy consumption rate of the power-off save.
  • the maximum size of the write cache is then determined using this dynamically determined energy consumption rate.
  • the computer system 100 includes a host processor 105 , a storage controller 110 , and permanent storage subsystem 115 .
  • the permanent storage subsystem 115 may include more than one disk.
  • the storage controller 110 may handle more than one disk.
  • the storage controller 110 may use the disks to provide redundancy features, such as those known as Redundant Array of Inexpensive Disks (RAID).
  • RAID Redundant Array of Inexpensive Disks
  • storage controller 110 The functionality of storage controller 110 is divided into blocks such as caching logic 120 , transfer logic 125 , and restore logic 130 .
  • the storage controller 110 may include other blocks for other functions.
  • these logic blocks may correspond to software, i.e., sections of code.
  • the logic blocks may be implemented as specialized circuits of logic gates.
  • the caching logic 120 handles caching of writes from the host processor 105 . That is, when the host processor 105 sends a write transaction to the storage controller 110 , the storage controller 110 writes the host data to a write cache 135 .
  • the write cache 135 resides in volatile memory 140 , which take the form of dynamic random access memory (DRAM). This sequence is denoted with arrow 145 in FIG. 1 .
  • the storage controller 110 issues a write command to the permanent storage subsystem 115 to copy data stored in the write cache 135 to the permanent storage subsystem 115 . This sequence is denoted with arrow 150 in FIG. 1 .
  • the transfer logic 125 detects a loss of power to the storage controller 110 and upon power loss, copies any data still in the write cache 135 to non-volatile memory 155 .
  • This sequence is denoted with arrow 160 in FIG. 1 .
  • power for this sequence is provided by an energy storage element.
  • the energy storage element takes the form of an ultracapacitor, also known as a supercapactior. In other embodiments, the energy storage element takes the form of a battery.
  • the restore logic 130 is invoked when power is restored. At that time, the restore logic 130 issues write commands to write the data in the non-volatile memory 155 to the permanent storage subsystem 130 . This sequence is denoted with arrow 165 in FIG. 1 . A person of ordinary skill in the art should understand that other state information necessary to carry out this write sequence is also stored in the non-volatile memory 155 . For example, each write transaction processed by the restore logic 130 may be associated with a starting address in the non-volatile memory 155 , an amount of data to be written, and information related to the target disk (e.g., disk id, location on disk, etc.)
  • allocation of a buffer to be used as the write cache 135 is performed by the caching logic 120 .
  • the caching logic 120 must allocate a buffer for the write cache 135 before any write caching occurs.
  • Allocation of the write cache buffer may occur as part of an initialization sequence performed by the storage controller 110 . In some embodiments, allocation of this buffer is performed once, at power-up. In other embodiments, this allocation is performed periodically, allowing the size of the write cache 135 to be changed dynamically at run-time.
  • FIG. 2 a flow chart of a process 200 for sizing and allocating the write cache 135 is generally shown.
  • the transfer logic 125 moves data from the write cache 135 to the non-volatile memory 155 upon loss of power.
  • the maximum limit on the amount of data that can be transferred depends on the amount of stored energy available to the storage controller 110 , the data transfer rate of the non-volatile storage, and the energy consumption rate (ECR) of the transfer logic 125 .
  • ECR energy consumption rate
  • the caching logic 120 retrieves one or more of these operating parameters from system configuration data.
  • the retrieved parameter is the energy capacity of the energy storage element.
  • the retrieved parameter is the data transfer rate of the non-volatile memory 155 .
  • the retrieved parameter is the power consumption of the transfer logic 125 .
  • At least one of these operating parameters is instance-specific.
  • An instance-specific parameter is one that is not common to all instances of the component, but is instead specific to the particular component installed in the storage controller 110 .
  • Instance-specific parameters for a device may be obtained, for example, by reading from a predefined memory or I/O location (sometimes referred to as “bin data”).
  • some embodiments of the transfer logic 125 are implemented as an application specific integrated circuit (ASIC). While the transfer logic 125 on any of these ASICs is specified to operating in a particular frequency range, an individual ASIC (referred to sometimes as a “part”) may be able to run at the high or low (fast or slow) end of that range, depending on the process speed. Process speed is thus is an example of an instance-specific parameter.
  • ASIC application specific integrated circuit
  • This process speed affects the ASIC's power consumption because for a given frequency, a fast process part can run at that frequency using a lower voltage than a slow process part. Also, fast process ASICs have higher leakage current than slow process ASICs. However, fast process ASICs can run at lower voltage, so this power is somewhat reduced relative to the slow process ASICs. Also, the fast process ASIC consumes less switching power, because switching power is a function of frequency, capacitance, and the square of voltage. When frequency is fixed, capacitance is close to constant across the process, and the voltage is lower. In any case, for a fixed frequency ASIC, the energy consumption rate of the fast and slow part would differ even when the data transfer rate is the same (due to the fixed frequency). In a variable frequency ASIC, the fast process parts run at a faster frequency than the slow process part, given a fixed voltage. Thus, for a variable frequency ASIC, both the data transfer rate and the energy consumption rates would differ according to process speed.
  • the data transfer speed may be a parameter that is common to all memory devices of a certain type (e.g., a specific type of NAND flash), or maybe instance-specific to a particular batch of memory devices.
  • the caching logic 120 uses the operating parameter to determine an appropriate size for the write cache 135 , one that will allow the transfer logic 125 to copy the entire cache to the non-volatile memory 155 given the capacity of the energy storage element.
  • the size is calculated as the energy capacity of the non-volatile memory 155 multiplied by the data transfer rate of the non-volatile memory 155 , divided by the energy consumption rate (ECR) of the transfer logic 125 .
  • ECR energy consumption rate
  • at least one of these factors is an operating parameter retrieved at run-time by the storage controller 110 .
  • Retrieving parameters at run-time allows the storage controller 110 to customize the size of the write cache 135 for the actual hardware, rather than relying on worst case assumptions about the behavior of the components involved in the power-loss save of the write cache 135 .
  • Using instance-specific values of the operating parameters allows even more customization.
  • the caching logic 120 allocates a portion of the volatile memory 140 , having the size calculated at block 220 , to serve as the write cache 135 .
  • the caching logic 120 provides a portion of the volatile memory 140 , having the size calculated at block 220 , to serve as the write cache 135 .
  • the caching logic 120 allocates a portion of the volatile memory 140 , having the size calculated at block 220 , to serve as the write cache 135 .
  • the caching logic 120 allocates a portion of the volatile memory 140 , having the size calculated at block 220 , to serve as the write cache 135 .
  • an alloc( ) function in which the caller specifies that the allocated buffer should come from a particular memory region rather than from the general-purpose heap.
  • Other operating systems provide a map function that allows the caller to map a particular region (i.e., starting address and size) of physical memory to a logical address usable by software.
  • the caching logic 120 handles caching of write transactions from the host processor 105 , using various techniques known to persons of ordinary skill in the art.
  • the transfer logic 125 copies the contents of the write cache 135 to non-volatile memory 155 .
  • the restore logic 130 reads from the non-volatile memory 155 and issues write commands to the permanent storage subsystem 115 .
  • additional state information may be saved during the power-loss save (block 250 ) so that various portions of the non-volatile memory 155 are written to the correct location of the correct target disk.
  • the caching logic 120 reads the process speed of the transfer logic 125 as bin data.
  • the caching logic 120 uses a predefined mapping to get from process speed to a voltage level.
  • the caching logic 120 calculates the ECR of the transfer logic 125 from voltage, process speed, and temperature of the transfer logic 125 .
  • the caching logic 120 may, for example, perform a calculation based on a fixed relationship between these three values, or may use a table look-up. Some embodiments use a fixed temperature value corresponding to the maximum allowed temperature of the storage controller 110 . Others use a temperature sensor to read a current temperature of the transfer logic 125 . Still other embodiments sense the temperature of the storage controller 110 , which includes the transfer logic 125 as well as additional logic and components.
  • Some embodiments of the storage controller 110 may have multiple frequency and/or voltage domains.
  • the following pseudocode illustrates a calculation of energy consumption rate, and then of write cache size, that takes into account multiple frequency and voltage domains of the storage controller 110 .
  • the storage controller 110 includes a processor 410 , a host interface 420 , a storage interface 430 , a memory interface 440 , and a non-volatile memory interface 450 .
  • the processor 410 communicates with the host processor 105 through the host interface 420 to receive write commands or transactions from the host processor 105 .
  • the processor 410 uses the memory interface 440 to write data provided by the host to the write cache 135 residing in the volatile memory 140 .
  • the processor 410 writes data from the write cache 135 to the permanent storage subsystem 115 through the storage interface 430 .
  • the processor 410 copies the contents of the write cache 135 to the non-volatile memory 155 over the non-volatile memory interface 450 . Once power is restored, the processor 410 issues write transactions to the permanent storage subsystem 115 to commit the data in non-volatile memory 155 to permanent storage.
  • the storage controller 110 may be implemented using a variety of technologies.
  • the processor 410 is implemented as a microprocessor or microcontroller and the interfaces are implemented as specialized logic blocks (e.g., one or more ASICs).
  • the processor 410 is also incorporated into the ASIC.
  • the storage controller 110 is implemented as a System on Chip (SoC).
  • SoC System on Chip
  • Embodiments disclosed herein include a computer program product for allocating a write cache on a storage controller.
  • the computer program product comprises a computer readable storage medium having program instructions embodied therewith.
  • the computer readable storage medium is not a signal.
  • the program instructions are readable by a processing circuit to cause the processing circuit to perform a method that includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache.
  • the component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic.
  • the method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters.
  • the method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller.
  • the component corresponds to the transfer logic and the one or more operating parameters corresponds to a power consumption of the transfer logic, and/or the component corresponds to the transfer logic and the one or more operating parameters corresponds to a process speed of the transfer logic.
  • the process speed is retrieved as bin data.
  • the determination of the size for the write cache on the storage controller is based on an energy consumption rate of the transfer logic, and this determination further includes determining a voltage of the transfer logic from the process speed, and calculating the energy consumption rate of the transfer logic from the determined voltage and the process speed.
  • the calculation of the energy consumption rate also uses a current temperature of the transfer logic.
  • the component corresponds to the energy storage element and the one or more operating parameters corresponds to an energy capacity of the energy storage element.
  • the component corresponds to the non-volatile memory and the one or more operating parameters corresponds to a data transfer rate of the non-volatile memory.
  • Embodiments disclosed herein include a computer implemented method for allocating a write cache on a storage controller.
  • the method includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache.
  • the component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic.
  • the method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters.
  • the method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller.
  • the component corresponds to the transfer logic and the one or more operating parameters corresponds to a power consumption of the transfer logic, and/or the component corresponds to the transfer logic and the one or more operating parameters corresponds to a process speed of the transfer logic.
  • the process speed is retrieved as bin data.
  • the determination of the size for the write cache on the storage controller is based on an energy consumption rate of the transfer logic, and this determination further includes determining a voltage of the transfer logic from the process speed, and calculating the energy consumption rate of the transfer logic from the determined voltage and the process speed.
  • the calculation of the energy consumption rate also uses a current temperature of the transfer logic.
  • the component corresponds to the energy storage element and the one or more operating parameters corresponds to an energy capacity of the energy storage element. In further embodiments, the component corresponds to the non-volatile memory and the one or more operating parameters corresponds to a data transfer rate of the non-volatile memory. In further embodiments the calculating of the energy consumption rate accounts for multiple voltage domains of the storage controller. In further embodiments the calculating of the energy consumption rate accounts for multiple frequency domains of the storage controller.
  • Embodiments disclosed herein include a storage controller device.
  • the storage controller device includes a volatile memory, a non-volatile storage, transfer logic configured to copy, upon a power loss, contents of a write cache in the volatile memory to the non-volatile storage; an instruction memory; and a processor, communicatively coupled to said instruction memory.
  • the storage controller is configured to perform a method that includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache.
  • the component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic.
  • the method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters.
  • the method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller.
  • the component corresponds to the transfer logic and the one or more operating parameters corresponds to a power consumption of the transfer logic, and/or the component corresponds to the transfer logic and the one or more operating parameters corresponds to a process speed of the transfer logic.
  • the process speed is retrieved as bin data.
  • the determination of the size for the write cache on the storage controller is based on an energy consumption rate of the transfer logic, and this determination further includes determining a voltage of the transfer logic from the process speed, and calculating the energy consumption rate of the transfer logic from the determined voltage and the process speed.
  • the calculation of the energy consumption rate also uses a current temperature of the transfer logic.
  • the component corresponds to the energy storage element and the one or more operating parameters corresponds to an energy capacity of the energy storage element.
  • the component corresponds to the non-volatile memory and the one or more operating parameters corresponds to a data transfer rate of the non-volatile memory.
  • the storage controller includes an application specific integrated circuit (ASIC) and the transfer logic resides on the ASIC.
  • the retrieving reads the one or more operating parameters from a stored system configuration.
  • a computer program product 500 in accordance with an embodiment that includes a computer readable storage medium 502 and program instructions 504 is generally shown.
  • the present invention may be a system, a method, and/or a computer program product.
  • the computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
  • the computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device.
  • the computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • a non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or Flash memory erasable programmable read-only memory
  • SRAM static random access memory
  • CD-ROM compact disc read-only memory
  • DVD digital versatile disk
  • memory stick a floppy disk
  • a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon
  • a computer readable storage medium is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
  • Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network.
  • the network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
  • Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages.
  • the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
  • electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
  • the computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s).
  • the functions noted in the block may occur out of the order noted in the figures.
  • two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.

Abstract

Embodiments relate to saving data upon loss of power. An aspect includes sizing a write cache buffer based on parameters related to carrying out this emergency data save procedure. A computer implemented method for allocating a write cache on a storage controller includes retrieving, at run-time by a processor, one or more operating parameters of a component used in a power-loss save of the write cache. The component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic. A size for the write cache on the storage controller is determined, based on the one or more operating parameters. A write cache, of the determined size, is allocated from a volatile memory coupled to the storage controller.

Description

DOMESTIC PRIORITY
This application is a continuation of U.S. patent application Ser. No. 15/135,759, filed Apr. 22, 2016, which is a continuation of U.S. patent application Ser. No. 14/266,977, filed May 1, 2014, the contents of which are incorporated by reference herein in their entirety.
BACKGROUND
The present invention relates generally to saving data upon loss of power, and more specifically, to sizing a write cache buffer based on parameters related to carrying out this emergency data save procedure.
Computer systems may use a storage controller as an intermediary between a host processor and permanent storage such as a disk subsystem. The host processor sends read and write transactions to the storage controller, and the storage controller in turn issues read and write commands to the permanent storage subsystem. A typical storage controller implements a write caching policy so that a write transaction is not always immediately passed on to the permanent storage subsystem, but is instead written to a write cache allocated from volatile storage such as dynamic read access memory (DRAM). At a later point in time, the storage controller issues a command to write the data from the write cache to the permanent storage subsystem.
SUMMARY
Embodiments include a method, device, and computer program product for allocating a write cache on a storage controller. A computer program product comprises a computer readable storage medium having program instructions embodied therewith. The computer readable storage medium is not a signal and the program instructions are readable by a processing circuit to cause the processing circuit to perform a method. The method includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache. The component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic. The method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters. The method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller.
A computer implemented method includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache. The component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic. The method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters. The method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller.
A storage controller device includes a volatile memory, a non-volatile storage, transfer logic configured to copy, upon a power loss, contents of a write cache in the volatile memory to the non-volatile storage; an instruction memory; and a processor, communicatively coupled to the instruction memory. The storage controller device is configured to perform a method that includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache. The component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic. The method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters. The method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller.
BRIEF DESCRIPTION OF THE DRAWINGS
The subject matter which is regarded as embodiments is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The forgoing and other features, and advantages of the embodiments are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
FIG. 1 depicts a computer system including a storage controller in accordance with an embodiment;
FIG. 2 depicts a process flow for sizing and allocating a write cache in a storage controller in accordance with an embodiment;
FIG. 3 depicts a process flow for determining an energy consumption rate during an emergency data save, in accordance with an embodiment;
FIG. 4 depicts a storage controller device in accordance with an embodiment; and
FIG. 5 depicts a computer-readable medium according to an embodiment.
DETAILED DESCRIPTION
As noted above, conventional storage processors may implement write caching. Some conventional storage processors make this caching transparent to the host by reporting a successful write transaction back to the host processor once the data is written to volatile storage. To complement this transparent write caching, some conventional storage processors provide an emergency data save facility so that if no power is available to write to the permanent storage subsystem, cached data is temporarily stored in non-volatile storage. When power is restored, the storage processor copies the data from non-volatile storage to the permanent storage subsystem, thus putting stored data into the state expected by the host processor.
Since the emergency save procedure is invoked when the normal power supply has been interrupted, power for this emergency data save is provided by an energy storage element such as a capacitor. This amount of stored energy, along with the energy consumption rate during the save, sets a maximum limit on the amount of data that can be transferred from the write cache to non-volatile storage. Embodiments disclosed herein dynamically use operating parameters obtained at run-time to determine a maximum size of the write cache. Embodiments disclosed herein then allocate the write cache buffer to have this maximum size.
In some embodiments disclosed herein, the operating parameters are used to determine the energy consumption rate of the power-off save. The maximum size of the write cache is then determined using this dynamically determined energy consumption rate.
Turning now to FIG. 1, a block diagram of a computer system 100 is generally shown. The computer system 100 includes a host processor 105, a storage controller 110, and permanent storage subsystem 115. The permanent storage subsystem 115 may include more than one disk. In such embodiments, the storage controller 110 may handle more than one disk. In multi-disk embodiments, the storage controller 110 may use the disks to provide redundancy features, such as those known as Redundant Array of Inexpensive Disks (RAID).
The functionality of storage controller 110 is divided into blocks such as caching logic 120, transfer logic 125, and restore logic 130. A person of ordinary skill in the art will appreciate that the storage controller 110 may include other blocks for other functions. In embodiments in which the storage controller 110 includes a processor that executes instructions, these logic blocks may correspond to software, i.e., sections of code. In other embodiments, the logic blocks may be implemented as specialized circuits of logic gates.
The caching logic 120 handles caching of writes from the host processor 105. That is, when the host processor 105 sends a write transaction to the storage controller 110, the storage controller 110 writes the host data to a write cache 135. The write cache 135 resides in volatile memory 140, which take the form of dynamic random access memory (DRAM). This sequence is denoted with arrow 145 in FIG. 1. At a later point in time, the storage controller 110 issues a write command to the permanent storage subsystem 115 to copy data stored in the write cache 135 to the permanent storage subsystem 115. This sequence is denoted with arrow 150 in FIG. 1.
The transfer logic 125 detects a loss of power to the storage controller 110 and upon power loss, copies any data still in the write cache 135 to non-volatile memory 155. This sequence is denoted with arrow 160 in FIG. 1. As noted above, power for this sequence is provided by an energy storage element. In some embodiments, the energy storage element takes the form of an ultracapacitor, also known as a supercapactior. In other embodiments, the energy storage element takes the form of a battery.
The restore logic 130 is invoked when power is restored. At that time, the restore logic 130 issues write commands to write the data in the non-volatile memory 155 to the permanent storage subsystem 130. This sequence is denoted with arrow 165 in FIG. 1. A person of ordinary skill in the art should understand that other state information necessary to carry out this write sequence is also stored in the non-volatile memory 155. For example, each write transaction processed by the restore logic 130 may be associated with a starting address in the non-volatile memory 155, an amount of data to be written, and information related to the target disk (e.g., disk id, location on disk, etc.)
Having described, at a high level, the overall operation of write operations in computer system 100, the allocation of the write cache 135 will now be discussed in more detail. As described herein, allocation of a buffer to be used as the write cache 135 is performed by the caching logic 120. However, a person of ordinary skill in the art will understand that this is merely one way of partitioning functionality, and that this allocation could also be performed by another portion of the storage controller 110. The caching logic 120 must allocate a buffer for the write cache 135 before any write caching occurs. Allocation of the write cache buffer may occur as part of an initialization sequence performed by the storage controller 110. In some embodiments, allocation of this buffer is performed once, at power-up. In other embodiments, this allocation is performed periodically, allowing the size of the write cache 135 to be changed dynamically at run-time.
Turning now to FIG. 2, a flow chart of a process 200 for sizing and allocating the write cache 135 is generally shown. As noted above, the transfer logic 125 moves data from the write cache 135 to the non-volatile memory 155 upon loss of power. The maximum limit on the amount of data that can be transferred depends on the amount of stored energy available to the storage controller 110, the data transfer rate of the non-volatile storage, and the energy consumption rate (ECR) of the transfer logic 125.
Each of these factors corresponds to, or is derived from, operating parameters of energy storage component, the non-volatile storage, and the transfer logic 125. At block 210, the caching logic 120 retrieves one or more of these operating parameters from system configuration data. In some embodiments, the retrieved parameter is the energy capacity of the energy storage element. In some embodiments, the retrieved parameter is the data transfer rate of the non-volatile memory 155. In some embodiments, the retrieved parameter is the power consumption of the transfer logic 125.
At least one of these operating parameters is instance-specific. An instance-specific parameter is one that is not common to all instances of the component, but is instead specific to the particular component installed in the storage controller 110. Instance-specific parameters for a device may be obtained, for example, by reading from a predefined memory or I/O location (sometimes referred to as “bin data”).
As one example, some embodiments of the transfer logic 125 are implemented as an application specific integrated circuit (ASIC). While the transfer logic 125 on any of these ASICs is specified to operating in a particular frequency range, an individual ASIC (referred to sometimes as a “part”) may be able to run at the high or low (fast or slow) end of that range, depending on the process speed. Process speed is thus is an example of an instance-specific parameter.
This process speed affects the ASIC's power consumption because for a given frequency, a fast process part can run at that frequency using a lower voltage than a slow process part. Also, fast process ASICs have higher leakage current than slow process ASICs. However, fast process ASICs can run at lower voltage, so this power is somewhat reduced relative to the slow process ASICs. Also, the fast process ASIC consumes less switching power, because switching power is a function of frequency, capacitance, and the square of voltage. When frequency is fixed, capacitance is close to constant across the process, and the voltage is lower. In any case, for a fixed frequency ASIC, the energy consumption rate of the fast and slow part would differ even when the data transfer rate is the same (due to the fixed frequency). In a variable frequency ASIC, the fast process parts run at a faster frequency than the slow process part, given a fixed voltage. Thus, for a variable frequency ASIC, both the data transfer rate and the energy consumption rates would differ according to process speed.
With regard to parameters for the non-volatile memory 155, the data transfer speed may be a parameter that is common to all memory devices of a certain type (e.g., a specific type of NAND flash), or maybe instance-specific to a particular batch of memory devices.
Having obtained an operating parameter at block 210, at block 220 the caching logic 120 uses the operating parameter to determine an appropriate size for the write cache 135, one that will allow the transfer logic 125 to copy the entire cache to the non-volatile memory 155 given the capacity of the energy storage element. The size is calculated as the energy capacity of the non-volatile memory 155 multiplied by the data transfer rate of the non-volatile memory 155, divided by the energy consumption rate (ECR) of the transfer logic 125. As noted above, at least one of these factors is an operating parameter retrieved at run-time by the storage controller 110. Retrieving parameters at run-time allows the storage controller 110 to customize the size of the write cache 135 for the actual hardware, rather than relying on worst case assumptions about the behavior of the components involved in the power-loss save of the write cache 135. Using instance-specific values of the operating parameters allows even more customization.
At block 230, the caching logic 120 allocates a portion of the volatile memory 140, having the size calculated at block 220, to serve as the write cache 135. Persons of ordinary skill in the art should appreciate that various techniques are available for allocating a buffer from a particular region or type of memory, depending on the platform. For example, some operating systems provide an alloc( ) function in which the caller specifies that the allocated buffer should come from a particular memory region rather than from the general-purpose heap. Other operating systems provide a map function that allows the caller to map a particular region (i.e., starting address and size) of physical memory to a logical address usable by software. At block 240, the caching logic 120 handles caching of write transactions from the host processor 105, using various techniques known to persons of ordinary skill in the art. At block 250, upon receipt of a power-loss indication, the transfer logic 125 copies the contents of the write cache 135 to non-volatile memory 155. At block 260, the restore logic 130 reads from the non-volatile memory 155 and issues write commands to the permanent storage subsystem 115. As noted earlier in the system-level discussion of FIG. 1, additional state information may be saved during the power-loss save (block 250) so that various portions of the non-volatile memory 155 are written to the correct location of the correct target disk.
Turning now to FIG. 3, a flow chart of a process 300 for determining the energy consumption rate (ECR) of the transfer logic 125 is generally shown. At block 310, the caching logic 120 reads the process speed of the transfer logic 125 as bin data. At block 320, the caching logic 120 uses a predefined mapping to get from process speed to a voltage level. At block 330, the caching logic 120 calculates the ECR of the transfer logic 125 from voltage, process speed, and temperature of the transfer logic 125. The caching logic 120 may, for example, perform a calculation based on a fixed relationship between these three values, or may use a table look-up. Some embodiments use a fixed temperature value corresponding to the maximum allowed temperature of the storage controller 110. Others use a temperature sensor to read a current temperature of the transfer logic 125. Still other embodiments sense the temperature of the storage controller 110, which includes the transfer logic 125 as well as additional logic and components.
Some embodiments of the storage controller 110 may have multiple frequency and/or voltage domains. The following pseudocode illustrates a calculation of energy consumption rate, and then of write cache size, that takes into account multiple frequency and voltage domains of the storage controller 110.
ESE = ProductDataRead(ESE_Loc);
DTR = ProductDataRead(DTR_Loc);
ECR = 0;
Foreach vi of all_voltage_domains {
  foreach fj of all_freq_domains {
      cij = MapCapacitanceConstant(vi, fj);
      active_powerij = fj*cij*vi**2;
      leakage_powerij = MapLeakagePower(vi, fj);
      ECR = ECR + activepowerij + leakage_powerij;
  }
}
WriteCacheSize = ESE * (1/ECR) * DTR;
Turning now to FIG. 4, a block diagram of the storage controller 110 is generally shown. The storage controller 110 includes a processor 410, a host interface 420, a storage interface 430, a memory interface 440, and a non-volatile memory interface 450. The processor 410 communicates with the host processor 105 through the host interface 420 to receive write commands or transactions from the host processor 105. Using the memory interface 440, the processor 410 writes data provided by the host to the write cache 135 residing in the volatile memory 140. At a later time, the processor 410 writes data from the write cache 135 to the permanent storage subsystem 115 through the storage interface 430. If loss of power is detected through signal 460, the processor 410 copies the contents of the write cache 135 to the non-volatile memory 155 over the non-volatile memory interface 450. Once power is restored, the processor 410 issues write transactions to the permanent storage subsystem 115 to commit the data in non-volatile memory 155 to permanent storage.
As should be understood by a person of ordinary skill in the art, the storage controller 110 may be implemented using a variety of technologies. In one embodiment, the processor 410 is implemented as a microprocessor or microcontroller and the interfaces are implemented as specialized logic blocks (e.g., one or more ASICs). In another embodiment, the processor 410 is also incorporated into the ASIC. In other embodiments, the storage controller 110 is implemented as a System on Chip (SoC).
Technical effects and benefits include determining a maximum size for a storage controller's write cache buffer that is tailored for the particular components of the storage controller. Sizing that takes into account the specific configuration of the storage controller is preferable to conventional solutions which make worst case assumptions about these components. For example, assuming the highest energy consumption during the power-off save procedure results in a smaller write cache buffer, and thus reduced performance.
Embodiments disclosed herein include a computer program product for allocating a write cache on a storage controller. The computer program product comprises a computer readable storage medium having program instructions embodied therewith. The computer readable storage medium is not a signal. The program instructions are readable by a processing circuit to cause the processing circuit to perform a method that includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache. The component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic. The method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters. The method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller. In addition to one or more of the features described above, or as an alternative, in further embodiments the component corresponds to the transfer logic and the one or more operating parameters corresponds to a power consumption of the transfer logic, and/or the component corresponds to the transfer logic and the one or more operating parameters corresponds to a process speed of the transfer logic. In further embodiments, the process speed is retrieved as bin data. In further embodiments, the determination of the size for the write cache on the storage controller is based on an energy consumption rate of the transfer logic, and this determination further includes determining a voltage of the transfer logic from the process speed, and calculating the energy consumption rate of the transfer logic from the determined voltage and the process speed. In further embodiments, the calculation of the energy consumption rate also uses a current temperature of the transfer logic. In further embodiments, the component corresponds to the energy storage element and the one or more operating parameters corresponds to an energy capacity of the energy storage element. In further embodiments, the component corresponds to the non-volatile memory and the one or more operating parameters corresponds to a data transfer rate of the non-volatile memory.
Embodiments disclosed herein include a computer implemented method for allocating a write cache on a storage controller. The method includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache. The component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic. The method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters. The method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller. In addition to one or more of the features described above, or as an alternative, in further embodiments the component corresponds to the transfer logic and the one or more operating parameters corresponds to a power consumption of the transfer logic, and/or the component corresponds to the transfer logic and the one or more operating parameters corresponds to a process speed of the transfer logic. In further embodiments, the process speed is retrieved as bin data. In further embodiments, the determination of the size for the write cache on the storage controller is based on an energy consumption rate of the transfer logic, and this determination further includes determining a voltage of the transfer logic from the process speed, and calculating the energy consumption rate of the transfer logic from the determined voltage and the process speed. In further embodiments, the calculation of the energy consumption rate also uses a current temperature of the transfer logic. In further embodiments, the component corresponds to the energy storage element and the one or more operating parameters corresponds to an energy capacity of the energy storage element. In further embodiments, the component corresponds to the non-volatile memory and the one or more operating parameters corresponds to a data transfer rate of the non-volatile memory. In further embodiments the calculating of the energy consumption rate accounts for multiple voltage domains of the storage controller. In further embodiments the calculating of the energy consumption rate accounts for multiple frequency domains of the storage controller.
Embodiments disclosed herein include a storage controller device. The storage controller device includes a volatile memory, a non-volatile storage, transfer logic configured to copy, upon a power loss, contents of a write cache in the volatile memory to the non-volatile storage; an instruction memory; and a processor, communicatively coupled to said instruction memory. The storage controller is configured to perform a method that includes retrieving, at run-time, one or more operating parameters of a component used in a power-loss save of the write cache. The component is selected from the group consisting of an energy storage element, a non-volatile memory, and a transfer logic. The method also includes determining a size for the write cache on the storage controller, based on the one or more operating parameters. The method also includes allocating the write cache, of the determined size, from a volatile memory coupled to the storage controller. In addition to one or more of the features described above, or as an alternative, in further embodiments the component corresponds to the transfer logic and the one or more operating parameters corresponds to a power consumption of the transfer logic, and/or the component corresponds to the transfer logic and the one or more operating parameters corresponds to a process speed of the transfer logic. In further embodiments, the process speed is retrieved as bin data. In further embodiments, the determination of the size for the write cache on the storage controller is based on an energy consumption rate of the transfer logic, and this determination further includes determining a voltage of the transfer logic from the process speed, and calculating the energy consumption rate of the transfer logic from the determined voltage and the process speed. In further embodiments, the calculation of the energy consumption rate also uses a current temperature of the transfer logic. In further embodiments, the component corresponds to the energy storage element and the one or more operating parameters corresponds to an energy capacity of the energy storage element. In further embodiments, the component corresponds to the non-volatile memory and the one or more operating parameters corresponds to a data transfer rate of the non-volatile memory. In further embodiments the storage controller includes an application specific integrated circuit (ASIC) and the transfer logic resides on the ASIC. In further embodiments the retrieving reads the one or more operating parameters from a stored system configuration.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, element components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Referring now to FIG. 5, a computer program product 500 in accordance with an embodiment that includes a computer readable storage medium 502 and program instructions 504 is generally shown. The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.

Claims (1)

What is claimed is:
1. A computer implemented method for allocating a write cache on a storage controller, the method comprising:
retrieving, at run-time by a processor of a storage controller, one or more operating parameters of a transfer logic residing on an application specific circuit (ASIC), the one or more operating parameters including an instance-specific process speed of the transfer logic, wherein
the instance-specific process speed is retrieved as bin data,
the transfer logic is configured to copy, upon power loss, contents of a write cache in a volatile memory to a non-volatile storage, and
the storage controller includes the volatile memory, the non-volatile storage, the ASIC, the instruction memory, and the processor;
determining a voltage of the transfer logic based on the instance-specific process speed of the transfer logic;
calculating an energy consumption rate of the transfer logic during the copy upon power loss, wherein the calculating is based on the voltage, a current temperature of the transfer logic and the one or more operating parameters that are obtained at run-time;
determining a size for the write cache in the volatile memory, based on the energy consumption rate and an amount of energy in an energy storage element that powers the power-loss save; and
allocating the write cache, of the determined size, from the volatile memory.
US15/252,679 2014-05-01 2016-08-31 Sizing a write cache buffer based on emergency data save parameters Active US9767030B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US15/252,679 US9767030B2 (en) 2014-05-01 2016-08-31 Sizing a write cache buffer based on emergency data save parameters
US15/696,262 US10007611B2 (en) 2014-05-01 2017-09-06 Sizing a write cache buffer based on emergency data save parameters

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US14/266,977 US20150317248A1 (en) 2014-05-01 2014-05-01 Sizing a write cache buffer based on emergency data save parameters
US15/135,759 US9436612B2 (en) 2014-05-01 2016-04-22 Sizing a write cache buffer based on emergency data save parameters
US15/252,679 US9767030B2 (en) 2014-05-01 2016-08-31 Sizing a write cache buffer based on emergency data save parameters

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US15/135,759 Continuation US9436612B2 (en) 2014-05-01 2016-04-22 Sizing a write cache buffer based on emergency data save parameters

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/696,262 Continuation US10007611B2 (en) 2014-05-01 2017-09-06 Sizing a write cache buffer based on emergency data save parameters

Publications (2)

Publication Number Publication Date
US20160364336A1 US20160364336A1 (en) 2016-12-15
US9767030B2 true US9767030B2 (en) 2017-09-19

Family

ID=54355334

Family Applications (4)

Application Number Title Priority Date Filing Date
US14/266,977 Abandoned US20150317248A1 (en) 2014-05-01 2014-05-01 Sizing a write cache buffer based on emergency data save parameters
US15/135,759 Active US9436612B2 (en) 2014-05-01 2016-04-22 Sizing a write cache buffer based on emergency data save parameters
US15/252,679 Active US9767030B2 (en) 2014-05-01 2016-08-31 Sizing a write cache buffer based on emergency data save parameters
US15/696,262 Expired - Fee Related US10007611B2 (en) 2014-05-01 2017-09-06 Sizing a write cache buffer based on emergency data save parameters

Family Applications Before (2)

Application Number Title Priority Date Filing Date
US14/266,977 Abandoned US20150317248A1 (en) 2014-05-01 2014-05-01 Sizing a write cache buffer based on emergency data save parameters
US15/135,759 Active US9436612B2 (en) 2014-05-01 2016-04-22 Sizing a write cache buffer based on emergency data save parameters

Family Applications After (1)

Application Number Title Priority Date Filing Date
US15/696,262 Expired - Fee Related US10007611B2 (en) 2014-05-01 2017-09-06 Sizing a write cache buffer based on emergency data save parameters

Country Status (1)

Country Link
US (4) US20150317248A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10007611B2 (en) * 2014-05-01 2018-06-26 International Business Machines Corporation Sizing a write cache buffer based on emergency data save parameters

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10872018B2 (en) 2018-01-30 2020-12-22 Quanta Computer Inc. Memory data preservation solution
US10635321B2 (en) * 2018-07-02 2020-04-28 Seagate Technology Llc Reducing a data storage device readying time
KR102541897B1 (en) * 2018-08-27 2023-06-12 에스케이하이닉스 주식회사 Memory system
US10725912B2 (en) * 2018-12-19 2020-07-28 Micron Technology, Inc. Power loss protection in memory sub-systems
US11237917B1 (en) * 2020-08-28 2022-02-01 Dell Products L.P. System and method for data protection during power loss of a storage system
US11644986B1 (en) 2021-11-20 2023-05-09 Western Digital Technologies, Inc. Adaptive power loss management for data storage devices

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5414861A (en) * 1991-09-11 1995-05-09 Fujitsu Limited Data protection system using different levels of reserve power to maintain data in volatile memories for any period of time
US5596708A (en) * 1994-04-04 1997-01-21 At&T Global Information Solutions Company Method and apparatus for the protection of write data in a disk array
US20060015683A1 (en) * 2004-06-21 2006-01-19 Dot Hill Systems Corporation Raid controller using capacitor energy source to flush volatile cache data to non-volatile memory during main power outage
US20060072369A1 (en) * 2004-10-04 2006-04-06 Research In Motion Limited System and method for automatically saving memory contents of a data processing device on power failure
US20060136765A1 (en) * 2004-12-03 2006-06-22 Poisner David L Prevention of data loss due to power failure
US20060133181A1 (en) * 2004-12-20 2006-06-22 Fujitsu Limited Power controller, apparatus provided with backup power supply, program for controlling power, and method for controlling power
US20070033433A1 (en) 2005-08-04 2007-02-08 Dot Hill Systems Corporation Dynamic write cache size adjustment in raid controller with capacitor backup energy source
US20080005474A1 (en) 2006-06-29 2008-01-03 Matthew Long Controlling memory parameters
US9436612B2 (en) * 2014-05-01 2016-09-06 International Business Machines Corporation Sizing a write cache buffer based on emergency data save parameters

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6957355B2 (en) * 2002-09-18 2005-10-18 Sun Microsystems, Inc. Method and system for dynamically adjusting storage system write cache based on the backup battery level
US7979655B2 (en) * 2008-03-04 2011-07-12 International Business Machines Corporation Dynamic optimization of device limits and thresholds in a write cache

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5414861A (en) * 1991-09-11 1995-05-09 Fujitsu Limited Data protection system using different levels of reserve power to maintain data in volatile memories for any period of time
US5596708A (en) * 1994-04-04 1997-01-21 At&T Global Information Solutions Company Method and apparatus for the protection of write data in a disk array
US20060015683A1 (en) * 2004-06-21 2006-01-19 Dot Hill Systems Corporation Raid controller using capacitor energy source to flush volatile cache data to non-volatile memory during main power outage
US20060072369A1 (en) * 2004-10-04 2006-04-06 Research In Motion Limited System and method for automatically saving memory contents of a data processing device on power failure
US20060136765A1 (en) * 2004-12-03 2006-06-22 Poisner David L Prevention of data loss due to power failure
US20060133181A1 (en) * 2004-12-20 2006-06-22 Fujitsu Limited Power controller, apparatus provided with backup power supply, program for controlling power, and method for controlling power
US20070033433A1 (en) 2005-08-04 2007-02-08 Dot Hill Systems Corporation Dynamic write cache size adjustment in raid controller with capacitor backup energy source
US20080005474A1 (en) 2006-06-29 2008-01-03 Matthew Long Controlling memory parameters
US9436612B2 (en) * 2014-05-01 2016-09-06 International Business Machines Corporation Sizing a write cache buffer based on emergency data save parameters

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Kirk D. Lamb, Pending U.S. Appl. No. 14/266,977 entitled "Sizing a Write Cache Buffer Based on Emergency Data Save Parameters," filed May 1, 2014.
List of IBM Patents or Patent Applictions Treated as Related; (Appendix P), Filed Nov. 11, 2016, 2 pages.

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10007611B2 (en) * 2014-05-01 2018-06-26 International Business Machines Corporation Sizing a write cache buffer based on emergency data save parameters

Also Published As

Publication number Publication date
US20150317248A1 (en) 2015-11-05
US20170364443A1 (en) 2017-12-21
US20160364336A1 (en) 2016-12-15
US9436612B2 (en) 2016-09-06
US10007611B2 (en) 2018-06-26
US20160224445A1 (en) 2016-08-04

Similar Documents

Publication Publication Date Title
US10007611B2 (en) Sizing a write cache buffer based on emergency data save parameters
US8806165B2 (en) Mass-storage system utilizing auxiliary solid-state storage subsystem
US9569118B2 (en) Promoting consistent response times in a data storage system having multiple data retrieval mechanisms
US10606803B2 (en) Data cloning in memory-based file systems
US9471505B2 (en) Efficient multi-threaded journal space reclamation
US7904764B2 (en) Memory lifetime gauging system, method and computer program product
US10303560B2 (en) Systems and methods for eliminating write-hole problems on parity-based storage resources during an unexpected power loss
US20090182962A1 (en) Memory Subsystem Hibernation
US11422860B2 (en) Optimizing save operations for OS/hypervisor-based persistent memory
US10990291B2 (en) Software assist memory module hardware architecture
CN103699429A (en) Virtual machine migration method and virtual machine migration device
WO2016116930A1 (en) Reusable memory devices with wom codes
KR102168193B1 (en) System and method for integrating overprovisioned memory devices
US8589624B2 (en) Systems and methods for background destaging storage tracks
US20200042066A1 (en) System and method for facilitating dram data cache dumping and rack-scale battery backup
US9891824B2 (en) Sub-block input/output (I/O) commands for storage device including byte stream buffer
US9632941B2 (en) Fuzzy counters for NVS to reduce lock contention
CN110737395B (en) I/O management method, electronic device, and computer-readable storage medium
US11586266B1 (en) Persistent power enabled on-chip data processor
KR102176304B1 (en) Reducing write-backs to memory by controlling the age of cache lines in lower level cache
JP2018173786A (en) Storage system, storage management device, storage management method, and program
US10901906B2 (en) Write data allocation in storage system
US10740024B1 (en) Minimizing runtime feature overhead in a storage system
US20230409472A1 (en) Snapshotting Pending Memory Writes Using Non-Volatile Memory
Lee et al. Assessment of DM-cache Running on Virtual Linux

Legal Events

Date Code Title Description
AS Assignment

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LAMB, KIRK D.;REEL/FRAME:039602/0684

Effective date: 20140403

STCF Information on status: patent grant

Free format text: PATENTED CASE

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 4