One or more embodiments generally relate to cache element processing and, in particular, to serially processing grouped cache elements for reducing energy.
Cache memory structures are used in computer systems by devices, such as central processing units (CPUs), graphical processing units (GPUs), etc. to reduce the average latency and/or reduce the bandwidth needs to main memory. Cache memory structures are commonly designed to provide a certain associativity, meaning that there are multiple alternate locations where a specific cache line may be placed. The associativity implies that multiple locations need to be searched when doing a cache tag look-up. In general, for an N-way associative cache, each look-up involves examining N tags. Each examination of the tags typically involves processing the tags in parallel by reading out the tag from a static random access memory (SRAM) and comparing it to the requested address. For highly associative caches, the processing power used for parallel look-ups may result in a significant energy use cost.
One or more embodiments generally relate to grouping cache tags of a cache memory structure and serially processing the cache element groups for reduced processing power usage. In one embodiment, a method provides for accessing a cache memory structure includes dividing multiple cache elements of a cache memory structure into multiple groups. In one embodiment, a serial probing process of the multiple groups is performed. In one embodiment, upon a tag hit resulting from the serial probing process, the probing process exits without performing processing for the remaining groups (e.g., exits from performing look-ups).
In one embodiment a non-transitory computer-readable medium having instructions which when executed on a computer perform a method comprising dividing a plurality of cache elements of a cache memory structure into multiple groups. In one embodiment, a serial probing process of the multiple groups is performed. In one embodiment, upon a tag hit resulting from the serial probing process, the probing process for remaining groups is exited.
In one embodiment, a graphics processor for an electronic device comprises: one or more processing elements coupled to a hierarchy of memory devices. In one embodiment, the graphics processor processes a cache memory structure of the hierarchy of memory devices by dividing a plurality of cache elements of the cache memory structure into multiple groups, serial probing the multiple groups, and upon a tag hit resulting from the serial probing, exiting the serial probing for any remaining groups.
These and other aspects and advantages of one or more embodiments will become apparent from the following detailed description, which, when taken in conjunction with the drawings, illustrate by way of example the principles of the one or more embodiments.
For a fuller understanding of the nature and advantages of the embodiments, as well as a preferred mode of use, reference should be made to the following detailed description read in conjunction with the accompanying drawings, in which:
The following description is made for the purpose of illustrating the general principles of one or more embodiments and is not meant to limit the inventive concepts claimed herein. Further, particular features described herein can be used in combination with other described features in each of the various possible combinations and permutations. Unless otherwise specifically defined herein, all terms are to be given their broadest possible interpretation including meanings implied from the specification as well as meanings understood by those skilled in the art and/or as defined in dictionaries, treatises, etc.
One or more embodiments provide for a reduction of the number of tag look-ups and the associated power cost by providing serial-based cache element look-up processing. In one or more embodiments, cache elements (e.g., one or more of tags and data) are divided into groups and the groups are probed serially, as compared to parallel tag look-ups as with conventional cache processing. In one embodiment, to support multi-ported cache accessing, the different ports probe the different tag groups in different order.
In one embodiment, a method provides for accessing a cache memory structure includes dividing multiple cache elements of a cache memory structure into multiple groups. In one embodiment, a serial probing process of the multiple groups is performed. In one embodiment, upon a tag hit resulting from the serial probing process, the probing process for one or more remaining groups exits.
Any suitable circuitry, device, system or combination of these (e.g., a wireless communications infrastructure including communications towers and telecommunications servers) operative to create a communications network may be used to create communications network 110. Communications network 110 may be capable of providing communications using any suitable communications protocol. In some embodiments, communications network 110 may support, for example, traditional telephone lines, cable television, Wi-Fi (e.g., an IEEE 802.11 protocol), Bluetooth®, high frequency systems (e.g., 900 MHz, 2.4 GHz, and 5.6 GHz communication systems), infrared, other relatively localized wireless communication protocol, or any combination thereof. In some embodiments, the communications network 110 may support protocols used by wireless and cellular phones and personal email devices (e.g., a Blackberry®). Such protocols can include, for example, GSM, GSM plus EDGE, CDMA, quadband, and other cellular protocols. In another example, a long range communications protocol can include Wi-Fi and protocols for placing or receiving calls using VOIP, LAN, WAN, or other TCP-IP based communication protocols. The transmitting device 12 and receiving device 11, when located within communications network 110, may communicate over a bidirectional communication path such as path 13, or over two unidirectional communication paths. Both the transmitting device 12 and receiving device 11 may be capable of initiating a communications operation and receiving an initiated communications operation.
The transmitting device 12 and receiving device 11 may include any suitable device for sending and receiving communications operations. For example, the transmitting device 12 and receiving device 11 may include mobile telephone devices, television systems, cameras, camcorders, a device with audio video capabilities, tablets, wearable devices, and any other device capable of communicating wirelessly (with or without the aid of a wireless-enabling accessory system) or via wired pathways (e.g., using traditional telephone wires). The communications operations may include any suitable form of communications, including for example, voice communications (e.g., telephone calls), data communications (e.g., e-mails, text messages, media messages), video communication, or combinations of these (e.g., video conferences).
In one embodiment, all of the applications employed by the audio output 123, the display 121, input mechanism 124, communications circuitry 125, and the microphone 122 may be interconnected and managed by control circuitry 126. In one example, a handheld music player capable of transmitting music to other tuning devices may be incorporated into the electronics device 120.
In one embodiment, the audio output 123 may include any suitable audio component for providing audio to the user of electronics device 120. For example, audio output 123 may include one or more speakers (e.g., mono or stereo speakers) built into the electronics device 120. In some embodiments, the audio output 123 may include an audio component that is remotely coupled to the electronics device 120. For example, the audio output 123 may include a headset, headphones, or earbuds that may be coupled to communications device with a wire (e.g., coupled to electronics device 120 with a jack) or wirelessly (e.g., Bluetooth® headphones or a Bluetooth® headset).
In one embodiment, the display 121 may include any suitable screen or projection system for providing a display visible to the user. For example, display 121 may include a screen (e.g., an LCD screen) that is incorporated in the electronics device 120. As another example, display 121 may include a movable display or a projecting system for providing a display of content on a surface remote from electronics device 120 (e.g., a video projector). Display 121 may be operative to display content (e.g., information regarding communications operations or information regarding available media selections) under the direction of control circuitry 126.
In one embodiment, input mechanism 124 may be any suitable mechanism or user interface for providing user inputs or instructions to electronics device 120. Input mechanism 124 may take a variety of forms, such as a button, keypad, dial, a click wheel, or a touch screen. The input mechanism 124 may include a multi-touch screen.
In one embodiment, communications circuitry 125 may be any suitable communications circuitry operative to connect to a communications network (e.g., communications network 110,
In some embodiments, communications circuitry 125 may be operative to create a communications network using any suitable communications protocol. For example, communications circuitry 125 may create a short-range communications network using a short-range communications protocol to connect to other communications devices. For example, communications circuitry 125 may be operative to create a local communications network using the Bluetooth® protocol to couple the electronics device 120 with a Bluetooth® headset.
In one embodiment, control circuitry 126 may be operative to control the operations and performance of the electronics device 120. Control circuitry 126 may include, for example, a processor, a bus (e.g., for sending instructions to the other components of the electronics device 120), memory, storage, or any other suitable component for controlling the operations of the electronics device 120. In some embodiments, a processor may drive the display and process inputs received from the user interface. The memory and storage may include, for example, cache, Flash memory, ROM, and/or RAM/DRAM. In some embodiments, memory may be specifically dedicated to storing firmware (e.g., for device applications such as an operating system, user interface functions, and processor functions). In some embodiments, memory may be operative to store information related to other devices with which the electronics device 120 performs communications operations (e.g., saving contact information related to communications operations or storing information related to different media types and media items selected by the user).
In one embodiment, the control circuitry 126 may be operative to perform the operations of one or more applications implemented on the electronics device 120. Any suitable number or type of applications may be implemented. Although the following discussion will enumerate different applications, it will be understood that some or all of the applications may be combined into one or more applications. For example, the electronics device 120 may include an automatic speech recognition (ASR) application, a dialog application, a map application, a media application (e.g., QuickTime, MobileMusic.app, or MobileVideo.app), social networking applications (e.g., Facebook®, Twitter®, etc.), an Internet browsing application, etc. In some embodiments, the electronics device 120 may include one or multiple applications operative to perform communications operations. For example, the electronics device 120 may include a messaging application, a mail application, a voicemail application, an instant messaging application (e.g., for chatting), a videoconferencing application, a fax application, or any other suitable application for performing any suitable communications operation.
In some embodiments, the electronics device 120 may include a microphone 122. For example, electronics device 120 may include microphone 122 to allow the user to transmit audio (e.g., voice audio) for speech control and navigation of applications 1-N 127, during a communications operation or as a means of establishing a communications operation or as an alternative to using a physical user interface. The microphone 122 may be incorporated in the electronics device 120, or may be remotely coupled to the electronics device 120. For example, the microphone 122 may be incorporated in wired headphones, the microphone 122 may be incorporated in a wireless headset, the microphone 122 may be incorporated in a remote control device, etc.
In one embodiment, the camera module 128 comprises one or more camera devices that include functionality for capturing still and video images, editing functionality, communication interoperability for sending, sharing, etc., photos/videos, etc.
In one embodiment, the GPU module 129 comprises processes and/or programs for processing images and portions of images for rendering on the display 121 (e.g., 2D or 3D images). In one or more embodiments, the GPU module may comprise GPU hardware and memory (e.g., a memory hierarchy 300 (
In one embodiment, the electronics device 120 may include any other component suitable for performing a communications operation. For example, the electronics device 120 may include a power supply, ports, or interfaces for coupling to a host device, a secondary input mechanism (e.g., an ON/OFF switch), or any other suitable component.
In one embodiment, the GPU memory 340 may be on-board with a GPU or be on a separate memory structure that the GPU may access. In one embodiment, a GPU of the GPU module 129 (
In one embodiment, the L1 cache 320 onboard a GPU may be smaller than L1 cache in a CPU, but the L1 cache 320 may have a much higher bandwidth. In one embodiment, the MPs 310 may comprise streaming MPs that are each equipped with its own L1 cache 320. In one embodiment, the GPU of GPU module 129 includes physical memory structures, for example: a primitive mapping table (PMT), a plane equation table (PEQ), a texture cache (T$), a graphics state table (GST), thread descriptor queues (TDQ), a first level (L1) data cache (L1D$), a register file (RF), a first level (L1) instruction cache (L1I$), a first level (L1) constant cache (L1C$), etc.
In one embodiment, the tags 363 are divided into M groups (each group consisting of N/M ways, where M is between 1 and N) and then perform the tag-look-up serially, group-by-group, and if the cache line is found, no more tag-look-ups are needed (i.e., the cache tag look-up exits without further look-ups being made, which is herein referred to as “early out”). In one embodiment, the grouping comprises grouping cache elements, such as tags and data, or data. In one embodiment, performing the tag look-up serially increases the worst case look-up latency by a factor of M. In one embodiment, the group size may be determined based on physical (e.g., memory size or available memory building block (e.g., a SRAM array, etc.)) and logical characteristics (e.g., partitions available, etc.) of the cache memory structure.
In one embodiment, while the average latency for a tag look-up increases, the throughput of the cache tag structure is not reduced. In one example embodiment, sub-sequent tag look-ups co-exist in the serial processing pipeline 450, i.e. if taglook-up request A is in Stage 2 470 of the serial processing pipeline 450, a sub-sequent request B will be in Stage 1 460 of the serial processing pipeline 450. It should be noted that the serial processing pipeline 450 does not show the “early out” functionality, which basically results in sub-sequent stages of the pipeline being disabled and bypassed upon a tag hit occurring in the probing tag look-up process of the serial processing pipeline 450 (e.g., the process jumps to Stage N+1 490 then exits, or the pipeline 450 continues to run at the full latency but the unnecessary groups lookups are suppressed to save energy). In one embodiment, stage 490 will still be reached at the same number of cycles after the initial group lookup, but the energy will still be saved.
In one embodiment, when factoring in the “early out” functionality, the serial processing pipeline 450 may be viewed as having dynamic latency where the latency is shorter the sooner a tag hit is discovered.
In one embodiment, the cache elements 9 (e.g., tags, data, tags and data, etc.) are accessed serially group-by-group in an order, such as a selected order, a predefined order, etc. In one example embodiment, the order may be a forward order (G0, G1, G2 . . . GN−1), reverse order (GN−1 . . . G2, G1, G0) random order, pseudo-random order (e.g., partially random order, predetermined order that is scattered to seem random (e.g., G0, G5, G2, G4, G3, etc.), but is repeatable), etc., where G stands for group.
In one embodiment, in block 630 a cache tag group type of look-up order (e.g., forward, random, pseudo-random, reverse, etc.) may be selected, designated or automatically/dynamically be assigned or may be fixed by the GPU or CPU. In one embodiment, the selected or assigned order may change or remain the same from one pass to determine a cache hit or miss to the next. In one embodiment, the different types of selected order for the cache tag look-ups may be tracked and selected based on heuristics.
In one embodiment, in block 640 a cache tag look-up is performed on a cache tag group based on the selected, assigned or fixed type of order. In block 650 it is determined whether a cache tag hit has occurred or not. In one embodiment, if a cache tag hit has occurred in the group that is processed, process 600 continues to block 660 where an “early out” exits the process 600 based on the cache tag hit, and the current process 600 stops at block 670. In one embodiment, if a cache tag hit did not occur in block 650, process 600 continues to block 680.
In one embodiment, in block 680 it is determined whether the group just processed is the last cache tag group or not. In one embodiment, if it is determined that the processed group was the last cache tag group, and then process 600 continues to block 690 where a cache miss is the result and the process 600 exits. In one embodiment, if it is determined in block 680 that the group just processed is not the last cache tag group remaining, then process 600 continues to block 640 with the next group to be processed based on the group order selected, assigned, designated, etc.
In one embodiment, the process flow 700 shows multiple tag groups for port 0 705 and port 1 706. In one embodiment, the port 0 requests proceed from left-to-right (i.e., in a first or forward order), and the port 1 requests proceed from the right-to-left (i.e., in a second or reverse/opposite order from the first order). In one embodiment, the percentages 710 depicted show the utilization for the look-up process moving from group-to-group serially from the port 0 705 accesses, while the percentages 720 depicted show the utilization for the look-up process moving from group-to-group serially from the port 1 706 accesses. In one embodiment, while the order for the port 0 705 access is shown in a serial forward order, the above-mentioned orders (e.g., random, pseudo-random, etc.) may also be used as well.
In one example embodiment, the utilization 1000 shows for a design of a 32-way associative cache with a group size M of 8. In one example, all of these utilization percentages are expected averages based on a number of assumptions. In one embodiment, utilizations may occur so the throughput is limited by the group that experiences the highest utilization. In one embodiment, there is no requirement that the way and group configuration results in a system with an expected utilization of 100% of each group.
In one embodiment, in block 1220 a serial probing process (e.g., cache tag look-up or compare) of the multiple groups is performed (e.g., by a processing element, agent, CPU, GPU, etc.). In one embodiment, in block 1230 upon a tag hit resulting from the serial probing process, the probing process exits for remaining groups (e.g., an “early exit” is performed).
In one embodiment, process 1200 determines a group size for the plurality of cache tags based on physical and logical characteristics of the cache memory structure. In one example embodiment, in process 1200 the multiple cache elements are accessed serially group-by-group in a predefined order (e.g., forward, reverse, random, pseudo-random, etc.).
In one embodiment, in process 1200 a first port is provided to the cache memory structure, and the first port accesses the multiple groups in a first order (e.g., a forward order, a reverse order, etc.). In one embodiment, in process 1200 a second port is provided to the cache memory structure, and the second port accesses the multiple groups in a second order (e.g., forward order, reverse order, etc.). In one embodiment, in process 1200 the first order and the second order are different from one another (e.g., one is forward, the other is reverse, one is random, the other is pseudo-random, one is opposite random, etc.).
In one embodiment, in process 1200 a duplicate copy of one or more of the multiple groups are provided. In one embodiment, the first port and the second port access particular one or more of the multiple groups that do not have duplicate copies in a reverse order from one another. In one embodiment, multiple ports (e.g., 2, 4, etc.) are provided to the cache memory structure, and the multiple ports access the multiple groups in a different order from each other.
In one embodiment, the cache memory structure is part of a GPU (e.g., a GPU of the GPU module 129,
The communication interface 517 allows software and data to be transferred between the computer system and external devices through the Internet 550, mobile electronic device 551, a server 552, a network 553, etc. The system 500 further includes a communications infrastructure 518 (e.g., a communications bus, cross-over bar, or network) to which the aforementioned devices/modules 511 through 517 are connected.
The information transferred via communications interface 517 may be in the form of signals such as electronic, electromagnetic, optical, or other signals capable of being received by communications interface 517, via a communication link that carries signals and may be implemented using wire or cable, fiber optics, a phone line, a cellular phone link, an radio frequency (RF) link, and/or other communication channels.
In one implementation of one or more embodiments in a mobile wireless device (e.g., a mobile phone, tablet, wearable device, etc.), the system 500 further includes an image capture device 520, such as a camera 128 (
In one embodiment, the system 500 includes a cache processing module 530 that may implement processing similar as described regarding the cache structure 360 (
As is known to those skilled in the art, the aforementioned example architectures described above, according to said architectures, can be implemented in many ways, such as program instructions for execution by a processor, as software modules, microcode, as computer program product on computer readable media, as analog/logic circuits, as application specific integrated circuits, as firmware, as consumer electronic devices, AV devices, wireless/wired transmitters, wireless/wired receivers, networks, multi-media devices, etc. Further, embodiments of said architecture can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements.
One or more embodiments have been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to one or more embodiments. Each block of such illustrations/diagrams, or combinations thereof, can be implemented by computer program instructions. The computer program instructions when provided to a processor produce a machine, such that the instructions, which execute via the processor create means for implementing the functions/operations specified in the flowchart and/or block diagram. Each block in the flowchart/block diagrams may represent a hardware and/or software module or logic, implementing one or more embodiments. In alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures, concurrently, etc.
The terms “computer program medium,” “computer usable medium,” “computer readable medium”, and “computer program product,” are used to generally refer to media such as main memory, secondary memory, removable storage drive, a hard disk installed in hard disk drive. These computer program products are means for providing software to the computer system. The computer readable medium allows the computer system to read data, instructions, messages or message packets, and other computer readable information from the computer readable medium. The computer readable medium, for example, may include non-volatile memory, such as a floppy disk, ROM, flash memory, disk drive memory, a CD-ROM, and other permanent storage. It is useful, for example, for transporting information, such as data and computer instructions, between computer systems. Computer program instructions may be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
Computer program instructions representing the block diagram and/or flowcharts herein may be loaded onto a computer, programmable data processing apparatus, or processing devices to cause a series of operations performed thereon to produce a computer implemented process. Computer programs (i.e., computer control logic) are stored in main memory and/or secondary memory. Computer programs may also be received via a communications interface. Such computer programs, when executed, enable the computer system to perform the features of the embodiments as discussed herein. In particular, the computer programs, when executed, enable the processor and/or multi-core processor to perform the features of the computer system. Such computer programs represent controllers of the computer system. A computer program product comprises a tangible storage medium readable by a computer system and storing instructions for execution by the computer system for performing a method of one or more embodiments.
Though the embodiments have been described with reference to certain versions thereof; however, other versions are possible. Therefore, the spirit and scope of the appended claims should not be limited to the description of the preferred versions contained herein.
Number | Name | Date | Kind |
---|---|---|---|
5274790 | Suzuki et al. | Dec 1993 | A |
5636354 | Lear | Jun 1997 | A |
5737569 | Nadir et al. | Apr 1998 | A |
5887183 | Agarwal et al. | Mar 1999 | A |
5918044 | Levitan et al. | Jun 1999 | A |
6557078 | Mulla et al. | Apr 2003 | B1 |
6604174 | Dean | Aug 2003 | B1 |
6931489 | Delano et al. | Aug 2005 | B2 |
7299311 | Sepeda et al. | Nov 2007 | B1 |
7937535 | Ozer et al. | May 2011 | B2 |
20030163643 | Riedlinger et al. | Aug 2003 | A1 |
20070291044 | Xu | Dec 2007 | A1 |
20090031082 | Ford | Jan 2009 | A1 |
20110078358 | Shebanow | Mar 2011 | A1 |
20120047329 | Goel et al. | Feb 2012 | A1 |
20130111141 | Kessler et al. | May 2013 | A1 |
20130179640 | Aggarwal et al. | Jul 2013 | A1 |
Entry |
---|
Zhu, Z. et al., “A Novel Hierarchical Multi-port Cache”, Proceedings of the 29th European Solid-State Circuits Conference (ESSCIRC'03), Sep. 16-18, 2003, pp. 405-408, IEEE, United States. |
Number | Date | Country | |
---|---|---|---|
20150186284 A1 | Jul 2015 | US |