The present invention relates to global completion tables and, more specifically, to an offset-based mechanism for data storage in global completion tables.
In some computer systems, global completion tables are sometimes included for organizing instructions. As computer instructions flow through a machine, the global completion table, residing on a processor of the machine, groups and reorders the instructions as needed. After instructions are dispatched and grouped for execution, the instructions go through various operations before being completed. During this stage, the instruction groups are tracked through the global completion table. Space in the global completion table is allocated when an instruction group is dispatched, at which time information about the group is written to the global completion table, and that information is removed after a flush (i.e., rollback) or completion of the instruction group.
Embodiments of the present invention are directed to a method. A non-limiting example of the method includes allocating a first entry in a global completion table (GCT) on a processor, responsive to a first instruction group being dispatched, where the first entry corresponds to the first instruction group. A data value applicable to the first instruction group is identified. An offset value applicable to the first instruction group is calculated by subtracting, from the data value, a base value previously written to a second entry of the GCT for a second instruction group. The offset value is written in the first entry of the GCT in lieu of the data value.
Embodiments of the present invention are directed to a system. A non-limiting example of the system includes a GCT along with one or more threads of one or more processes in execution, where the one or more threads have access to the GCT. The one or more threads are configured to allocate a first entry in the GCT, responsive to a first instruction group being dispatched, where the first entry corresponds to the first instruction group. The one or more threads are further configured to identify a data value applicable to the first instruction group, and to calculate an offset value applicable to the first instruction group by subtracting, from the data value, a base value previously written to a second entry of the GCT for a second instruction group. The one or more threads are further configured to write the offset value in the first entry of the GCT in lieu of the data value.
Embodiments of the present invention are directed to a computer processor. A non-limiting example of the computer processor includes a GCT along with one or more threads of one or more processes in execution, where the one or more threads have access to the GCT. The one or more threads are configured to allocate a first entry in the GCT, responsive to a first instruction group being dispatched, where the first entry corresponds to the first instruction group. The one or more threads are further configured to identify a data value applicable to the first instruction group, and to calculate an offset value applicable to the first instruction group by subtracting, from the data value, a base value previously written to a second entry of the GCT for a second instruction group. The one or more threads are further configured to write the offset value in the first entry of the GCT in lieu of the data value.
Additional technical features and benefits are realized through the techniques of the present invention. Embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed subject matter. For a better understanding, refer to the detailed description and to the drawings.
The specifics of the exclusive rights described herein are particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other features and advantages of the embodiments of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
The diagrams depicted herein are illustrative. There can be many variations to the diagrams or the operations described therein without departing from the spirit of the invention. For instance, the actions can be performed in a differing order or actions can be added, deleted or modified. Also, the term “coupled” and variations thereof describe having a communications path between two elements and does not imply a direct connection between the elements with no intervening elements/connections between them. All of these variations are considered a part of the specification.
In the accompanying figures and following detailed description of the disclosed embodiments, the various elements illustrated in the figures are provided with two- or three-digit reference numbers. With minor exceptions, the leftmost digit(s) of each reference number correspond to the figure in which its element is first illustrated.
Various embodiments of the invention are described herein with reference to the related drawings. Alternative embodiments of the invention can be devised without departing from the scope of this invention. Various connections and positional relationships (e.g., over, below, adjacent, etc.) are set forth between elements in the following description and in the drawings. These connections and/or positional relationships, unless specified otherwise, can be direct or indirect, and the present invention is not intended to be limiting in this respect. Accordingly, a coupling of entities can refer to either a direct or an indirect coupling, and a positional relationship between entities can be a direct or indirect positional relationship. Moreover, the various tasks and process steps described herein can be incorporated into a more comprehensive procedure or process having additional steps or functionality not described in detail herein.
The following definitions and abbreviations are to be used for the interpretation of the claims and the specification. As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having,” “contains” or “containing,” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a composition, a mixture, process, method, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but can include other elements not expressly listed or inherent to such composition, mixture, process, method, article, or apparatus.
Additionally, the term “exemplary” is used herein to mean “serving as an example, instance or illustration.” Any embodiment or design described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments or designs. The terms “at least one” and “one or more” may be understood to include any integer number greater than or equal to one, i.e., one, two, three, four, etc. The terms “a plurality” may be understood to include any integer number greater than or equal to two, i.e., two, three, four, five, etc. The term “connection” may include both an indirect “connection” and a direct “connection.”
The terms “about,” “substantially,” “approximately,” and variations thereof, are intended to include the degree of error associated with measurement of the particular quantity based upon the equipment available at the time of filing the application. For example, “about” can include a range of ±8% or 5%, or 2% of a given value.
For the sake of brevity, conventional techniques related to making and using aspects of the invention may or may not be described in detail herein. In particular, various aspects of computing systems and specific computer programs to implement the various technical features described herein are well known. Accordingly, in the interest of brevity, many conventional implementation details are only mentioned briefly herein or are omitted entirely without providing the well-known system and/or process details.
Turning now to an overview of technologies that are more specifically relevant to aspects of the invention, because the global completion table (GCT) resides on the processor itself, space-saving is crucial due to limited available space. The GCT can include various information about instruction groups, including, among others, one or more data values. Such data values may include, for instance, a pointer to a buffer maintaining data and addresses for store operations in the instruction groups or maintaining data necessary for tracking various microarchitectural tags of the instruction groups. Conventionally, at least one such data value is provided for each instruction group, even though data values from group to group can be related, e.g., due to pointing to the same buffer. Thus, the inclusion of a data value for each instruction group does not take advantage of redundant information across data values.
Turning now to an overview of the aspects of the invention, one or more embodiments of the invention address the above-described shortcomings of the prior art by preserving space in the GCT through the use of offset values to take the place of full data values. More specifically, for instance, a base value may be included in the GCT for a first instruction group, where the base value is equal to the data value that would conventionally be used, while an offset value may be stored in the GCT for a second instruction group, such that the offset value plus the prior base value determined the data value for the second instruction group.
The above-described aspects of the invention address the shortcomings of the prior art by improving the GCT. According to some embodiments of the invention, because fewer bits are needed to store an offset value versus a complete data value, space can be saved in the GCT, and as a result, the power consumption needed to maintain the GCT can be reduced. This can lead to an improvement in the efficiency of the computer system as a whole because processor efficiency is a key component of computing efficiency.
Turning now to a more detailed description of aspects of the present invention,
Specifically, as shown in
Like the conventional GCT 50, the improved GCT 150 tracks instruction groups. Typically, an entry 120 in the GCT 150 is allocated for use when an instruction group is dispatched (i.e., submitted to issue queues), and information related to that instruction group is then written to the corresponding entry 120 that was allocated. In the GCT 150, each entry 120 may correspond to one or more instruction groups. In a multi-threaded processor 130, the various threads may each have access to the GCT 150 for tracking instruction groups, and each GCT entry 120 may belong to a single respective thread. Thus, if an entry 120 corresponds to multiple instruction groups, then each of such instruction groups typically belong to a common thread. For the sake of simplicity, throughout this disclosure, each entry 120 is described as being associated with an instruction group. However, it will be understood by one skilled in the art that such an entry 120 may be associated with additional instruction groups as well.
The size of a GCT 150 may vary between embodiments. For example, and not by way of limitation, in some embodiments, the GCT 150 has 60 entries, each corresponding to 3 instructions in a single instruction group. However, alternatively, for example, the GCT 150 may have 256 entries each corresponding to a single instruction. Further, for example, a full data value 110 may be stored in 8 bits, while an offset value 115, as described below, may be stored in 2 bits or 1 bit. Thus, it will be understood that space in the GCT 150 is limited, and conservation of that space is essential.
As shown in
The improved GCT 150 may utilize pairs of entries 120 in the GCT 150, including a first entry 120 and a second entry 120. It will be understood that pairs of entries 120, as described herein, can be implemented in various ways. For instance, such a pair may be made up of two distinct entries 120 or may include a single entry 120, or record, divided into two smaller entries 120.
The first entry 120 in a pair may be associated with a first instruction group and may include a base value 111 equal to a first data value 110 applicable to that first instruction group. The second entry 120 may be associated with a second instruction group and may include an offset value 115, such that the offset value 115 of the second instruction group plus the base value 111 of the first instruction group sum to a full data value 110 applicable to the second instruction group. However, that full data value 110 applicable to the second instruction group is not actually stored in full in the GCT 150, according to some embodiments of the invention. Rather, the data value 110 of the second instruction group is determinable by adding the base value 111 of the first instruction group, stored in the first entry 120 of the GCT 150, and the offset value 115 of the second instruction group, stored in the second entry 120 of the GCT 150.
Thus, when a thread allocates a first entry 120 in the GCT 150 for the first instruction group, the thread may then write to the first entry 120 a base value 111 that equals the full data value 110 applicable to that instruction group. Later, when the thread allocates a second entry 120 for the second instruction group, the thread may write to that second entry 120 an offset value 115 representing the data value 110 of the second instruction group, where the offset value 115 may be written in lieu of the full data value 110 for the second instruction group. As described above, the full data value 110 for the second instruction group can be fully determined based on the base value 111 of the first instruction group combined with the offset value 115 of the second instruction group. Additionally, for each consecutive instruction group for which an entry 120 is allocated belonging to the same thread, that thread may write a respective offset value 115 rather than the full data value 110. Thus, for each instruction group having an offset value 115 written to the GCT 150 rather than the data value 110 in full, the data value 110 applicable to an instruction group may be determined by adding the respective offset value 115 to the most recently written base value 111 of the same thread. As a result, each usage of an offset value 115 in lieu of a full data value 110 may reduce the number of bits used in the GCT 150, while maintaining the information needed.
In some cases, it can be established that a base value 111 would not be available to refer back to determine a full data value 110 from an offset value 115. For example, and not by way of limitation, if a flush (i.e., rollback) has occurred such that one or more consecutive entries have been removed from the GCT 150, then writing an offset value 115 will not provide the information necessary to determine a data value 110 for an instruction group. For another example, if the instruction group associated with the prior base value 111 in the GCT 150 is completed, then that associated entry 120 may be removed from the GCT 150 so the entry 120 can be reallocated.
In such cases, to ensure adequate information is provided for determining data values 110 from offset values 115, two entries 120 may be allocated for a single instruction group. In the first entry 120 of such entries 120, a base value 111 may be written, and in the second entry 120 of such entries 120, an offset value 115 may be written. In this case, the base value 111 need not be associated with a specific instruction group but, rather, may be provided to enable determination of data values 110 from offset values 115 written to consecutive entries 120. For example, and not by way of limitation, in this case, the base value 111 written to the first entry 120 may be the full data value 110 applicable to the instruction group, even though the first entry 120 itself is not associated with the instruction group. Further, the offset value 115 in the second entry 120, which is associated with the instruction group, may be given a value of 0. It will be understood, however, that other combinations of values may be used for the base value 111 and the offset value 115 in such circumstances.
In some embodiments of the invention, as shown in
As shown in
At decision block 225, the thread may determine whether a base value 111 is available in the GCT 150 for a prior instruction group. For example, and not by way of limitation, if the first instruction group has been flushed or completed, leading to deallocation of the associated entries 120, then the base value 111 written for the first instruction group may be no longer available in the GCT 150. If no such base value 111 is found, then at block 230, the thread may allocate a pair of entries 120 in the GCT 150 for both a full data value 110 and an offset value 115. At block 235, in the first entry 120, the thread may write a data value 110 applicable to the second instruction group. At block 240, in the second entry 120 of the pair, the thread may write an offset value 115, also for the second instruction group.
However, if such a base value 111 already exists for the second instruction group, then at block 245, the thread may calculate an appropriate offset value 115 for the second instruction group by identifying the actual data value 110 applicable to the second instruction group and reducing that by the most-recently-written base value 111 (e.g., for the first instruction group) of the same thread. At block 250, the thread may write that offset value 115 into the second entry 120 of the allocated pair of the GCT 150. Thus, later, when the data value 110 for the second instruction group is needed (e.g., so as to access data in the buffer), the data value 110 can be retrieved by adding the offset value 115 to the previous base value 111.
The above method 200 or similar may be repeated as the thread processes a stream of instruction groups with various pairs of first and second instruction groups. As a result, each instruction group represented in the GCT 150 is associated with a full data value 110, either explicitly in the form of a base value 111 or implicitly in the form of an offset value 115 that can be added to a prior base value 111. Although embodiments of the invention increase the complexity of storing data values, use of storage space is reduced, thus reducing power consumption for maintaining the GCT 150.
In some embodiments, as shown in
The I/O devices 340, 345 may further include devices that communicate both inputs and outputs, for instance disk and tape storage, a network interface card (NIC) or modulator/demodulator (for accessing other files, devices, systems, or a network), a radio frequency (RF) or other transceiver, a telephonic interface, a bridge, a router, and the like.
The processor 305 is a hardware device for executing hardware instructions or software, particularly those stored in memory 310. The processor 305 may be a custom made or commercially available processor, a central processing unit (CPU), an auxiliary processor among several processors associated with the computer system 300, a semiconductor-based microprocessor (in the form of a microchip or chip set), a macroprocessor, or other device for executing instructions. The processor 305 includes a cache 370, which may include, but is not limited to, an instruction cache to speed up executable instruction fetch, a data cache to speed up data fetch and store, and a translation lookaside buffer (TLB) used to speed up virtual-to-physical address translation for both executable instructions and data. The cache 370 may be organized as a hierarchy of more cache levels (L1, L2, etc.). Further, in some embodiments of the invention, the processor 305 includes an improved GCT 150 as described herein.
The memory 310 may include one or combinations of volatile memory elements (e.g., random access memory, RAM, such as DRAM, SRAM, SDRAM, etc.) and nonvolatile memory elements (e.g., ROM, erasable programmable read only memory (EPROM), electronically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), tape, compact disc read only memory (CD-ROM), disk, diskette, cartridge, cassette or the like, etc.). Moreover, the memory 310 may incorporate electronic, magnetic, optical, or other types of storage media. Note that the memory 310 may have a distributed architecture, where various components are situated remote from one another but may be accessed by the processor 305.
The instructions in memory 310 may include one or more separate programs, each of which comprises an ordered listing of executable instructions for implementing logical functions. In the example of
Additional data, including, for example, instructions for the processor 305 or other retrievable information, may be stored in storage 320, which may be a storage device such as a hard disk drive or solid-state drive. The stored instructions in memory 310 or in storage 320 may include those enabling the processor to execute one or more aspects of the storage systems 100 and methods of this disclosure.
The computer system 300 may further include a display controller 325 coupled to a display 330. In some embodiments, the computer system 300 may further include a network interface 360 for coupling to a network 365. The network 365 may be an IP-based network for communication between the computer system 300 and an external server, client and the like via a broadband connection. The network 365 transmits and receives data between the computer system 300 and external systems. In some embodiments, the network 365 may be a managed IP network administered by a service provider. The network 365 may be implemented in a wireless fashion, e.g., using wireless protocols and technologies, such as WiFi, WiMax, etc. The network 365 may also be a packet-switched network such as a local area network, wide area network, metropolitan area network, the Internet, or other similar type of network environment. The network 365 may be a fixed wireless network, a wireless local area network (LAN), a wireless wide area network (WAN) a personal area network (PAN), a virtual private network (VPN), intranet or other suitable network system and may include equipment for receiving and transmitting signals.
Storage systems 100 and methods according to this disclosure may be embodied, in whole or in part, in computer program products or in computer systems 300, such as that illustrated in
The present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. 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, configuration data for integrated circuitry, 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 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 instruction 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 blocks 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.
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 described herein.
Number | Name | Date | Kind |
---|---|---|---|
6311260 | Stone | Oct 2001 | B1 |
6721874 | Le | Apr 2004 | B1 |
7472258 | Burky | Dec 2008 | B2 |
7546393 | Day | Jun 2009 | B2 |
8285973 | El-Essawy | Oct 2012 | B2 |
8386753 | Eisen | Feb 2013 | B2 |
9489207 | Burky | Nov 2016 | B2 |
9672044 | Tran | Jun 2017 | B2 |
10007526 | Alexander | Jun 2018 | B2 |
20030182537 | Le et al. | Sep 2003 | A1 |
20080059600 | Bestler | Mar 2008 | A1 |
20080072018 | Le | Mar 2008 | A1 |
20100262806 | Doing | Oct 2010 | A1 |
20130007423 | Burcea | Jan 2013 | A1 |
20140129800 | Deutschle | May 2014 | A1 |
20160117175 | Alexander et al. | Apr 2016 | A1 |
20190004805 | Al Sheikh | Jan 2019 | A1 |
Entry |
---|
Kalla et al.; “IBM POWER5 Chip: A Dual-Core Multithreaded Processor”, IEEE Micro, vol. 24, Issue 2, pp. 40-47, Mar.-Apr. 2004. |
Kedzierski et al.; “Analysis of Multithreading Capabilities of Current High-Performance Processors”, XVII Jornadas de Paralelismo-Albacete, Sep. 2006. 6 pages. |
Manousopoulos et al.; “Characterizing Thread Placement in the IBM Power? Processor”, IISWC IEEE International Symposium on Workload Characterization, Nov. 4-6, 2012. pp. 120-130. |
Ruan et al.; “On the Effectiveness of Simultaneous Multithreading on Network Server Workloads”, Princeton University, Report ID: TR-793-07, pp. 1-12, Jul. 2007. |
Number | Date | Country | |
---|---|---|---|
20200272468 A1 | Aug 2020 | US |