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