Processor unit resource exhaustion detection and remediation
Abstract
A performance monitor provides cache miss stall and memory bandwidth usage metric samples to a resource exhaustion detector. The detector can detect the presence of last-level cache and memory bandwidth exhaustion conditions based on the metric samples. If cache miss stalls and memory bandwidth usage are both trending up, the detector reports a memory bandwidth exhaustion condition to a resource controller. If cache miss stalls are trending up and memory bandwidth usage is trending down, the detector reports a last-level cache exhaustion condition to the resource controller. The resource controller can allocate additional last-level cache or memory bandwidth to the processor unit to remediate the resource exhaustion condition. If bandwidth-related metric samples indicate that a processor unit may be overloaded due to receiving high bandwidth traffic, the resource controller can take a traffic rebalancing remedial action.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 20 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method, comprising: detecting a resource exhaustion condition in response to: (i) determining that cache miss stalls for a processor unit executing an application are trending up based on a plurality of cache miss stall metric samples; and (ii) determining that memory bandwidth usage for the processor unit executing the application is trending up or trending down based on a plurality of memory bandwidth usage metric samples, wherein individual of the plurality of memory bandwidth usage metric samples indicate a measure of memory bandwidth used by the processor unit executing the application; and causing a remedial action to be taken in response to detecting the resource exhaustion condition.
- Claim 2Depends on #1
The method of claim 1, wherein the resource exhaustion condition is detected in response to determining that the cache miss stalls for the processor unit are trending up and determining that the memory bandwidth usage is trending up, the remedial action comprising allocating additional memory bandwidth for use by the processor unit.
- Claim 3Depends on #2
The method of claim 2, the allocating additional memory bandwidth for the processor unit comprising reallocating memory bandwidth allocated to a second processor unit to the processor unit.
- Claim 4Depends on #1
The method of claim 1, wherein the resource exhaustion condition is detected in response to determining that the cache miss stalls for the processor unit are trending up and determining that the memory bandwidth usage is trending down, the remedial action comprising allocating additional last-level cache for use by the processor unit.
- Claim 5Depends on #4
The method of claim 4, the allocating additional last-level cache for use by the processor unit comprising reallocating cache allocated to a second processor unit to the processor unit.
- Claim 6Depends on #1
The method of claim 1, wherein the processor unit is executing an application, the remedial action comprises scaling up a number of processor units executing the application.
- Claim 7Depends on #1
The method of claim 1, wherein the resource exhaustion condition is detected in further response to: (iii) determining that a ratio of a total traffic bandwidth generated by a traffic source to a memory bandwidth usage of the processor unit exceeds a traffic rebalancing threshold.
- Claim 8Depends on #7
The method of claim 7, wherein the remedial action comprises modifying one or more traffic routing rules that specify which traffic received at the traffic source is to be routed to the processor unit.
Technical Overview & Description
CROSS-REFERENCES TO RELATED APPLICATIONS This Application claims the benefit of priority to U.S. Provisional Patent Application Ser. No. 63/130,688 filed on Dec. 26, 2020, and titled, “ Processing Unit Shared Resource Exhaustion and Remediation ” . The disclosure of the prior application is considered part of and is hereby incorporated by reference in its entirety in the disclosure of this application. BACKGROUND In multi-core processors, processor cores can share resources internal and external to the processor. Internal shared resources typically include a last-level cache and external shared resources include bandwidth of the memory interface between the processor core and main memory. If not enough of a shared resource is available to a processor core, performance can become degraded. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 illustrates an example computing environment for processor unit resource exhaustion detection and remediation. FIG. 2 illustrates an example method to determine last level cache memory exhaustion or memory bandwidth exhaustion for a processor unit. FIG. 3 is a graph illustrating the correlation between cache miss stalls and memory bandwidth usage metrics and cache exhaustion. FIG. 4 is a graph illustrating the correlation between cache miss stalls and memory bandwidth usage metrics and memory bandwidth exhaustion. FIG. 5 is an example resource exhaustion detection and remediation method. FIG. 6 is a block diagram of an example computing system in which technologies described herein may be implemented. FIG. 7 is a block diagram of an example processor unit to execute computer-executable instructions as part of implementing technologies described herein. DETAILED DESCRIPTION Current generation processor units share resources, such as last-level cache (LLC) and memory bandwidth across cores on a socket or within a package. It is possible for one or more cores in a processor unit to overutilize these resources, rendering other cores under-resour
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (20)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (5)
- A. Gupta, J. Sampson and M. Bedford Taylor,
- “
- TimeCube: A manycore embedded processor with interference-agnostic progress tracking,
- ”
- 2013 International Conference on Embedded Computer Systems: Architectures, Modeling, and Simulation (SAMOS), Agios Konstantinos, Greece, 2013, pp. 227-236. (Year: 2013).