Modern servers provide large compute capacity by increasing the number of cores per socket. To take advantage of this compute capacity, some workloads execute in a pipeline model where microservices run in parallel or perform serial processing on different cores. A pipeline model of execution allows flexibility to scale a particular stage or stages within the pipeline when needed to keep up with the incoming workload. In the pipeline model of execution, distribution of the workload occurs within the given number of cores for a stage and also between the different stages. Core-to-core communication can become a bottleneck that limits performance of the pipeline model.
In some implementations, a producer core obtains a copy of data from the data level 1 (L1) cache after checking the availability of a fill buffer. Since this operation requires a MISS signal from an attempt to access content from L1 cache, a copy is marked as exclusive. On the consumer side, a cache controller can issue a snoop request for which an uncore detects that a requested line is currently owned by the producer core. After completion of the snoop request, the line is marked as shared. Invalidate signals are issued by both the producer and consumer cores to access the line in the next period. Movement of content of a cache line from a producer's L1 data cache to the last level shared cache can occur in the event of a snoop request.
In a read cycle, if a core does not find the data in the L1 data cache, a MISS signal is issued, and a request for the data is sent to the next level of cache. This operation requires the availability of the fill buffer. In case it is available, fill buffers are issued, and data is brought back into fill buffers. But in the case, there are no fill buffers available, the load gets blocked, and the operation is marked as to be re-issued later.
A cache line demote (e.g., Intel® CLDEMOTE) instruction can be executed to opportunistically demote content of a cache line (e.g., 64 Bytes) into a shared last level cache. The cache line demote instruction can save the infrastructure from snooping the data to be accessed by a core in a next stage. In some cases, a snoop cycle, involving retrieving data from a previous core stage, can be skipped by use of a cache line demote instruction. The cycles saved from performing a snoop cycle can be substantial for a communications workload, where the incoming data rate is in terms of million packets per second, and the infrastructure usage and time to available of data for processing can be reduced.
The application developer strategically decides which cache line(s) will be shared by the next pipeline stage (e.g., core) and demotes content to shared cache to be processed by a stage for access by a next pipeline stage. The application developer inserts the cache line demote instruction into the application for execution on particular data. If the data is spread across multiple cache lines, e.g., if the data exceeds 64 Bytes, then the cache line demote instruction is applied multiple times for execution for each cache line. In short, the onus is on the application developer to take advantage of this instruction and to decide when to cause content to be demoted to a shared cache.
The following are examples of operation of a consumer core. After demoting data to last level cache, a snoop request is issued by an uncore to find the line in the last shared level. At 151, the thread executing on a (second) consumer core reads data from its L1 data cache corresponding to data processed by the producer core, but a cache miss occurs. At 152, the thread executing on the consumer core reads data from its L2 cache to retrieve the data processed by the producer core, but a second cache miss occurs. At 153, the thread executing on the consumer core reads data from the shared L3 cache to retrieve the data processed by the producer core. The L3 cache can be accessible by both producer and consumer cores. At 154, the data is copied to L2 cache and, at 155, the data is copied to L1 data cache. At 156, the thread executing on the consumer core processes data from the L1 data cache. Accordingly, cores can implement pipelined operations using a shared cache and cache line demote instruction. In addition, cross-core snoops are costly operations and increase latency of data processing.
However, use of a cache line demote instruction requires that a developer manually include the command into an application. In some cases, user-level applications, if not pinned to instruction cache, may result in cache line demote instruction overhead where a sibling hardware thread can concur penalty of losing cache locality in that cache data remains with a previous core and new sibling thread needs to retrieve the data. In some cases, applications such as data plane packet processing requires a memory buffer holding the pointer to the packet data to be spanned over a single cache line. In such case, multiple cache line demotion instructions are required to be issued for each cache line to pass content of the memory buffer to the next core in the pipeline.
Various embodiments provide an instruction and system that provide cache line demotion and take responsibility off of an application developer to specify cache line demotion operations for content of every cache line. Various embodiments provide a flexible specification of size of a cache (e.g., specification of a number of cache lines or associated memory addresses or memory address range) to demote to a cache or memory shared by multiple cores or processors. For example, a size of cache demoted can range from one cache line currently to a memory page or other sizes. Accordingly, for some embodiments, a software developer or application does not need to issue a cache line demotion request for each cache line of data or specify a number of cache lines data or identify the cache lines whose content is to be demoted to a shared cache. Various embodiments provide an extension to an x86 compatible CLDEMOTE instruction set architecture (ISA).
Some versions of a cache line demote instruction receive an address (e.g., 64 byte aligned) as an input and an uncore (or system agent) registers this address and opportunistically demotes content of the cache line associated with the address to a last level cache that is accessible by multiple cores. Various embodiments provide an instruction that enables a block of memory addresses to be subject to cache line demotion. For example, the cache line demote instruction can apply to a block of addresses corresponding to one or more cache lines and cause content from the cache lines to be demoted to shared last level cache.
For example, a format of a cache line demote instruction can be as follows.
Using a memory region cache demote instruction, a developer can indicate that a region of memory is subject to cache line demotion. In some cases, any modification of content in a cache line that is associated with the region of memory can cause demotion or copying of the content to a shared cache or memory. In some cases, any modification of content in a cache line that is associated with the region of memory can cause copying of the content to a shared cache or memory while retaining the content in the L1 or L2 cache. A developer can include one or more instances of the cache region demotion instruction in source code of an application to cause data stored in particular cache lines to be evicted or copied to shared cache. In some examples, a compiler could compile an application and inject machine executable versions of the cache region demotion (e.g. opcode) into an executable version of the application. In some examples, micro-operations or microcode address instructions perform the cache region monitoring and demotion to shared cache.
In some examples, eviction of contents of a cache can be based on schemes such as least recently used (LRU) and a number of cache lines subject to cache line demotion. For example, a higher number of cache lines that are least recently used and subject to cache line demotion are more likely to be evicted from the cache to shared cache or memory than a lower number of cache lines that are more recently used.
An uncore or system agent can apply memory region cache demotion to content associated with an address in a memory region that is stored in an L1 or L2 cache and identified by the cache demote instruction. In some examples, an operating system (OS) can associate the region of the cache with an addressable memory range that is to store data to be processed by a pipeline and if an application writes or stores data to the cache associated with the addressable memory range, the uncore or system agent can automatically evict or copy content of the cache associated with the addressable memory range to shared cache. In some examples, the content of the cache associated with the addressable memory range to shared cache can be marked for eviction and also copied to the shared cache.
Execution of a store instruction to a region of an L1 or L2 cache associated with a memory address region specified in a cache line demote instruction can cause the core to demote content of the cache line by execution of microcode that checks if a translation lookaside (TLB) page table entry for the memory address region indicates a cache demote is to be performed. Where the addresses are tagged, if there are any updates to the address which is tagged by the user at the time of allocation, content of the cache associated with the address can be automatically be demoted by the microcode. In other words, the core can issue a cache line demote instruction if a page table entry for the address indicates the address is subject to cache line demotion.
The memory region subject to cache line demotion can be specified at time of the memory allocation. In some examples, time of memory allocation can occur at TLB page table entry (PTE) creation. An operating system (OS) can create a PTE for the memory region and specify in the PTE that the memory region is subject to cache line demotion. For example, when a bit or bits or flag are enabled in a PTE that indicate that the memory region is subject to cache line demotion, a core can execute microcode or perform logic such that when the core detects a store to certain address associated with the cache, the core can demote or copy data from the cache to shared cache or memory. A demotion or copying of data can occur after data has been processed by an application. In some examples, an indication that the memory region is subject to cache line demotion can be written to a register.
A TLB entry can include a PTE. At time of memory allocation, a PTE can be created for a memory region. In some examples, a PTE attribute can define a memory type used to access, user/supervisor mode and many other attributes along with a physical address of a memory region (e.g., 4 KB page) referenced by the PTE. Based on application of cache demotion to a memory region, the PTE can indicate that ENB_CLDEMOTE is to be used or not used. In some examples, an OS can manage TLBs and created one or more PTEs for an application. In some examples, a page table entry in the TLB can have an attribute called ENB_CLDEMOTE (e.g., demotion is enabled for this range of memory addresses) and this attribute can be included by command of the application issuing the instruction.
The following Table 1 provides an example of a format of a page table entry based on Intel® Software Developer's Manual (SDM) 4-26 Vol. 3A.
A field ENABLE_REGION_BASED_CLDEMOTE (e.g., bit 6) can be used to indicate whether content in a cache associated with a memory address region in the PTE is to be demoted after a store request from a processor.
Table 2 depicts another example format of a portion of a page table entry. The page table entry can include at least information on a range of memory addresses for which a cache demote operation is to occur.
An uncore or system agent 210 can include or more of a memory controller, a shared cache (e.g., last level cache (LLC)), a cache coherency manager, arithmetic logic units, floating point units, core or processor interconnects, Caching/Home Agent (CHA), or bus or link controllers. In some examples, CHA of cores can be configured with a number of cache lines and associated memory addresses that are subject to cache line demotion, as described herein, and the CHA can snoop for changes to any content of a number of cache lines and associated memory addresses that are subject to cache line demotion to maintain cache or memory coherency.
System agent 210 can provide one or more of: direct memory access (DMA) engine connection, non-cached coherent master connection, data cache coherency between cores and arbitrates cache requests, or Advanced Microcontroller Bus Architecture (AMBA) capabilities.
For example, applications executed by any core can include a service, a microservice, cloud native microservice, workload, or software. Applications can be executed in a pipelined manner whereby a core executes an application and the application provides data for processing or access by another core. According to some embodiments, an application can execute on one or multiple cores or processors and the application can allocate a block of memory that is subject to cache line demotion as described herein.
Any application can perform packet processing based on one or more of Data Plane Development Kit (DPDK), Storage Performance Development Kit (SPDK), OpenDataPlane, Network Function Virtualization (NFV), software-defined networking (SDN), Evolved Packet Core (EPC), or 5G network slicing. Some example implementations of NFV are described in European Telecommunications Standards Institute (ETSI) specifications or Open Source NFV Management and Orchestration (MANO) from ETSI's Open Source Mano (OSM) group. A virtual network function (VNF) can include a service chain or sequence of virtualized tasks executed on generic configurable hardware such as firewalls, domain name system (DNS), caching or network address translation (NAT) and can run in VEEs. VNFs can be linked together as a service chain. In some examples, EPC is a 3GPP-specified core architecture at least for Long Term Evolution (LTE) access. 5G network slicing can provide for multiplexing of virtualized and independent logical networks on the same physical network infrastructure. Some applications can perform video processing or media transcoding (e.g., changing the encoding of audio, image or video files).
A virtualized execution environment (VEE) can include at least a virtual machine or a container. A virtual machine (VM) can be software that runs an operating system and one or more applications. A VM can be defined by specification, configuration files, virtual disk file, non-volatile random access memory (NVRAM) setting file, and the log file and is backed by the physical resources of a host computing platform. A VM can include an operating system (OS) or application environment that is installed on software, which imitates dedicated hardware. The end user has the same experience on a virtual machine as they would have on dedicated hardware. Specialized software, called a hypervisor, emulates the PC client or server's CPU, memory, hard disk, network and other hardware resources completely, enabling virtual machines to share the resources. The hypervisor can emulate multiple virtual hardware platforms that are isolated from each other, allowing virtual machines to run Linux®, Windows® Server, VMware ESXi, and other operating systems on the same underlying physical host.
A container can be a software package of applications, configurations and dependencies so the applications run reliably on one computing environment to another. Containers can share an operating system installed on the server platform and run as isolated processes. A container can be a software package that contains everything the software needs to run such as system tools, libraries, and settings. Containers are not installed like traditional software programs, which allows them to be isolated from the other software and the operating system itself. The isolated nature of containers provides several benefits. First, the software in a container will run the same in different environments. For example, a container that includes PHP and MySQL can run identically on both a Linux® computer and a Windows® machine. Second, containers provide added security since the software will not affect the host operating system. While an installed application may alter system settings and modify resources, such as the Windows registry, a container can only modify settings within the container.
Memory management units (MMUs) 204-0 to 204-N can be used by respective cores 202-0 to 202-N to manage memory accesses and storage of content from memory 212 to a cache (e.g., cache 206-0 to 206-N or shared cache 208). MMUs 204-0 to 204-N can perform virtual memory management, memory protection, cache control, bus arbitration and so forth. In accordance with various embodiments, MMUs 204-0 to 204-N can access a TLB to determine whether any memory region is subject to cache line demotion. For example, where a cache line demotion instruction refers to a region of memory addresses, a MMU can tag a region of memory as subject to cache line demotion by use of a bit or flag in a page table entry for that page of memory (e.g., particular length of contiguous block of memory).
Any cache can be a direct mapped cache whereby a cache is organized into multiple sets with a single cache line per set and contents of an address of the memory block can occupy a single cache line. Any cache can be a fully-associative cache whereby a cache can be organized into a single cache set with multiple cache lines and a memory block can occupy any of the cache lines. Any cache can be a set-associative cache and can include one or more cache ways. A cache way can be associated with an address to actual data fetched from a main memory (e.g., a tag), and a data block (e.g., a cache line that contains data fetched from the main memory). Some or all of the cache lines, sets, or ways in a cache set can be subject to cache line demotion as described herein.
Memory 212 can be any type of volatile, non-volatile, or persistent memory that can store or read and provide data. Content of memory addresses associated with memory 212 can be stored in cache for processing. Content of memory addresses associated with memory 212 can be subject to cache line demotion.
At 303, a thread of the producer core can store processed data into a data cache (e.g., L1 data cache). When a producer core reads content from memory for the first time, content can be stored in a cache line in the core's cache. For example, when an application accesses a region of the memory that is subject to a cache line demotion instruction, an MMU can tag the region of memory as subject to cache line demotion by use of a bit or flag in a page table entry for a region of memory addresses. When the core next writes or updates the cache line subject to cache line demotion, the uncore can demote content from the cache line to a shared cache. In a case where the stored data is associated with a memory region subject to the cache line demotion instruction, the core can cause content in the cache, associated with a memory region subject to the cache line demotion instruction, to be demoted to L2 cache or other cache.
At 304, the producer core can cause the content to be copied to cache shared with another core, such as a consumer core. For example, the producer core can execute microcode that causes demotion of content written to cache to shared cache if the content is written to a region of the cache subject to cache line demotion based on a cache demote tag in the corresponding page table entry. Hardware (e.g., uncore) can opportunistically copy data for any address from a block or region of memory identified in the page table entry, that is subject to cache line demotion, to a shared cache.
At 351, the consumer core can read the L1 data cache and experiences a cache miss as the data is not present in the L1 data cache. At 352, the consumer core can read the L2 cache and experiences a cache miss as the data is not present in the L2 cache. At 353, the consumer core can request content from shared cache and the content can be copied to L2 cache. At 354, the content can be copied from L2 cache to L1 data cache. At 355, a thread executed by the consumer core can process the data from L1 data cache. Note that the consumer core can also act as a producer core for another core, which executes a thread to consume data generated by the producer core. Operation of the application executed by a thread of the consumer core can follow operation of the thread that executes the application on the producer core to designate a region of addresses associated with the cache for automatic demotion to shared cache.
At 404, an entry bit can be set in a page table entry to indicate a region of memory addresses are subject to cache line demotion to shared memory. Kernel space can be used to maintain the page tables entries in some examples. At 406, a thread executed by a core can read content of a cache line for processing. At 408, a determination can made if the core read content of the cache line for the first time. If the core reads the content of the cache line for the first time, the process can return to 404. However, if the core is not reading the content of the cache line for the first time, the process can proceed to 410.
At 410, a determination can be made if content of a cache line is updated and the cache line is subject to cache line demotion. For example, the cache line can be subject to cache line demotion if a CLDEMOTE instruction is used or a cache line demotion for a memory region is applied. If the content of the cache line is updated, the process proceeds to 412. If the content of the cache line is not updated, the process proceeds to 406. At 412, content of the cache line that is updated can be copied to shared cache for access by another core or processor. In other examples, the content of the cache line can be copied to a memory device for access by another core or processor.
In one example, system 500 includes interface 512 coupled to processor 510, which can represent a higher speed interface or a high throughput interface for system components that uses higher bandwidth connections, such as memory subsystem 520 or graphics interface components 540, or accelerators 542. Interface 512 represents an interface circuit, which can be a standalone component or integrated onto a processor die. Where present, graphics interface 540 interfaces to graphics components for providing a visual display to a user of system 500. In one example, graphics interface 540 can drive a high definition (HD) display that provides an output to a user. High definition can refer to a display having a pixel density of approximately 100 PPI (pixels per inch) or greater and can include formats such as full HD (e.g., 1080p), retina displays, 4K (ultra-high definition or UHD), or others. In one example, the display can include a touchscreen display. In one example, graphics interface 540 generates a display based on data stored in memory 530 or based on operations executed by processor 510 or both. In one example, graphics interface 540 generates a display based on data stored in memory 530 or based on operations executed by processor 510 or both.
Accelerators 542 can be fixed function and/or programmable offload engines that can be accessed or used by a processor 510. For example, an accelerator among accelerators 542 can provide compression (DC) capability, cryptography services such as public key encryption (PKE), cipher, hash/authentication capabilities, decryption, or other capabilities or services. In some embodiments, in addition or alternatively, an accelerator among accelerators 542 provides field select controller capabilities as described herein. In some cases, accelerators 542 can be integrated into a CPU socket (e.g., a connector to a motherboard or circuit board that includes a CPU and provides an electrical interface with the CPU). For example, accelerators 542 can include a single or multi-core processor, graphics processing unit, logical execution unit single or multi-level cache, functional units usable to independently execute programs or threads, application specific integrated circuits (ASICs), neural network processors (NNPs), programmable control logic, and programmable processing elements such as field programmable gate arrays (FPGAs).
Accelerators 542 can provide multiple neural networks, CPUs, processor cores, general purpose graphics processing units, or graphics processing units can be made available for use by artificial intelligence (AI) or machine learning (ML) models. For example, the AI model can use or include any or a combination of: a reinforcement learning scheme, Q-learning scheme, deep-Q learning, or Asynchronous Advantage Actor-Critic (A3C), combinatorial neural network, recurrent combinatorial neural network, or other AI or ML model. Multiple neural networks, processor cores, or graphics processing units can be made available for use by AI or ML models.
Memory subsystem 520 represents the main memory of system 500 and provides storage for code to be executed by processor 510, or data values to be used in executing a routine. Memory subsystem 520 can include one or more memory devices 530 such as read-only memory (ROM), flash memory, one or more varieties of random access memory (RAM) such as DRAM, or other memory devices, or a combination of such devices. Memory 530 stores and hosts, among other things, operating system (OS) 532 to provide a software platform for execution of instructions in system 500. Additionally, applications 534 can execute on the software platform of OS 532 from memory 530. Applications 534 represent programs that have their own operational logic to perform execution of one or more functions. Processes 536 represent agents or routines that provide auxiliary functions to OS 532 or one or more applications 534 or a combination. OS 532, applications 534, and processes 536 provide software logic to provide functions for system 500. In one example, memory subsystem 520 includes memory controller 522, which is a memory controller to generate and issue commands to memory 530. It can be understood that memory controller 522 could be a physical part of processor 510 or a physical part of interface 512. For example, memory controller 522 can be an integrated memory controller, integrated onto a circuit with processor 510.
While not specifically illustrated, it can be understood that system 500 can include one or more buses or bus systems between devices, such as a memory bus, a graphics bus, interface buses, or others. Buses or other signal lines can communicatively or electrically couple components together, or both communicatively and electrically couple the components. Buses can include physical communication lines, point-to-point connections, bridges, adapters, controllers, or other circuitry or a combination. Buses can include, for example, one or more of a system bus, a Peripheral Component Interconnect (PCI) bus, a Hyper Transport or industry standard architecture (ISA) bus, a small computer system interface (SCSI) bus, a universal serial bus (USB), or an Institute of Electrical and Electronics Engineers (IEEE) standard 1394 bus (Firewire).
In one example, system 500 includes interface 514, which can be coupled to interface 512. In one example, interface 514 represents an interface circuit, which can include standalone components and integrated circuitry. In one example, multiple user interface components or peripheral components, or both, couple to interface 514. Network interface 550 provides system 500 the ability to communicate with remote devices (e.g., servers or other computing devices) over one or more networks. Network interface 550 can include an Ethernet adapter, wireless interconnection components, cellular network interconnection components, USB (universal serial bus), or other wired or wireless standards-based or proprietary interfaces. Network interface 550 can transmit data to a device that is in the same data center or rack or a remote device, which can include sending data stored in memory. Network interface 550 can receive data from a remote device, which can include storing received data into memory. Various embodiments can be used in connection with network interface 550, processor 510, and memory subsystem 520.
In one example, system 500 includes one or more input/output (I/O) interface(s) 560. I/O interface 560 can include one or more interface components through which a user interacts with system 500 (e.g., audio, alphanumeric, tactile/touch, or other interfacing). Peripheral interface 570 can include any hardware interface not specifically mentioned above. Peripherals refer generally to devices that connect dependently to system 500. A dependent connection is one where system 500 provides the software platform or hardware platform or both on which operation executes, and with which a user interacts.
In one example, system 500 includes storage subsystem 580 to store data in a nonvolatile manner. In one example, in certain system implementations, at least certain components of storage 580 can overlap with components of memory subsystem 520. Storage subsystem 580 includes storage device(s) 584, which can be or include any conventional medium for storing large amounts of data in a nonvolatile manner, such as one or more magnetic, solid state, or optical based disks, or a combination. Storage 584 holds code or instructions and data 586 in a persistent state (e.g., the value is retained despite interruption of power to system 500). Storage 584 can be generically considered to be a “memory,” although memory 530 is typically the executing or operating memory to provide instructions to processor 510. Whereas storage 584 is nonvolatile, memory 530 can include volatile memory (e.g., the value or state of the data is indeterminate if power is interrupted to system 500). In one example, storage subsystem 580 includes controller 582 to interface with storage 584. In one example controller 582 is a physical part of interface 514 or processor 510 or can include circuits or logic in both processor 510 and interface 514.
A volatile memory is memory whose state (and therefore the data stored in it) is indeterminate if power is interrupted to the device. Dynamic volatile memory requires refreshing the data stored in the device to maintain state. One example of dynamic volatile memory incudes DRAM (Dynamic Random Access Memory), or some variant such as Synchronous DRAM (SDRAM). Another example of volatile memory includes cache or static random access memory (SRAM). A memory subsystem as described herein may be compatible with a number of memory technologies, such as DDR3 (Double Data Rate version 3, original release by JEDEC (Joint Electronic Device Engineering Council) on Jun. 27, 2007). DDR4 (DDR version 4, initial specification published in September 2012 by JEDEC), DDR4E (DDR version 4), LPDDR3 (Low Power DDR version 3, JESD209-3B, August 2013 by JEDEC), LPDDR4) LPDDR version 4, JESD209-4, originally published by JEDEC in August 2014), WIO2 (Wide Input/output version 2, JESD229-2 originally published by JEDEC in August 2014, HBM (High Bandwidth Memory, JESD325, originally published by JEDEC in October 2013, LPDDR5 (currently in discussion by JEDEC), HBM2 (HBM version 2), currently in discussion by JEDEC, or others or combinations of memory technologies, and technologies based on derivatives or extensions of such specifications.
A non-volatile memory (NVM) device is a memory whose state is determinate even if power is interrupted to the device. In one embodiment, the NVM device can comprise a block addressable memory device, such as NAND technologies, or more specifically, multi-threshold level NAND flash memory (for example, Single-Level Cell (“SLC”), Multi-Level Cell (“MLC”), Quad-Level Cell (“QLC”), Tri-Level Cell (“TLC”), or some other NAND). A NVM device can also comprise a byte-addressable write-in-place three dimensional cross point memory device, or other byte addressable write-in-place NVM device (also referred to as persistent memory), such as single or multi-level Phase Change Memory (PCM) or phase change memory with a switch (PCMS), NVM devices that use chalcogenide phase change material (for example, chalcogenide glass), resistive memory including metal oxide base, oxygen vacancy base and Conductive Bridge Random Access Memory (CB-RAM), nanowire memory, ferroelectric random access memory (FeRAM, FRAM), magneto resistive random access memory (MRAM) that incorporates memristor technology, spin transfer torque (STT)-MRAM, a spintronic magnetic junction memory based device, a magnetic tunneling junction (MTJ) based device, a DW (Domain Wall) and SOT (Spin Orbit Transfer) based device, a thyristor based memory device, or a combination of any of the above, or other memory.
A power source (not depicted) provides power to the components of system 500. More specifically, power source typically interfaces to one or multiple power supplies in system 500 to provide power to the components of system 500. In one example, the power supply includes an AC to DC (alternating current to direct current) adapter to plug into a wall outlet. Such AC power can be renewable energy (e.g., solar power) power source. In one example, power source includes a DC power source, such as an external AC to DC converter. In one example, power source or power supply includes wireless charging hardware to charge via proximity to a charging field. In one example, power source can include an internal battery, alternating current supply, motion-based power supply, solar power supply, or fuel cell source.
In an example, system 500 can be implemented using interconnected compute sleds of processors, memories, storages, network interfaces, and other components. High speed interconnects can be used such as: Ethernet (IEEE 802.3), remote direct memory access (RDMA), InfiniBand, Internet Wide Area RDMA Protocol (iWARP), Transmission Control Protocol (TCP), User Datagram Protocol (UDP), quick UDP Internet Connections (QUIC), RDMA over Converged Ethernet (RoCE), Peripheral Component Interconnect express (PCIe), Intel QuickPath Interconnect (QPI), Intel Ultra Path Interconnect (UPI), Intel On-Chip System Fabric (IOSF), Omnipath, Compute Express Link (CXL), HyperTransport, high-speed fabric, NVLink, Advanced Microcontroller Bus Architecture (AMBA) interconnect, OpenCAPI, Gen-Z, Cache Coherent Interconnect for Accelerators (CCIX), Infinity Fabric (IF), 3GPP Long Term Evolution (LTE) (4G), 3GPP 5G, and variations thereof. Data can be copied or stored to virtualized storage nodes using a protocol such as NVMe over Fabrics (NVMe-oF) or NVMe.
Embodiments herein may be implemented in various types of computing and networking equipment, such as switches, routers, racks, and blade servers such as those employed in a data center and/or server farm environment. The servers used in data centers and server farms comprise arrayed server configurations such as rack-based servers or blade servers. These servers are interconnected in communication via various network provisions, such as partitioning sets of servers into Local Area Networks (LANs) with appropriate switching and routing facilities between the LANs to form a private Intranet. For example, cloud hosting facilities may typically employ large data centers with a multitude of servers. A blade comprises a separate computing platform that is configured to perform server-type functions, that is, a “server on a card.” Accordingly, each blade includes components common to conventional servers, including a main printed circuit board (main board) providing internal wiring (e.g., buses) for coupling appropriate integrated circuits (ICs) and other components mounted to the board.
Multiple of the computing racks 602 may be interconnected via their ToR switches 604 (e.g., to a pod-level switch or data center switch), as illustrated by connections to a network 620. In some embodiments, groups of computing racks 602 are managed as separate pods via pod manager(s) 606. In one embodiment, a single pod manager is used to manage all of the racks in the pod. Alternatively, distributed pod managers may be used for pod management operations.
Environment 600 further includes a management interface 622 that is used to manage various aspects of the environment. This includes managing rack configuration, with corresponding parameters stored as rack configuration data 624.
In some examples, embodiments described herein can be used in connection with a base station (e.g., 3G, 4G, 5G and so forth), macro base station (e.g., 5G networks), picostation (e.g., an IEEE 802.11 compatible access point), nanostation (e.g., for Point-to-MultiPoint (PtMP) applications), on-premises data centers, off-premises data centers, edge network elements, fog network elements, and/or hybrid data centers (e.g., data center that use virtualization, cloud and software-defined networking to deliver application workloads across physical data centers and distributed multi-cloud environments).
For example, various embodiments can be used for wired or wireless protocols (e.g., 3GPP Long Term Evolution (LTE) (4G) or 3GPP 5G), on-premises data centers, off-premises data centers, base station devices, sensor data sender or receiver devices (e.g., for autonomous vehicles or augmented reality applications), endpoint devices, servers, routers, edge network elements (computing elements provided physically closer to a base station or network access point than a data center), fog network elements (computing elements provided physically closer to a base station or network access point than a data center but further from an edge network), and/or hybrid data centers (e.g., data center that use virtualization, cloud and software-defined networking to deliver application workloads across physical data centers and distributed multi-cloud environments). Network or computing elements can be used in local area network (LAN), metropolitan area network (MAN), network with devices connected using optical fiber links, campus area network (CAN), or wide area network (WAN).
Exemplary Instruction Format
The prefix(es) field(s) 701, when used, modifies an instruction. In some embodiments, one or more prefixes are used to repeat string instructions (e.g., 0xF0, 0xF2, 0xF3, etc.), to provide section overrides (e.g., 0x2E, 0x36, 0x3E, 0x26, 0x64, 0x65, 0x2E, 0x3E, etc.), to perform bus lock operations, and/or to change operand (e.g., 0x66) and address sizes (e.g., 0x67). Certain instructions require a mandatory prefix (e.g., 0x66, 0xF2, 0xF3, etc.). Certain of these prefixes may be considered “legacy” prefixes. Other prefixes, one or more examples of which are detailed herein, indicate, and/or provide further capability, such as specifying particular registers, etc. The other prefixes typically follow the “legacy” prefixes.
The opcode field 703 is used to at least partially define the operation to be performed upon a decoding of the instruction. In some embodiments, a primary opcode encoded in the opcode field 703 is 1, 2, or 3 bytes in length. In other embodiments, a primary opcode can be a different length. An additional 3-bit opcode field is sometimes encoded in another field.
The addressing field 705 is used to address one or more operands of the instruction, such as a location in memory or one or more registers.
The content of the MOD field 842 distinguishes between memory access and non-memory access modes. In some embodiments, when the MOD field 842 has a value of b11, a register-direct addressing mode is utilized, and otherwise register-indirect addressing is used.
The register field 844 may encode either the destination register operand or a source register operand, or may encode an opcode extension and not be used to encode any instruction operand. The content of register index field 844, directly or through address generation, specifies the locations of a source or destination operand (either in a register or in memory). In some embodiments, the register field 844 is supplemented with an additional bit from a prefix (e.g., prefix 701) to allow for greater addressing.
The R/M field 846 may be used to encode an instruction operand that references a memory address, or may be used to encode either the destination register operand or a source register operand. Note the R/M field 846 may be combined with the MOD field 842 to dictate an addressing mode in some embodiments.
The SIB byte 804 includes a scale field 852, an index field 854, and a base field 856 to be used in the generation of an address. The scale field 852 indicates scaling factor. The index field 854 specifies an index register to use. In some embodiments, the index field 854 is supplemented with an additional bit from a prefix (e.g., prefix 701) to allow for greater addressing. The base field 856 specifies a base register to use. In some embodiments, the base field 856 is supplemented with an additional bit from a prefix (e.g., prefix 701) to allow for greater addressing. In practice, the content of the scale field 852 allows for the scaling of the content of the index field 854 for memory address generation (e.g., for address generation that uses 2scale*index+base).
Some addressing forms utilize a displacement value to generate a memory address. For example, a memory address may be generated according to 2scale*index+base+displacement, index*scale+displacement, r/m+displacement, instruction pointer (RIP/EIP)+displacement, register+displacement, etc. The displacement may be a 1-byte, 2-byte, 4-byte, etc. value. In some embodiments, a displacement field 707 provides this value. Additionally, in some embodiments, a displacement factor usage is encoded in the MOD field of the addressing field 705 that indicates a compressed displacement scheme for which a displacement value is calculated by multiplying disp8 in conjunction with a scaling factor N that is determined based on the vector length, the value of a b bit, and the input element size of the instruction. The displacement value is stored in the displacement field 707.
In some embodiments, an immediate field 709 specifies an immediate for the instruction. An immediate may be encoded as a 1-byte value, a 2-byte value, a 4-byte value, etc.
Various embodiments of the ENB_CLDEMOTE instruction include one or more of the fields detailed above. For example, ENB_CLDEMOTE can be represented by a mnemonic of the opcode encoded in opcode field 703. The ENB_CLDEMOTE instruction may also include a prefix 701 to further modify the instruction (e.g., dictate operand sizes, etc.).
The address (e.g., discussed as [addr] above) is provided by addressing field(s) 705. The address may be stored in a register (such as a register identified by REG 844), provided using one or more of SIB addressing (e.g., using SIB byte 804), the R/M field 846, the displacement field 707, etc.
Manners of providing depth may also vary by embodiment. For example, the depth may be stored in a register (e.g., as indicated by REG 844 or R/M 846) or directly encoded using the immediate field 709.
The table below provides examples of where the address and depth are located or referenced.
Exemplary Register Architecture
Write mask registers 915—in the embodiment illustrated, there are 8 write mask registers (k0 through k7), each 64 bits in size. In an alternate embodiment, the write mask registers 915 are 16 bits in size. As previously described, in some embodiments, the vector mask register k0 cannot be used as a write mask; when the encoding that would normally indicate k0 is used for a write mask, it selects a hardwired write mask of 0xffff, effectively disabling write masking for that instruction.
General-purpose registers 925—in the embodiment illustrated, there are sixteen 64-bit general-purpose registers that are used along with the existing x86 addressing modes to address memory operands. These registers are referenced by the names RAX, RBX, RCX, RDX, RBP, RSI, RDI, RSP, and R8 through R15.
Scalar floating-point stack register file (x87 stack) 945, on which is aliased the MMX packed integer flat register file 950—in the embodiment illustrated, the x87 stack is an eight-element stack used to perform scalar floating-point operations on 32/64/80-bit floating-point data using the x87 instruction set extension; while the MMX registers are used to perform operations on 64-bit packed integer data, as well as to hold operands for some operations performed between the MMX and XMM registers.
Alternative embodiments may use wider or narrower registers. Additionally, alternative embodiments may use more, less, or different register files and registers.
Exemplary Core Architectures, Processors, and Computer Architectures
Processor cores may be implemented in different ways, for different purposes, and in different processors. For instance, implementations of such cores may include: 1) a general purpose in-order core intended for general-purpose computing; 2) a high performance general purpose out-of-order core intended for general-purpose computing; 3) a special purpose core intended primarily for graphics and/or scientific (throughput) computing. Implementations of different processors may include: 1) a CPU including one or more general purpose in-order cores intended for general-purpose computing and/or one or more general purpose out-of-order cores intended for general-purpose computing; and 2) a coprocessor including one or more special purpose cores intended primarily for graphics and/or scientific (throughput). Such different processors lead to different computer system architectures, which may include: 1) the coprocessor on a separate chip from the CPU; 2) the coprocessor on a separate die in the same package as a CPU; 3) the coprocessor on the same die as a CPU (in which case, such a coprocessor is sometimes referred to as special purpose logic, such as integrated graphics and/or scientific (throughput) logic, or as special purpose cores); and 4) a system on a chip that may include on the same die the described CPU (sometimes referred to as the application core(s) or application processor(s)), the above described coprocessor, and additional functionality. Exemplary core architectures are described next, followed by descriptions of exemplary processors and computer architectures.
Exemplary Core Architectures
In-Order and Out-of-Order Core Block Diagram
In
The front end unit 1030 includes a branch prediction unit 1032 coupled to an instruction cache unit 1034, which is coupled to an instruction translation lookaside buffer (TLB) 1036, which is coupled to an instruction fetch unit 1038, which is coupled to a decode unit 1040. The decode unit 1040 (or decoder) may decode instructions, and generate as an output one or more micro-operations, micro-code entry points, microinstructions, other instructions, or other control signals, which are decoded from, or which otherwise reflect, or are derived from, the original instructions. The decode unit 1040 may be implemented using various different mechanisms. Examples of suitable mechanisms include, but are not limited to, look-up tables, hardware implementations, programmable logic arrays (PLAs), microcode read only memories (ROMs), etc. In one embodiment, the core 1090 includes a microcode ROM or other medium that stores microcode for certain macroinstructions (e.g., in decode unit 1040 or otherwise within the front end unit 1030). The decode unit 1040 is coupled to a rename/allocator unit 1052 in the execution engine unit 1050.
The execution engine unit 1050 includes the rename/allocator unit 1052 coupled to a retirement unit 1054 and a set of one or more scheduler unit(s) 1056. The scheduler unit(s) 1056 represents any number of different schedulers, including reservations stations, central instruction window, etc. The scheduler unit(s) 1056 is coupled to the physical register file(s) unit(s) 1058. Each of the physical register file(s) units 1058 represents one or more physical register files, different ones of which store one or more different data types, such as scalar integer, scalar floating-point, packed integer, packed floating-point, vector integer, vector floating-point, status (e.g., an instruction pointer that is the address of the next instruction to be executed), etc. In one embodiment, the physical register file(s) unit 1058 comprises a vector registers unit, a write mask registers unit, and a scalar registers unit. These register units may provide architectural vector registers, vector mask registers, and general purpose registers. The physical register file(s) unit(s) 1058 is overlapped by the retirement unit 1054 to illustrate various ways in which register renaming and out-of-order execution may be implemented (e.g., using a reorder buffer(s) and a retirement register file(s); using a future file(s), a history buffer(s), and a retirement register file(s); using a register maps and a pool of registers; etc.). The retirement unit 1054 and the physical register file(s) unit(s) 1058 are coupled to the execution cluster(s) 1060. The execution cluster(s) 1060 includes a set of one or more execution units 1062 and a set of one or more memory access units 1064. The execution units 1062 may perform various operations (e.g., shifts, addition, subtraction, multiplication) and on various types of data (e.g., scalar floating-point, packed integer, packed floating-point, vector integer, vector floating-point). While some embodiments may include a number of execution units dedicated to specific functions or sets of functions, other embodiments may include only one execution unit or multiple execution units that all perform all functions. The scheduler unit(s) 1056, physical register file(s) unit(s) 1058, and execution cluster(s) 1060 are shown as being possibly plural because certain embodiments create separate pipelines for certain types of data/operations (e.g., a scalar integer pipeline, a scalar floating-point/packed integer/packed floating-point/vector integer/vector floating-point pipeline, and/or a memory access pipeline that each have their own scheduler unit, physical register file(s) unit, and/or execution cluster—and in the case of a separate memory access pipeline, certain embodiments are implemented in which only the execution cluster of this pipeline has the memory access unit(s) 1064). It should also be understood that where separate pipelines are used, one or more of these pipelines may be out-of-order issue/execution and the rest in-order.
The set of memory access units 1064 is coupled to the memory unit 1070, which includes a data TLB unit 1072 coupled to a data cache unit 1074 coupled to a level 2 (L2) cache unit 1076. In one exemplary embodiment, the memory access units 1064 may include a load unit, a store address unit, and a store data unit, each of which is coupled to the data TLB unit 1072 in the memory unit 1070. The instruction cache unit 1034 is further coupled to a level 2 (L2) cache unit 1076 in the memory unit 1070. The L2 cache unit 1076 is coupled to one or more other levels of cache and eventually to a main memory.
By way of example, the exemplary register renaming, out-of-order issue/execution core architecture may implement the pipeline 1000 as follows: 1) the instruction fetch 1038 performs the fetch and length decoding stages 1002 and 1004; 2) the decode unit 1040 performs the decode stage 1006; 3) the rename/allocator unit 1052 performs the allocation stage 1008 and renaming stage 1010; 4) the scheduler unit(s) 1056 performs the schedule stage 1012; 5) the physical register file(s) unit(s) 1058 and the memory unit 1070 perform the register read/memory read stage 1014; the execution cluster 1060 perform the execute stage 1016; 6) the memory unit 1070 and the physical register file(s) unit(s) 1058 perform the write back/memory write stage 1018; 7) various units may be involved in the exception handling stage 1022; and 8) the retirement unit 1054 and the physical register file(s) unit(s) 1058 perform the commit stage 1024.
The core 1090 may support one or more instructions sets (e.g., the x86 instruction set (with some extensions that have been added with newer versions); the MIPS instruction set of MIPS Technologies of Sunnyvale, CA; the ARM instruction set (with optional additional extensions such as NEON) of ARM Holdings of Sunnyvale, CA), including the instruction(s) described herein. In one embodiment, the core 1090 includes logic to support a packed data instruction set extension (e.g., AVX1, AVX2), thereby allowing the operations used by many multimedia applications to be performed using packed data.
It should be understood that the core may support multithreading (executing two or more parallel sets of operations or threads), and may do so in a variety of ways including time sliced multithreading, simultaneous multithreading (where a single physical core provides a logical core for each of the threads that physical core is simultaneously multithreading), or a combination thereof (e.g., time sliced fetching and decoding and simultaneous multithreading thereafter such as in the Intel® Hyperthreading technology).
While register renaming is described in the context of out-of-order execution, it should be understood that register renaming may be used in an in-order architecture. While the illustrated embodiment of the processor also includes separate instruction and data cache units 1034/1074 and a shared L2 cache unit 1076, alternative embodiments may have a single internal cache for both instructions and data, such as, for example, a Level 1 (L1) internal cache, or multiple levels of internal cache. In some embodiments, the system may include a combination of an internal cache and an external cache that is external to the core and/or the processor. Alternatively, all of the cache may be external to the core and/or the processor.
Specific Exemplary In-Order Core Architecture
The local subset of the L2 cache 1104 is part of a global L2 cache that is divided into separate local subsets, one per processor core. Each processor core has a direct access path to its own local subset of the L2 cache 1104. Data read by a processor core is stored in its L2 cache subset 1104 and can be accessed quickly, in parallel with other processor cores accessing their own local L2 cache subsets. Data written by a processor core is stored in its own L2 cache subset 1104 and is flushed from other subsets, if necessary. The ring network ensures coherency for shared data. The ring network is bi-directional to allow agents such as processor cores, L2 caches and other logic blocks to communicate with each other within the chip. Each ring data-path is 1012-bits wide per direction.
Thus, different implementations of the processor 1200 may include: 1) a CPU with the special purpose logic 1208 being integrated graphics and/or scientific (throughput) logic (which may include one or more cores), and the cores 1202A-N being one or more general purpose cores (e.g., general purpose in-order cores, general purpose out-of-order cores, a combination of the two); 2) a coprocessor with the cores 1202A-N being a large number of special purpose cores intended primarily for graphics and/or scientific (throughput); and 3) a coprocessor with the cores 1202A-N being a large number of general purpose in-order cores. Thus, the processor 1200 may be a general-purpose processor, coprocessor or special-purpose processor, such as, for example, a network or communication processor, compression engine, graphics processor, GPGPU (general purpose graphics processing unit), a high-throughput many integrated core (MIC) coprocessor (including 30 or more cores), embedded processor, or the like. The processor may be implemented on one or more chips. The processor 1200 may be a part of and/or may be implemented on one or more substrates using any of a number of process technologies, such as, for example, BiCMOS, CMOS, or NMOS.
The memory hierarchy includes one or more levels of cache within the cores, a set of one or more shared cache units 1206, and external memory (not shown) coupled to the set of integrated memory controller units 1214. The set of shared cache units 1206 may include one or more mid-level caches, such as level 2 (L2), level 3 (L3), level 4 (L4), or other levels of cache, a last level cache (LLC), and/or combinations thereof. While in one embodiment a ring based interconnect unit 1212 interconnects the integrated graphics logic 1208 (integrated graphics logic 1208 is an example of and is also referred to herein as special purpose logic), the set of shared cache units 1206, and the system agent unit 1210/integrated memory controller unit(s) 1214, alternative embodiments may use any number of well-known techniques for interconnecting such units. In one embodiment, coherency is maintained between one or more cache units 1206 and cores 1202-A-N.
In some embodiments, one or more of the cores 1202A-N are capable of multithreading. The system agent 1210 includes those components coordinating and operating cores 1202A-N. The system agent unit 1210 may include for example a power control unit (PCU) and a display unit. The PCU may be or include logic and components needed for regulating the power state of the cores 1202A-N and the integrated graphics logic 1208. The display unit is for driving one or more externally connected displays.
The cores 1202A-N may be homogenous or heterogeneous in terms of architecture instruction set; that is, two or more of the cores 1202A-N may be capable of execution the same instruction set, while others may be capable of executing only a subset of that instruction set or a different instruction set.
Exemplary Computer Architectures
Referring now to
The optional nature of additional processors 1315 is denoted in
The memory 1340 may be, for example, dynamic random access memory (DRAM), phase change memory (PCM), or a combination of the two. For at least one embodiment, the controller hub 1320 communicates with the processor(s) 1310, 1315 via a multi-drop bus, such as a frontside bus (FSB), point-to-point interface such as QuickPath Interconnect (QPI), or similar connection 1395.
In one embodiment, the coprocessor 1345 is a special-purpose processor, such as, for example, a high-throughput MIC processor, a network or communication processor, compression engine, graphics processor, GPGPU, embedded processor, or the like. In one embodiment, controller hub 1320 may include an integrated graphics accelerator.
There can be a variety of differences between the physical resources 1310, 1315 in terms of a spectrum of metrics of merit including architectural, microarchitectural, thermal, power consumption characteristics, and the like.
In one embodiment, the processor 1310 executes instructions that control data processing operations of a general type. Embedded within the instructions may be coprocessor instructions. The processor 1310 recognizes these coprocessor instructions as being of a type that should be executed by the attached coprocessor 1345. Accordingly, the processor 1310 issues these coprocessor instructions (or control signals representing coprocessor instructions) on a coprocessor bus or other interconnect, to coprocessor 1345. Coprocessor(s) 1345 accept and execute the received coprocessor instructions.
Referring now to
Processors 1470 and 1480 are shown including integrated memory controller (IMC) units 1472 and 1482, respectively. Processor 1470 also includes as part of its bus controller units point-to-point (P-P) interfaces 1476 and 1478; similarly, second processor 1480 includes P-P interface circuits 1486 and 1488. Processors 1470, 1480 may exchange information via a point-to-point (P-P) interface 1450 using P-P interface circuits 1478, 1488. As shown in
Processors 1470, 1480 may each exchange information with a chipset 1490 via individual P-P interfaces 1452, 1454 using point to point interface circuits 1476, 1494, 1486, 1498. Chipset 1490 may optionally exchange information with the coprocessor 1438 via a high-performance interface 1492. In one embodiment, the coprocessor 1438 is a special-purpose processor, such as, for example, a high-throughput MIC processor, a network or communication processor, compression engine, graphics processor, GPGPU, embedded processor, or the like.
A shared cache (not shown) may be included in either processor or outside of both processors yet connected with the processors via P-P interconnect, such that either or both processors' local cache information may be stored in the shared cache if a processor is placed into a low power mode.
Chipset 1490 may be coupled to a first bus 1416 via an interface 1496. In one embodiment, first bus 1416 may be a Peripheral Component Interconnect (PCI) bus, or a bus such as a PCI Express bus or another third generation I/O interconnect bus, although the scope of the present invention is not so limited.
As shown in
Referring now to
Referring now to
Emulation (Including Binary Translation, Code Morphing, Etc.)
In some cases, an instruction converter may be used to convert an instruction from a source instruction set to a target instruction set. For example, the instruction converter may translate (e.g., using static binary translation, dynamic binary translation including dynamic compilation), morph, emulate, or otherwise convert an instruction to one or more other instructions to be processed by the core. The instruction converter may be implemented in software, hardware, firmware, or a combination thereof. The instruction converter may be on processor, off processor, or part on and part off processor.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of such implementation approaches. Embodiments of the invention may be implemented as computer programs or program code executing on programmable systems comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code, such as code 1430 illustrated in
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. The program code may also be implemented in assembly or machine language, if desired. In fact, the mechanisms described herein are not limited in scope to any particular programming language. In any case, the language may be a compiled or interpreted language.
Accordingly, embodiments of the invention also include non-transitory, tangible machine-readable media containing instructions or containing design data, such as Hardware Description Language (HDL), which defines structures, circuits, apparatuses, processors and/or system features described herein. Such embodiments may also be referred to as program products.
Various examples include a non-transitory machine-readable medium (e.g., operating system or microcode) to store code which when processed is to cause a method to be performed, the method comprising: receiving a single instruction having a first instruction format, wherein the single instruction having the first instruction format includes a field to identify an opcode which is to indicate to execution circuitry to perform demotion of cache lines or copying of identified multiple cache lines to a shared cache or memory and translating the single instruction having the first instruction format into at least one instruction having a second, different instruction format.
Various embodiments include any example, wherein the method further comprises: decoding the at least one instruction having the second, different instruction format; and executing the decoded at least one instruction having the second, different instruction format to perform demotion of cache lines or copying of identified multiple cache lines to a shared cache or memory as indicated by the opcode of the single instruction having the first instruction format.
Various embodiments include any example, and include a method comprising: receiving a single instruction having a first instruction format, wherein the instruction having the first instruction format includes a field to identify an opcode which is to indicate to execution circuitry to perform demotion of cache lines or copying of identified multiple cache lines to a shared cache or memory and translating the single instruction having the first instruction format into at least one instruction having a second, different instruction format.
Various embodiments include any example, and include decoding the at least one instruction having the second, different instruction format; and executing the decoded at least one instruction having the second, different instruction format to perform demotion of cache lines or copying of identified multiple cache lines to a shared cache or memory as indicated by the opcode of the single instruction having the first instruction format.
Various embodiments include any example, and include an apparatus comprising: a translator to translate a single instruction having a first instruction format into at least one instruction having a second, different instruction format, wherein the single instruction having the first instruction format includes a field to identify an opcode which is to indicate to execution circuitry to perform demotion of cache lines or copying of identified multiple cache lines to a shared cache or memory; decode circuitry to decode the at least one instruction having the second, different instruction format; and execution circuitry to execute the decoded at least one instruction having the second, different instruction format to perform demotion of cache lines or copying of identified multiple cache lines to a shared cache or memory as indicated by the opcode of the single instruction having the first instruction format.
Various embodiments include any example, wherein the translator is a binary translator.
Various embodiments include any example, wherein the binary translator that is a part of an operating system.
Various embodiments include any example, wherein the binary translator comprises software to be executed by a processor core.
Various embodiments include any example, wherein the binary translator comprises one or more circuits to perform the translation.
Various embodiments include any example, wherein the binary translator comprises a finite state machine.
Various embodiments include any example, wherein the first instruction format is unsupported by decode circuitry.
Various examples may be implemented using hardware elements, software elements, or a combination of both. In some examples, hardware elements may include devices, components, processors, microprocessors, circuits, circuit elements (e.g., transistors, resistors, capacitors, inductors, and so forth), integrated circuits, ASICs, PLDs, DSPs, FPGAs, memory units, logic gates, registers, semiconductor device, chips, microchips, chip sets, and so forth. In some examples, software elements may include software components, programs, applications, computer programs, application programs, system programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, procedures, software interfaces, APIs, instruction sets, computing code, computer code, code segments, computer code segments, words, values, symbols, or any combination thereof. Determining whether an example is implemented using hardware elements and/or software elements may vary in accordance with any number of factors, such as desired computational rate, power levels, heat tolerances, processing cycle budget, input data rates, output data rates, memory resources, data bus speeds and other design or performance constraints, as desired for a given implementation. A processor can be one or more combination of a hardware state machine, digital control logic, central processing unit, or any hardware, firmware and/or software elements.
Some examples may be implemented using or as an article of manufacture or at least one computer-readable medium. A computer-readable medium may include a non-transitory storage medium to store logic. In some examples, the non-transitory storage medium may include one or more types of computer-readable storage media capable of storing electronic data, including volatile memory or non-volatile memory, removable or non-removable memory, erasable or non-erasable memory, writeable or re-writeable memory, and so forth. In some examples, the logic may include various software elements, such as software components, programs, applications, computer programs, application programs, system programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, procedures, software interfaces, API, instruction sets, computing code, computer code, code segments, computer code segments, words, values, symbols, or any combination thereof.
According to some examples, a computer-readable medium may include a non-transitory storage medium to store or maintain instructions that when executed by a machine, computing device or system, cause the machine, computing device or system to perform methods and/or operations in accordance with the described examples. The instructions may include any suitable type of code, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, and the like. The instructions may be implemented according to a predefined computer language, manner or syntax, for instructing a machine, computing device or system to perform a certain function. The instructions may be implemented using any suitable high-level, low-level, object-oriented, visual, compiled and/or interpreted programming language.
One or more aspects of at least one example may be implemented by representative instructions stored on at least one machine-readable medium which represents various logic within the processor, which when read by a machine, computing device or system causes the machine, computing device or system to fabricate logic to perform the techniques described herein. Such representations, known as “IP cores” may be stored on a tangible, machine readable medium and supplied to various customers or manufacturing facilities to load into the fabrication machines that actually make the logic or processor.
The appearances of the phrase “one example” or “an example” are not necessarily all referring to the same example or embodiment. Any aspect described herein can be combined with any other aspect or similar aspect described herein, regardless of whether the aspects are described with respect to the same figure or element. Division, omission or inclusion of block functions depicted in the accompanying figures does not infer that the hardware components, circuits, software and/or elements for implementing these functions would necessarily be divided, omitted, or included in embodiments.
Some examples may be described using the expression “coupled” and “connected” along with their derivatives. These terms are not necessarily intended as synonyms for each other. For example, descriptions using the terms “connected” and/or “coupled” may indicate that two or more elements are in direct physical or electrical contact with each other. The term “coupled,” however, may also mean that two or more elements are not in direct contact with each other, but yet still co-operate or interact with each other.
The terms “first,” “second,” and the like, herein do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The terms “a” and “an” herein do not denote a limitation of quantity, but rather denote the presence of at least one of the referenced items. The term “asserted” used herein with reference to a signal denote a state of the signal, in which the signal is active, and which can be achieved by applying any logic level either logic 0 or logic 1 to the signal. The terms “follow” or “after” can refer to immediately following or following after some other event or events. Other sequences of steps may also be performed according to alternative embodiments. Furthermore, additional steps may be added or removed depending on the particular applications. Any combination of changes can be used and one of ordinary skill in the art with the benefit of this disclosure would understand the many variations, modifications, and alternative embodiments thereof.
Disjunctive language such as the phrase “at least one of X, Y, or Z,” unless specifically stated otherwise, is otherwise understood within the context as used in general to present that an item, term, etc., may be either X, Y, or Z, or any combination thereof (e.g., X, Y, and/or Z). Thus, such disjunctive language is not generally intended to, and should not, imply that certain embodiments require at least one of X, at least one of Y, or at least one of Z to each be present. Additionally, conjunctive language such as the phrase “at least one of X, Y, and Z,” unless specifically stated otherwise, should also be understood to mean X, Y, Z, or any combination thereof, including “X, Y, and/or Z.”
Illustrative examples of the devices, systems, and methods disclosed herein are provided below. An embodiment of the devices, systems, and methods may include any one or more, and any combination of, the examples described below.
Example 1 includes any example and includes a method comprising: in response to a processor caching data, associated with a region of memory addresses, into a cache and based on an indication that the region of memory addresses is associated with a cache line demote operation, demoting the data to a shared cache, wherein the region of memory addresses comprises a region corresponding to multiple cache lines.
Example 2 includes any example and includes determining that the region of memory addresses is associated with a cache line demote operation based on an indicator in a page table entry (PTE).
Example 3 includes any example and includes associating the region of memory addresses with a cache line demote based on a command in an application executed by a processor.
Example 4 includes any example, wherein the command identifies the region of memory addresses by a starting memory address and depth from the starting memory address.
Example 5 includes any example, wherein an uncore performs the demoting the data to a shared cache.
Example 6 includes any example, wherein the cache comprises an level 1 (L1) or level 2 (L2) cache.
Example 7 includes any example, wherein the shared cache comprises a cache accessible to a plurality of cores.
Example 8 includes any example, and includes accessing the data from the shared cache by a second processor, wherein the processor and second processor perform portions of a packet processing pipeline.
Example 9 includes any example, and includes a computer-readable medium, comprising instructions stored thereon, that if executed by at least one processor, cause the at least one processor to: execute an instruction to designate a region of memory that is larger than a cache line for demotion from a cache to a shared cache after any update to a portion of a cache corresponding to a memory address within the region of memory.
Example 10 includes any example, comprising instructions stored thereon, that if executed by the at least one processor, cause the at least one processor to: identify that the region of memory is associated with a cache line demote operation using an indicator in a page table entry (PTE).
Example 11 includes any example, and includes instructions stored thereon, that if executed by the at least one processor, cause the at least one processor to: associate the region of memory with a cache line demote based on a command in an application executed by a processor.
Example 12 includes any example, wherein an uncore performs demotion of data from the cache to the shared cache.
Example 13 includes any example, wherein the cache comprises an level 1 (L1) or level 2 (L2) cache.
Example 14 includes any example, wherein the shared cache comprises a cache accessible to a plurality of cores.
Example 15 includes any example, and includes an apparatus comprising: at least two processor cores; at least two caches, wherein a cache is associated with a processor core; and a shared cache accessible by the at least two processor cores, wherein a region of the cache that is larger than a cache line is designated for demotion from the cache to the shared cache.
Example 16 includes any example, wherein the cache line corresponds to a memory address in a region of memory and wherein an indication that the region of memory is associated with a cache line demote operation is provided in an indicator in a page table entry (PTE).
Example 17 includes any example, wherein the indication that the region of memory is associated with a cache line demote operation is based on a command in an application executed by a processor.
Example 18 includes any example, wherein the cache comprises an level 1 (L1) or level 2 (L2) cache.
Example 19 includes any example, and includes an uncore, wherein: a first core is to store data processed by the first core into a cache line of the cache, the cache line is designated for demotion from the cache to the shared cache, the uncore is to demote the data to the shared cache, a second core is to access the data from the shared cache, and the first and second cores are to perform packet processing in a pipeline.
Example 20 includes any example, and includes a server, rack of servers, or a datacenter, wherein one or more of the server, rack of servers, or a datacenter are to demote content of a cache to the shared cache.
Example 21 includes any example, wherein a processor core of the at least two processor cores is to execute a command in an application and wherein the command identifies a region of memory addresses that are subject to a multiple cache line demotion.
Number | Name | Date | Kind |
---|---|---|---|
10019360 | Wang et al. | Jul 2018 | B2 |
10564972 | Doshi | Feb 2020 | B1 |
10657056 | Tamir et al. | May 2020 | B2 |
20160179681 | Greenspan et al. | Jun 2016 | A1 |
20160342517 | Shum et al. | Nov 2016 | A1 |
20170116120 | Shum et al. | Apr 2017 | A1 |
20180095880 | Doshi | Apr 2018 | A1 |
20190042417 | Sukhomlinov et al. | Feb 2019 | A1 |
20190042419 | Tamir et al. | Feb 2019 | A1 |
20190102303 | Wang | Apr 2019 | A1 |
20200233664 | Wang et al. | Jul 2020 | A1 |
20200285578 | Wang et al. | Sep 2020 | A1 |
20210073129 | Shah et al. | Mar 2021 | A1 |
20210141736 | Manzanares | May 2021 | A1 |
Number | Date | Country |
---|---|---|
2016106128 | Jun 2016 | WO |
Entry |
---|
McCalpin, John, D., “Intel's future “CLDEMOTE” instruction”, https://sites.utexas.edu/jdm4372/2019/02/18/intels-future-cldemote-instruction/, Posted by John D. McCalpin, Ph.D. on Feb. 18, 2019, 3 pages. |
International Search Report and Written Opinion for PCT Patent Application No. PCT/US21/51360, Mailed Jan. 3, 2022, 10 pages. |
Number | Date | Country | |
---|---|---|---|
20210073129 A1 | Mar 2021 | US |