Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Dynamic release method and system of register file cache resources and processor

A register file and release system technology, applied in the field of processors, can solve problems affecting thread execution efficiency, waste of register file cache resources, and thread execution efficiency, and achieve the effects of high release and recovery efficiency and sensitive monitoring.

Active Publication Date: 2015-07-01
SUZHOU POWERCORE TECH CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) The instructions recognized by the compiler in the static compilation phase are too general, because system instructions and memory access instructions often appear in the instruction stream, but they do not necessarily cause long-delay pauses
If the execution results of all these instructions are not written back to the register file cache but directly written back to the main register file, it will seriously affect the execution efficiency of the thread and it is a waste of register file cache resources
[0006] (2) Static compilation needs to add some Hint type bits to the instructions to tell the hardware that these instructions need to bypass the register file cache, which is equivalent to adding new instructions and will also affect thread execution efficiency.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Dynamic release method and system of register file cache resources and processor
  • Dynamic release method and system of register file cache resources and processor
  • Dynamic release method and system of register file cache resources and processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] This embodiment provides a method for dynamically releasing register file cache resources, which is mainly used in multithreaded processors for operating register file caches, and sending requests to register file caches when register file cache resources need to be released. like figure 1 As shown, it specifically includes the following steps:

[0064] S11: Monitor whether a long-delay event occurs in each thread, if so, go to step S12, otherwise continue monitoring. Among them, a time threshold can be set to determine whether it is a long-delay event, and the event needs to be paused for more than the time threshold, and then it is identified as a long-delay event. It is also possible not to set a specific time threshold, but a long-delay event determined empirically during the processor design process, such as memory access miss, write operation cache read-after-write conflict (Store Buffer RAW), branch prediction error, among which Access misses such as TLB (Trans...

Embodiment 2

[0076] This embodiment provides a method for dynamically releasing register file cache resources, which is applied to the register file cache in a multi-threaded processor, and cooperates with the method in Embodiment 1, such as image 3 shown, including the following steps:

[0077] S21: Receive a request that the register file cache entry occupied by the thread where the long-delay event is located is marked as priority replacement.

[0078] S22: According to the request, mark the register file cache entry occupied by the thread where the long-delay event is located as priority replacement.

[0079] When other threads need to transfer their registers from the main register file into the register file cache, the entries marked as priority replacement in the register file cache are preferentially replaced.

[0080] Preferably, the following steps are also included before step S21:

[0081] S20: Set the index number and identification bit for the register file cache entry, wh...

Embodiment 3

[0089] This embodiment provides a dynamic release system 1 for register file cache resources, which is applied to multi-threaded processors and cooperates with register file cache 2, such as Figure 5 shown, including:

[0090] The monitoring unit 101 is configured to monitor whether a long-delay event occurs in each thread. A time threshold can be set to determine whether it is a long-delay event, and the event needs to be paused for more than the time threshold to determine it as a long-delay event. It is also possible not to set a specific time threshold, but a long-delay event determined empirically in the process of processor design, such as missing memory access, write operation cache read-after-write conflict (Store Buffer RAW), branch prediction error, Among them, access misses such as TLB (Translation Look-aside Buffer) misses, second-level cache misses, third-level cache misses, execution of barrier instructions such as Sync, Tlbi, etc., are all recognized long-dela...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a dynamic release method and system of register file cache resources and a processor. The real-time detection can be performed on a long-time delay event under the condition that instructions are not increased or changed, a register file cache table item by which a thread of the long-time delay event is occupied is sent and marked as a preferred replacement request when the long-time delay event is detected, the register file cache table item by which the thread is occupied can be timely marked as the preferred replacement through register file caches after the request is received, the thread can be replaced out in a preferred mode if registers of other threads need to be called into the register file caches from a main register file, and the other threads are not affected. Compared with the prior art, the monitoring on the long-time delay event is sensitive, the instructions do not need to be adjusted, and the efficiency of release recycling on the register file cache resources is high.

Description

technical field [0001] The invention relates to the technical field of multi-thread processor design, in particular to a method and system for dynamically releasing register file cache resources and a processor. Background technique [0002] The register file of a multi-threaded processor usually adopts a multi-level register file structure design, including the main register file MRF (Main Register File); and the register file cache RFC (Register File Cache). [0003] The main register file is used to store the general-purpose registers of all threads. It has a large capacity, but its ports are limited and its speed is relatively slow. The register file cache has many ports and is fast, but the capacity is small. Generally, only 2-3 general-purpose registers are reserved for each thread. When the register that a certain thread needs to read is not in the register file cache but in the main register file, the register needs to be retrieved from the main register file to the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
Inventor 李晔侯锐张乾龙张立新
Owner SUZHOU POWERCORE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products