[f2fs-dev] [PATCH v4 2/2] f2fs: introduce periodic iostat io latency traces

2021-08-19 Thread Daeho Jeong
From: Daeho Jeong Whenever we notice some sluggish issues on our machines, we are always curious about how well all types of I/O in the f2fs filesystem are handled. But, it's hard to get this kind of real data. First of all, we need to reproduce the issue while turning on the profiling tool like

[f2fs-dev] [PATCH v4 1/2] f2fs: separate out iostat feature

2021-08-19 Thread Daeho Jeong
From: Daeho Jeong Added F2FS_IOSTAT config option to support getting IO statistics through sysfs and printing out periodic IO statistics tracepoint events and moved I/O statistics related codes into separate files for better maintenance. Signed-off-by: Daeho Jeong --- fs/f2fs/Kconfig

Re: [f2fs-dev] [PATCH] f2fs-tools: change fiemap print out format

2021-08-19 Thread Daeho Jeong
Ping this? On Sun, Aug 8, 2021 at 2:52 PM Daeho Jeong wrote: > > From: Daeho Jeong > > Given fiemap way to print out extents in the kernel, we can correctly > print the layout of each file in a unit of extent, not block. So, I > changed fiemap print out way like below. > > Fiemap: offset = 0 len

Re: [f2fs-dev] [PATCH v6] f2fs: introduce /sys/fs/f2fs//fsck_stack node

2021-08-19 Thread Chao Yu
On 2021/8/16 15:23, 李扬韬 wrote: HI Chao, SBI_NEED_FSCK is an indicator that fsck.f2fs needs to be triggered, this flag is set in too many places. For some scenes that are not very reproducible, adding stack information will help locate the problem. Let's record all fsck stack history, I added F2

[f2fs-dev] [PATCH v5] f2fs: Don't create discard thread when device doesn't support realtime discard

2021-08-19 Thread Fengnan Chang
Don't create discard thread when device doesn't support realtime discard or user specifies nodiscard mount option. Signed-off-by: Fengnan Chang Signed-off-by: Yangtao Li Reviewed-by: Chao Yu --- fs/f2fs/f2fs.h| 1 + fs/f2fs/segment.c | 25 +++-- fs/f2fs/super.c | 27

Re: [f2fs-dev] [PATCH v4] f2fs: Don't create discard thread when device not support realtime discard

2021-08-19 Thread Chao Yu
1On 2021/8/16 15:22, Fengnan Chang wrote: Don't create discard thread when device not support realtime discard. Don't create discard thread when device doesn't support realtime discard or user specifies nodiscard mount option. Signed-off-by: Fengnan Chang Signed-off-by: Yangtao Li Otherw