Variable-sized object packing and its applications to instruction cache design

  • Authors:
  • Rung-Bin Lin

  • Affiliations:
  • Computer Science and Engineering, Yuan Ze University, Chung-Li 320, Taiwan

  • Venue:
  • Computers and Electrical Engineering
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper we study the problem of packing a sequence of objects into bins. The objects are all either divisible or indivisible and occur in accordance with a certain probability distribution. We would like to find the average number of entries wasted in a bin if objects are indivisible and the probability of splitting the last object in a bin if objects are divisible. We solve this problem under a unified formulation by modeling a packing process as a Markov chain whose state transition probabilities are derived from an application of the partitions of integers. An application of this study to instruction cache design shows that a line size of 16bytes has minimized the probability of splitting the last x86 instruction in a cache line. For micro-op cache design, a line size of four entries has minimized the number of entries wasted per line.