Re: [PATCH v2] ext4: use percpu_counters for extent_status cache hits/misses

2019-08-28 Thread Theodore Y. Ts'o
On Wed, Aug 28, 2019 at 05:19:17PM +0800, Shaokun Zhang wrote: > From: Yang Guo > > @es_stats_cache_hits and @es_stats_cache_misses are accessed frequently in > ext4_es_lookup_extent function, it would influence the ext4 read/write > performance in NUMA system. Let's optimize it using

[PATCH v2] ext4: use percpu_counters for extent_status cache hits/misses

2019-08-28 Thread Shaokun Zhang
From: Yang Guo @es_stats_cache_hits and @es_stats_cache_misses are accessed frequently in ext4_es_lookup_extent function, it would influence the ext4 read/write performance in NUMA system. Let's optimize it using percpu_counter, it is profitable for the performance. The test command is as