On Thu 07-08-14 11:35:49, Zheng Liu wrote: > From: Zheng Liu <wenqing.lz@xxxxxxxxxx> > > This commit adds some statictics in extent status tree shrinker. The > purpose to add these is that we want to collect more details when we > encounter a stall caused by extent status tree shrinker. Here we count > the following statictics: > stats: > the number of all objects on all extent status trees > the number of reclaimable objects on lru list > cache hits/misses > the last sorted interval > the number of inodes on lru list > average: > scan time for shrinking some objects > the number of shrunk objects > maximum: > the inode that has max nr. of objects on lru list > the maximum scan time for shrinking some objects > > The output looks like below: > $ cat /proc/fs/ext4/sda1/es_shrinker_info > stats: > 28228 objects > 6341 reclaimable objects > 5281/631 cache hits/misses > 586 ms last sorted interval > 250 inodes on lru list > average: > 153 us scan time > 128 shrunk objects > maximum: > 255 inode (255 objects, 198 reclaimable) > 125723 us max scan time When reading through this again, I realized that we probably don't want this file in /proc/fs/ext4 but rather in /sys/kernel/debug/ext4 because it's really a debugging interface and we don't want any tools to start using it. Honza -- Jan Kara <jack@xxxxxxx> 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