发明名称 Set selection of a set-associative storage container
摘要 A computer-implemented method includes generating a vector that is a random number. Two or more residue functions are applied to the vector to produce a state signal including a different number of states. A set status of a set-associative storage container in a computer system is determined. The set status identifies whether each set of the set-associative storage container is enabled or disabled. One of the state signals is selected that has a same number of states as a number of the sets that are enabled. The selected state signal is mapped to the sets that are enabled to assign each of the states of the selected state signal to a corresponding one of the sets that are enabled. A set selection of the set-associative storage container is output based on the mapping to randomly select one of the sets that are enabled from the set-associative storage container.
申请公布号 US9495300(B2) 申请公布日期 2016.11.15
申请号 US201615067305 申请日期 2016.03.11
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Carlough Steven R.;Collura Adam B.
分类号 G06F12/08;G06F12/12 主分类号 G06F12/08
代理机构 Cantor Colburn LLP 代理人 Cantor Colburn LLP ;McNamara Margaret
主权项 1. A computer-implemented method, comprising: generating a vector comprising a random number; applying two or more residue functions to the vector, the two or more residue functions each producing a state signal comprising a different number of states based on the vector, wherein the two or more residue functions are residues of modulo operations each having a different modulus; determining a set status of a set-associative storage container in a computer system, the set status identifying whether each set of a plurality of sets of the set-associative storage container is enabled or disabled, wherein the set-associative storage container comprises a plurality of congruence classes, each of the congruence classes comprises a number of sets, and a number of the residue functions is one less than the number of sets per congruence class, wherein a maximum modulus of the residue functions is equal to the number of sets per congruence class, the vector is generated by a linear feedback shift register hashed down to a number of bits to support the maximum modulus, wherein a maximum number of disabled sets is one less than the number of sets per congruence class, and both an even and odd number of disabled sets are supported while maintaining random set selection; selecting one of the state signals as a selected state signal that has a same number of states as a number of the sets that are enabled; mapping the selected state signal to the sets that are enabled to assign each of the states of the selected state signal to a corresponding one of the sets that are enabled; and outputting a set selection of the set-associative storage container based on the mapping to randomly select one of the sets that are enabled from the set-associative storage container.
地址 Armonk NY US
您可能感兴趣的专利