Re: [PATCH 6/6] mbcache2: Use referenced bit instead of LRU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jan,

2015-12-09 18:57 GMT+01:00 Jan Kara <jack@xxxxxxx>:
> Currently we maintain perfect LRU list by moving entry to the tail of
> the list when it gets used. However these operations on cache-global
> list are relatively expensive.
>
> In this patch we switch to lazy updates of LRU list. Whenever entry gets
> used, we set a referenced bit in it. When reclaiming entries, we give
> referenced entries another round in the LRU.
>
> In my testing this logic gives about 30% boost to workloads with mostly
> unique xattr blocks (e.g. xattr-bench with 10 files and 10000 unique
> xattr values).

I find it quite confusing that with this patch applied, structs
mb2_cache and mb2_cache_entry still contain fields with "lru" in their
name.

Thanks,
Andreas
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux