发明名称 Thread-based cache content saving for task switching
摘要 Embodiments relate to thread-based cache content savings for task switching in a computer processor. An aspect includes determining a cache entry in a cache of the computer processor that is owned by the first thread, wherein the determination is made based on a hardware thread identifier (ID) of the first thread matching a hardware thread ID in the cache entry. Another aspect includes determining whether the determined cache entry is eligible for prefetching. Yet another aspect includes, based on determining that the determined cache entry is eligible for prefetching, setting a marker in the cache entry to active.
申请公布号 US9436501(B2) 申请公布日期 2016.09.06
申请号 US201414468567 申请日期 2014.08.26
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Cain, III Harold W.;Daly David M.;Prasky Brian R.;Srinivasan Vijayalakshmi
分类号 G06F12/08;G06F9/46;G06F9/50;G06F9/48 主分类号 G06F12/08
代理机构 Cantor Colburn LLP 代理人 Cantor Colburn LLP ;McNamara Margaret
主权项 1. A system for thread-based cache content saving for task switching in a computer processor, the system comprising: a memory; and the computer processor, communicatively coupled to said memory, the computer system configured to perform a method comprising: based on a task switch in the computer processor from a first thread to a second thread: determining a cache entry in a cache of the computer processor that is owned by the first thread, wherein the determination is made based on a hardware thread identifier (ID) of the first thread matching a hardware thread ID in the cache entry;wherein the hardware thread ID of the first thread comprises an index of a software thread ID of the first thread in a thread ID table of the computer processor, and wherein the thread ID table comprises a list of software thread IDs corresponding to most recently executed threads in the computer processor, wherein each software thread ID in the thread ID table has a corresponding respective index in the thread ID table that comprises a hardware thread ID of a thread corresponding to the software thread ID;determining whether the determined cache entry is eligible for prefetching; andbased on determining that the determined cache entry is eligible for prefetching, setting a marker in the cache entry to active.
地址 Armonk NY US