mem-cache: Use the compression factor to co-allocate
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 5 Jun 2019 09:27:46 +0000 (11:27 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 12 Nov 2020 21:46:43 +0000 (21:46 +0000)
commitc8f3ff5e183273c2ba7a69dc53f01e5f9c14c9cb
tree6533674cb705c9f963b51531067f31d403a06cf7
parent90de6ec2217a221a215d6e613849cd24c857da92
mem-cache: Use the compression factor to co-allocate

The compression factor of a block is measured according to the maximum
achievable compression ratio.

For example, if up to 4 blocks can co-allocate in a superblock, and
a cache line has 512 bits, the possible compression factors are 1
(uncompressed, <=512 bits), 2 (compressed, <=256 bits), 4 (compressed,
<=128 bits).

This is an approach similar to the one described in "Yet Another
Compressed Cache", by Sardashti et al.

Change-Id: I52ef36989f3eeef6fc8890132a57f995ef9c5258
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36581
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/tags/compressed_tags.hh
src/mem/cache/tags/super_blk.cc
src/mem/cache/tags/super_blk.hh