On 2020/7/6 16:11, lampahome wrote:
> Brief procedures:
> parted /dev/sdd1 as 160GB disk
> mkfs -t f2fs /dev/sdd1
> mount /dev/sdd1 /mnt/f2fsdir
> 
> I use shell script to create 20 fio concurrently and wait for finish.
> fio command:
> fio -bs=4k -iodepth=4 -rw=write -ioengine=libaio -name=my -direct=0

Why not using direct=1 combining with libaio? otherwise data was only
written to cache.

> -size=1G -runtime=6000 -filename /mnt/f2fsdir/ggg$id
> // $id correspond to number of fio, so $id range is 1~20
> 
> 
> 

Below info shows GC or CP didn't affect the test result.

> Status before fio:
> =====[ partition info(sdd1). #0, RW, CP: Good]=====
> [SB: 1] [CP: 2] [SIT: 6] [NAT: 114] [SSA: 153] [MAIN:
> 77849(OverProv:794 Resv:400)]
> 
> Utilization: 0% (2 valid blocks, 39858686 discard blocks)
>   - Node: 1 (Inode: 1, Other: 0)
>   - Data: 1
>   - Inline_xattr Inode: 0
>   - Inline_data Inode: 0
>   - Inline_dentry Inode: 0
>   - Orphan/Append/Update Inode: 0, 0, 0
> 
> Main area: 77849 segs, 77849 secs 77849 zones
>   - COLD  data: 0, 0, 0
>   - WARM  data: 1, 1, 1
>   - HOT   data: 77845, 77845, 77845
>   - Dir   dnode: 77848, 77848, 77848
>   - File   dnode: 77847, 77847, 77847
>   - Indir nodes: 77846, 77846, 77846
> 
>   - Valid: 6
>   - Dirty: 0
>   - Prefree: 0
>   - Free: 77843 (77843)
> 
> CP calls: 1 (BG: 0)
>   - cp blocks : 3
>   - sit blocks : 0
>   - nat blocks : 0
>   - ssa blocks : 0
> GC calls: 0 (BG: 0)
>   - data segments : 0 (0)
>   - node segments : 0 (0)
> Try to move 0 blocks (BG: 0)
>   - data blocks : 0 (0)
>   - node blocks : 0 (0)
> Skipped : atomic write 0 (0)
> BG skip : IO: 0, Other: 0
> 
> Extent Cache:
>   - Hit Count: L1-1:0 L1-2:0 L2:0
>   - Hit Ratio: 0% (0 / 0)
>   - Inner Struct Count: tree: 0(0), node: 0
> 
> Balancing F2FS Async:
>   - DIO (R:    0, W:    0)
>   - IO_R (Data:    0, Node:    0, Meta:    0
>   - IO_W (CP:    0, Data:    0, Flush: (   0    0    1), Discard: (
> 0    0)) cmd:    0 undiscard:   0
>   - inmem:    0, atomic IO:    0 (Max.    0), volatile IO:    0 (Max.    0)
>   - nodes:    0 in    0
>   - dents:    0 in dirs:   0 (   0)
>   - datas:    0 in files:   0
>   - quota datas:    0 in quota files:   0
>   - meta:    0 in    0
>   - imeta:    0
>   - NATs:         0/        0
>   - SITs:         0/    77849
>   - free_nids:      3636/ 13278716
>   - alloc_nids:         0
> 
> Distribution of User Blocks: [ valid | invalid | free ]
>   [|-|-------------------------------------------------]
> 
> IPU: 0 blocks
> SSR: 0 blocks in 0 segments
> LFS: 1 blocks in 0 segments
> 
> BDF: 99, avg. vblocks: 0
> 
> Memory: 19767 KB
>   - static: 19674 KB
>   - cached: 93 KB
>   - paged : 0 KB
> 
> Status after fio:
> =====[ partition info(sdd1). #0, RW, CP: Good]=====
> [SB: 1] [CP: 2] [SIT: 6] [NAT: 114] [SSA: 153] [MAIN:
> 77849(OverProv:794 Resv:400)]
> 
> Utilization: 13% (5248062 valid blocks, 34610626 discard blocks)
>   - Node: 5181 (Inode: 21, Other: 5160)
>   - Data: 5242881
>   - Inline_xattr Inode: 20
>   - Inline_data Inode: 0
>   - Inline_dentry Inode: 0
>   - Orphan/Append/Update Inode: 0, 0, 0
> 
> Main area: 77849 segs, 77849 secs 77849 zones
>   - COLD  data: 0, 0, 0
>   - WARM  data: 10260, 10260, 10260
>   - HOT   data: 10023, 10023, 10023
>   - Dir   dnode: 77848, 77848, 77848
>   - File   dnode: 10184, 10184, 10184
>   - Indir nodes: 77846, 77846, 77846
> 
>   - Valid: 10244
>   - Dirty: 10
>   - Prefree: 0
>   - Free: 67595 (67595)
> 
> CP calls: 7 (BG: 6)
>   - cp blocks : 27
>   - sit blocks : 195
>   - nat blocks : 42
>   - ssa blocks : 10259
> GC calls: 1 (BG: 2)
>   - data segments : 1 (1)
>   - node segments : 0 (0)
> Try to move 511 blocks (BG: 511)
>   - data blocks : 511 (511)
>   - node blocks : 0 (0)
> Skipped : atomic write 0 (0)
> BG skip : IO: 4, Other: 0
> 
> Extent Cache:
>   - Hit Count: L1-1:0 L1-2:0 L2:0
>   - Hit Ratio: 0% (0 / 1020)
>   - Inner Struct Count: tree: 20(0), node: 1003
> 
> Balancing F2FS Async:
>   - DIO (R:    0, W:    0)
>   - IO_R (Data:    0, Node:    0, Meta:    0
>   - IO_W (CP:    0, Data:    0, Flush: (   0    0    1), Discard: (
> 0    0)) cmd:    0 undiscard:   0
>   - inmem:    0, atomic IO:    0 (Max.    0), volatile IO:    0 (Max.    0)
>   - nodes:    0 in 1980
>   - dents:    0 in dirs:   0 (   0)
>   - datas:    0 in files:   0
>   - quota datas:    0 in quota files:   0
>   - meta:    0 in  670
>   - imeta:    0
>   - NATs:         0/     1154
>   - SITs:         0/    77849
>   - free_nids:      2096/ 13273536
>   - alloc_nids:         0
> 
> Distribution of User Blocks: [ valid | invalid | free ]
>   [------|-|-------------------------------------------]
> 
> IPU: 0 blocks
> SSR: 0 blocks in 0 segments
> LFS: 5253829 blocks in 10259 segments
> 
> BDF: 99, avg. vblocks: 387
> 
> Memory: 30432 KB
>   - static: 19674 KB
>   - cached: 157 KB
>   - paged : 10600 KB
> .
> 


_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to