Whamcloud - gitweb
EX-2975 lipe: implement approximate LRU in lpcc_purge
authorLei Feng <flei@whamcloud.com>
Wed, 7 Apr 2021 08:08:55 +0000 (16:08 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 22 Jul 2021 17:35:00 +0000 (17:35 +0000)
commit45dd11465620812a9caedefedf02f476d50ec4c9
tree3e52391b6872dd028d50e2e3f21a1e32781541fe
parent472694d2b752716568c0add7457269099abe0398
EX-2975 lipe: implement approximate LRU in lpcc_purge

LRU is actually FIFO based on the atime of cache file. But we
can only use limited memory to sort the atime of all files.
So we implement an approximate LRU in lpcc_purge.

Change-Id: Ic636d97b08ee6424f54a1088dfe07359df1f8f79
Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial
Reviewed-on: https://review.whamcloud.com/43224
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lipe/src/lpcc_purge.c