aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest
diff options
context:
space:
mode:
authorJavier González <jg@lightnvm.io>2017-06-26 11:57:23 +0200
committerJens Axboe <axboe@kernel.dk>2017-06-26 16:27:39 -0600
commitd45ebd470bb6d41eb5294733bdba78a7ad69f1d0 (patch)
tree895ebef437c4325bdcf61011f14bc961ce1bc78e /drivers/lguest
parentdffdd960ee16d0515d32701301760a817a25d52b (diff)
downloadkernel_replicant_linux-d45ebd470bb6d41eb5294733bdba78a7ad69f1d0.tar.gz
kernel_replicant_linux-d45ebd470bb6d41eb5294733bdba78a7ad69f1d0.tar.bz2
kernel_replicant_linux-d45ebd470bb6d41eb5294733bdba78a7ad69f1d0.zip
lightnvm: pblk: choose optimal victim GC line
At the moment, we separate the closed lines on three different list based on their number of valid sectors. GC recycles lines from each list based on capacity. Lines from each list are taken in a FIFO fashion. Since the number of lines is limited (it corresponds to the number of blocks in a LUN, which is somewhere between 1000-2000), we can afford scanning the lists to choose the optimal line to be recycled. This helps specially in lines with a high number of valid sectors. If the number of blocks per LUN increases, we will consider a more efficient policy. Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <matias@cnexlabs.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lguest')
0 files changed, 0 insertions, 0 deletions