Operating memory devices (e.g., random access memories, dynamic memories, static memories, caches, buffers, etc.) are often employed by computing devices for storing run-time data, executable instructions, and other information. Such memory devices may operate with various parameters, and these parameters may affect the performance characteristics of the operating memory device, the computing device, or of applications executing on the computing device.
Also, various applications may have different responses to different operating memory performance characteristics. For example, some applications may be particularly sensitive to memory latency while other applications may be relatively insensitive to latency, but may benefit from higher bandwidth. However, in conventional technology, the parameters for operating memory devices typically depends on the hardware configuration of the computing device, and are configured prior to or during manufacturing or deployment of a computing device. The parameters for conventional computing devices typically are not changed after a computing device is deployed.
Non-limiting and non-exhaustive embodiments of the present invention are described with reference to the following drawings. In the drawings, like reference numerals refer to like parts throughout the various figures unless otherwise specified. These drawings are not necessarily drawn to scale.
For a better understanding of the present invention, reference will be made to the following Detailed Description, which is to be read in association with the accompanying drawings, wherein:
The following description provides specific details for a thorough understanding of, and enabling description for, various embodiments of the technology. One skilled in the art will understand that the technology may be practiced without many of these details. In some instances, well-known structures and functions have not been shown or described in detail to avoid unnecessarily obscuring the description of embodiments of the technology. It is intended that the terminology used in this disclosure be interpreted in its broadest reasonable manner, even though it is being used in conjunction with a detailed description of certain embodiments of the technology. Although certain terms may be emphasized below, any terminology intended to be interpreted in any restricted manner will be overtly and specifically defined as such in this Detailed Description section. For example, each of the terms “based on” and “based upon” is not exclusive, and is equivalent to the term “based, at least in part, on”, and includes the option of being based on additional factors, some of which may not be described herein. As another example, the term “via” is not exclusive, and is equivalent to the term “via, at least in part”, and includes the option of being via additional factors, some of which may not be described herein. Use of a particular textual numeric designators does not imply the existence of lesser-valued numerical designators. For example, reciting “a widget selected from the group consisting of a third foo and a fourth bar” would not itself imply that there are at least three foo, nor that there are at least four bar, elements. References in the singular are made merely for clarity of reading and include plural references unless plural references are specifically excluded. The term “or” is an inclusive “or” operator unless specifically indicated otherwise. For example, the phrases “A or B” means “A, B, or A and B.” As used herein, the terms “component” and “system” are intended to encompass hardware, software, or various combinations of hardware and software. Thus, for example, a system or component may be a process, a process executing on a computing device, the computing device, or a portion thereof.
Technology relating to tuning for operating memory devices is disclosed. The technology includes a computing device that selectively configures operating parameters for at least one operating memory device based at least in part of performance characteristics for an application or other workload that the computing device has been requested to execute. This technology may be implemented, at least in part, in a firmware of the computing device, such as a Unified Extensible Firmware Interface (UEFI) or a Basic Input/Output System (BIOS) of the computing device. Further, this technology may be employed by a computing device that is executing workloads on behalf of a distributed computing system, e.g., in a data center. Such data centers may include, for example, thousands of computing devices and even more operating memory devices.
In such computing systems, applications and other workloads typically have not been assigned to particular computing devices based on specific or actual performance of those computing devices. Rather, workloads might have been, at best, assigned based on gross generalizations of the computing devices' performance. For example, a workload might perhaps have been assigned to a particular computing device based on processor speed, bus speed, or amount of operating memory installed in that computing device. However, some workloads might have particular sensitivity to memory performance, e.g., memory latency or memory bandwidth. In addition, certain system operators may have an interest in the amount of power consumed by their computing system, including the amount of power consumed by their operating memory devices.
Various computing devices may also include various types of operating memory devices. For example, such computing devices may include dual in-line memory modules (DIMMs), small outline DIMMs (SODIMMs), single in-line memory modules (SIMMs)), operating memory circuits, operating memory cores, operating memory dies, and other operating memory devices from various manufactures and having various performance specifications.
Process and other variations for operating memory devices, for example fabrication variations, packaging variations, temperature variations, and other manufacturing, environmental, or other variations, may mean that the operating memory in a particular computing device may be capable of performing outside of at least one manufacturer specification. For example, a memory device may be able to perform outside a manufacturer specified parameter(s). Such parameters include, but are not limited to:
Further, additional factors may further decrease the efficiency of these and other computer systems. For example, the effect of operating parameters or operating characteristics for a computing device's operating memory might not be a factor in assigning workloads to computing devices, or in configuring computing devices to perform workloads, e.g., because these effects are not known to the computer system or system operator. Accordingly, typical computing systems might not be provisioned to take advantage of the full amount of available computing power.
The presently disclosed technology may be employed, for example, to improve the efficiency or utilization of computing systems and devices, and to improve the performance of workloads. One aspect of the disclosed technology includes characterizing workloads, e.g., to determine the effect of various memory performance characteristics on the workloads. For example, workloads may be analyzed to determine the effects of operating memory latency, random-access speed, burst access speed, or other characteristics on workload performance. The technology may include testing workloads on many computing devices to obtain benchmarked results for each of many operating memory characteristics.
Another aspect of the present disclosed technology includes tuning computing devices to obtain increased performance from operating memory devices. For example, operating memory parameters may be configured, e.g., in BIOS, to test or tune the operating memory performance of a computing device. As an example, operating memory parameters such as clock frequency, bus frequency, refresh rate, CAS timing, RAS timing, RAS to CAS timing, RAS precharge timing, RAS precharge delay timing, row active delay timing, command rate, column to column delay timing, data burst duration, non-uniform memory access (NUMA) settings, rank interleaving, bank interleaving, channel interleaving, or other settings or combinations thereof may be configured and tested for workload performance. These and other settings, and combinations thereof, may also be tested for operating memory reliability.
Another aspect of the presently disclosed technology includes assigning workloads to computing device that have operating memory characteristics that are well-suited to those workloads. For example, workloads that benefit more from lower random access latency than lower burst access speed may be assigned to computing devices with matching operating memory characteristics. Likewise, workloads that benefit more from higher write speed than read speed may be assigned to computing devices with operating memory devices that provide such performance. In addition, workloads that are relatively insensitive to operating memory performance may be assigned to computing devices with operating memories tuned for reduced energy consumption.
In other words, the presently disclosed technology includes characterizing the effect of various operating memory performance characteristics on workloads, and characterizing the effects of various configuration parameters on operating memory performance. The determined effects of the operating memory performance characteristics and operating memory parameters may then be employed to assign workloads to computing devices, and to tune the computing devices to enhance the performance of such workloads. By employing the disclosed technology to map workloads to computing devices an operator of a computing system may improve performance without purchasing more expensive operating memory devices.
As shown in
Computing devices 110 may be virtually any type of general- or specific-purpose computing device. For example, these computing devices may be user devices such as desktop computers, laptop computers, tablet computers, display devices, cameras, printers, or smartphones. However, in a data center environment, these computing devices may be server devices such as application server computers, virtual computing host computers, or file server computers. Moreover, computing devices 110 may be individually configured to provide computing, storage, and/or other suitable computing services. For example, computing devices 110 can be configured to execute workloads and other processes, such as the workloads and other processes described herein.
Computing device 200 includes at least one processing circuit 210 configured to execute instructions, such as instructions for implementing the herein-described workloads, processes, or technology. Processing circuit 210 may include a microprocessor, a microcontroller, a graphics processor, a coprocessor, a field programmable gate array, a programmable logic device, a signal processor, or any other circuit suitable for processing data. The aforementioned instructions, along with other data (e.g., datasets, metadata, operating system instructions, etc.), may be stored in operating memory 220 during run-time of computing device 200. Operating memory 220 may also include any of a variety of data storage devices/components, such as volatile memories, semi-volatile memories, random access memories, static memories, caches, buffers, or other media used to store run-time information. In one example, operating memory 220 does not retain information when computing device 200 is powered off. Rather, computing device 200 may be configured to transfer instructions from a non-volatile data storage component (e.g., data storage component 250) to operating memory 220 as part of a booting or other loading process.
Operating memory 220 may include 4th generation double data rate (DDR4) memory, 3rd generation double data rate (DDR3) memory, other dynamic random access memory (DRAM), High Bandwidth Memory (HBM), Hybrid Memory Cube memory, 3D stacked memory, static random access memory (SRAM), or other memory, and such memory may comprise one or more memory circuits integrated onto a DIMM, SIMM, SODIMM, or other packaging. Such operating memory modules or devices may be organized according to channels, ranks, and banks. For example, operating memory devices may be coupled to processing circuit 210 via memory controller 230 in channels. One example of computing device 200 may include one or two DIMMs per channel, with one or two ranks per channel. Operating memory within a rank may operate with a shared clock, and shared address and command bus. Also, an operating memory device may be organized into several banks where a bank can be thought of as an array addressed by row and column. Based on such an organization of operating memory, physical addresses within the operating memory may be referred to by a tuple of channel, rank, bank, row, and column.
Despite the above-discussion, operating memory 220 specifically does not include or encompass communications media, any communications medium, or any signals per se.
Memory controller 230 is configured to interface processing circuit 210 to operating memory 220. For example, memory controller 230 may be configured to interface commands, addresses, and data between operating memory 220 and processing circuit 210. Memory controller 230 may also be configured to abstract or otherwise manage certain aspects of memory management from or for processing circuit 210. For example, memory controller 230 may manage refreshing of memory cells, manage memory timing, translate logical memory addresses to physical memory address, or the like, on behalf of processing circuit 210 or computing device 200.
In interfacing operating memory 220 to processing circuit 210, memory controller 230 may also manage various parameters for operating memory. For example, memory controller 230 may manage operating memory parameters such as clock frequency, bus frequency, refresh rate, CAS timing, RAS timing, RAS to CAS timing, RAS precharge timing, RAS precharge delay timing, row active delay timing, command rate, column to column delay timing, data burst duration, NUMA settings, rank interleaving, bank interleaving, channel interleaving, or other settings or combinations thereof. In addition, memory controller 230 may also manage reads and/or writes for processing circuit 210, manage access patterns for processing circuit 210 or operating memory 220, or the like, for example by setting configuration parameters controlling a clock cycle by clock cycle input/output specification or pipeline organization for the operating memory.
Although memory controller 230 is illustrated as single memory controller separate from processing circuit 210, in other example, multiple memory controllers may be employed, memory controller(s) may be integrated with operating memory 220, or the like. Further, memory controller(s) may be integrated into processing circuit 210. These and other variations are possible.
In computing device 200, data storage memory 250, input interface 260, output interface 270, and network adapter 280 are interfaced to processing circuit 210 by bus 240. Although,
In computing device 200, data storage memory 250 is employed for long-term non-volatile data storage. Data storage memory 250 may include any of a variety of non-volatile data storage devices/components, such as non-volatile memories, disks, disk drives, hard drives, solid-state drives, or any other media that can be used for the non-volatile storage of information. However, data storage memory 250 specifically does not include or encompass communications media, any communications medium, or any signals per se. In contrast to operating memory 220, data storage memory 250 is employed by computing device 200 for non-volatile long-term data storage, instead of for run-time data storage.
Also, computing device 200 may include or be coupled to any type of computer-readable media such as computer-readable storage media (e.g., operating memory 220 and data storage memory 250) and communication media (e.g., communication signals and radio waves). While the term computer-readable storage media includes operating memory 220 and data storage memory 250, this term specifically excludes and does not encompass communications media, any communications medium, or any signals per se.
Computing device 200 also includes input interface 260, which may be configured to enable computing device 200 to receive input from users or from other devices. In addition, computing device 200 includes output interface 270, which may be configured to provide output from computing device 200. In one example, output interface 270 includes a frame buffer, graphics processor, graphics processor or accelerator, and is configured to render displays for presentation on a separate visual display device (e.g., a monitor, projector, virtual computing client computer, etc.). In another example, output interface 270 includes a visual display device and is configured to render and present displays for viewing.
In the illustrated example, computing device 200 is configured to communicate with other computing devices or entities via network adapter 280. Network adapter 280 may include a wired network adapter, e.g., an Ethernet adapter, a Token Ring adapter, or a Digital Subscriber Line (DSL) adapter. Network adapter 280 may also include a wireless network adapter, for example, a Wi-Fi adapter, a Bluetooth adapter, a ZigBee adapter, a Long Term Evolution (LTE) adapter, or a 5G adapter.
Although computing device 200 is illustrated with certain components configured in a particular arrangement, these components and arrangement are merely one example of a computing device in which the technology may be employed. In other examples, data storage memory 250, input interface 260, output interface 270, or network adapter 280 may be directly coupled to processing circuit 210, or be coupled to processing circuit 210 via an input/output controller, a bridge, or other interface circuitry. Other variations of the technology are possible.
As shown by 310, the operating memory is configured with configuration parameters and tested with micro-benchmarks to measure the impact of various access patterns on memory performance metrics, for example, latency (e.g., read, write, or both), bandwidth (e.g., read, write, or both), energy consumption, or the like. In the illustrated two-metric embodiment of
The configuration and testing of 310 may be performed using any number of computing devices. However, in at least one example, this configuration and testing is performed using multiple computing devices populated with operating memory modules without regard to inherent variation in their configuration, manufacturing process, or the like. Using multiple computing devices, a set of micro-benchmarks may be executed to measure loaded and unloaded latency and bandwidth for the operating memory. For example, this configuration and testing may be performed in BIOS, e.g., during a power-on self-test (POST) routine. In one example, this testing is performed by an automated tool as a POST routine. The operating memory may also be reconfigured and retested using multiple sets of configuration parameters.
The testing of the operating memory modules may also include negotiation of timing, frequency, and other settings, e.g., to determine a baseline set of configuration parameters for the operating memory. One or more computing devices can then be configured with the baseline set of configuration parameters, and testing may be performed to quantify the performance of the operating memory with respect to one or more of the metrics. Additional sets of configuration parameters, e.g., changing one or more of the configuration parameters for the operating memory, may also be tested to quantify the performance of the operating memory. The configuration parameters may be within the specifications for the operating memory devices, or outside of such specifications.
As shown by 320, the performance of a workload (e.g., the speed with which the workload executes, the energy consumed in executing the workload, the number of records processed by the workload, etc.) is analyzed with respect to different memory configuration parameters.
For example, testing, including executing different applications or other workloads using different sets of operating memory configuration parameters may be performed to measure performance characteristics for such workloads. For example, end-to-end performance for the workloads or energy consumption may be measured. This characterization approach enables development of models for the workload's sensitivity to operating memory metrics such as throughput and latency.
Further, test results may be saved, exported, or otherwise communicated, to another computing device. For example, the test data may be exported to another computing device, such as a data center load balancer. Such exporting may be performed prior to fully booting the computing device, e.g., by a routine of a network enabled BIOS, by a UEFI routine, by a network controller, or the like. Alternately, the test data may be saved and exported once the computing device has booted. Further, any suitable protocol may be employed to communicate the test data to the other computing device, or from a firmware routine to an operating system of the computing device. For example, the test data may be communicated via Simple Network Management Protocol (SNMP), Intelligent Platform Management Interface (IPMI), Advanced Configuration and Power Interface (ACPI), etc.
The exported data may be merged with data from other computing devices, or the data may be used by the other computing device to identify the computing devices that contain faster operating memory and re-allocate workloads that are sensitive to operating memory performance to those computing devices.
At 330, memory performance metrics from 310 and application performance data from 320 are employed together to characterize workload performance relative to the memory performance metrics. The use of these memory performance metrics and application performance data allows independent assessment of the impact of different memory performance metrics on workload performance. Potentially, this dependence can also be represented as a continuous function (shown at 330).
For clarity, the processes described herein are described in terms of operations performed in particular sequences by particular devices or components of a system. However, it is noted that other processes are not limited to the stated sequences, devices, or components. For example, certain acts may be performed in different sequences, in parallel, omitted, or may be supplemented by additional acts or features, whether or not such sequences, parallelisms, acts, or features are described herein. Likewise, any of the technology described in this disclosure may be incorporated into the described processes or other processes, whether or not that technology is specifically described in conjunction with a process. The disclosed processes may also be performed on or by other devices, components, or systems, whether or not such devices, components, or systems are described herein. These processes may also be embodied in a variety of ways. For example, they may be embodied on an article of manufacture, e.g., as computer-readable instructions stored in a computer-readable storage medium or be performed as a computer-implemented process. As an alternate example, these processes may be encoded as computer-executable instructions and transmitted via a communications medium.
From 510, processing flows to 520 where an impact of the performance characteristics of the operating memory on workload are determined. For example, this may include determining an association between performance of a workload to be executed on the computing device and performance characteristics of the operating memory. Also, this may include testing execution of the workload using various sets of configuration parameters for the operating memory, such as discussed above in conjunction with
From 520, processing flows to 530 where the configuration parameters for operating memory is reconfigured. This reconfiguration may be based on the determined performance configuration of the operating memory, on the determined impact of the configuration parameters on the application, or both.
From 530, processing flows to 540 where the workload is executed on the computing device, e.g., using the reconfigured operating memory. In at least one example, the execution of the workload is in response to an automatic assignment of the workload to the computing device based on determined performance characteristics of the operating memory in that computing device.
From 610, processing flows to 620 where configuration parameters for the operating memory of the computing device are determined. Such determination may be by BIOS, or be based on information from BIOS. Further, the determination may be based at least in part on performance characteristics for the workload, e.g., based on a determination of the operating memory configuration parameters that provide suitable performance for that workload. The determination may also be based on information received from another computing device, e.g., a workload controller or load balancer, or based on information local to the computing device.
From 620, processing flows to 630 where the computing device is configured to operate according to the determined configuration parameters. For example, this configuring of the computing device may be performed, at least in part, by the BIOS of the computing device, the computing device.
From 630, processing flows to 640 where the workload is executed on the computing device. Execution of the workload may include the use of the operating memory of the computing device. For example, execution of the workload may include reading from the operating memory of the computing device according to the determined configuration parameters or writing to the operating memory of the computing device according to the determined configuration parameters.
While the above Detailed Description describes certain embodiments of the technology, and describes the best mode contemplated, no matter how detailed the above appears in text, the technology can be practiced in many ways. Details may vary in implementation, while still being encompassed by the technology described herein. As noted above, particular terminology used when describing certain features or aspects of the technology should not be taken to imply that the terminology is being redefined herein to be restricted to any specific characteristics, features, or aspects with which that terminology is associated. In general, the terms used in the following claims should not be construed to limit the technology to the specific embodiments disclosed herein, unless the Detailed Description explicitly defines such terms. Accordingly, the actual scope of the technology encompasses not only the disclosed embodiments, but also all equivalent ways of practicing or implementing the technology.