On Sat 12-12-15 00:58:51, Andreas Grünbacher wrote: > 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. Yes, it's somewhat confusing so if you have a better suggestion for the name I can change it. Maybe cache_list to suggest it's a list of all entries in the cache? BTW, I have kept the name to mirror what we do with inodes which use the same naming and LRU scheme. But probably there's no strong reason to adhere to the naming scheme. Honza -- Jan Kara <jack@xxxxxxxx> SUSE Labs, CR -- 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