LINUX.ORG.RU

История изменений

Исправление rtxtxtrx, (текущая версия) :

Ext4 vs Btrfs

Мои тесты:

~   
❯ sudo mkdir -p /mnt/{btrfs,etx4}_vol

                                                                                                                              
~   
❯ sudo mount /dev/nvme2n1p2 /mnt/etx4_vol 
                                                                                                                              
~   
❯ sudo mount /dev/nvme2n1p3 /mnt/btrfs_vol
                                                                                                                              
~   
❯ findmnt /mnt/etx4_vol 
TARGET        SOURCE         FSTYPE OPTIONS
/mnt/etx4_vol /dev/nvme2n1p2 ext4   rw,relatime,stripe=32
  

# Смешанный тест чтения и записи 30% запись, 70% чтение                                                                                                                            
❯ sudo fio --name=mixed_rw --filename=/mnt/etx4_vol/testfile --size=1G --bs=4k --rw=randrw --rwmixread=70 --time_based --runtime=60 --ioengine=libaio --direct=1 --numjobs=4      
mixed_rw: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
...
fio-3.37
Starting 4 processes
...
Run status group 0 (all jobs):
   READ: bw=206MiB/s (216MB/s), 51.4MiB/s-51.4MiB/s (53.9MB/s-53.9MB/s), io=12.0GiB (12.9GB), run=60000-60001msec
  WRITE: bw=88.3MiB/s (92.5MB/s), 22.0MiB/s-22.1MiB/s (23.1MB/s-23.2MB/s), io=5296MiB (5553MB), run=60000-60001msec

Disk stats (read/write):
  nvme2n1: ios=3151938/1355437, sectors=25215616/10943152, merge=0/25, ticks=193093/16456, in_queue=209602, util=74.85%
                                                                                                                              
~   60s
❯ sudo fio --name=mixed_rw --filename=/mnt/btrfs_vol/testfile --size=1G --bs=4k --rw=randrw --rwmixread=70 --time_based --runtime=60 --ioengine=libaio --direct=1 --numjobs=4
mixed_rw: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
...
fio-3.37
Starting 4 processes
Jobs: 4 (f=4): [m(4)][100.0%][r=166MiB/s,w=71.3MiB/s]
...

Run status group 0 (all jobs):
   READ: bw=160MiB/s (168MB/s), 40.1MiB/s-40.1MiB/s (42.0MB/s-42.0MB/s), io=9618MiB (10.1GB), run=60001-60002msec
  WRITE: bw=68.9MiB/s (72.2MB/s), 17.2MiB/s-17.3MiB/s (18.0MB/s-18.1MB/s), io=4133MiB (4333MB), run=60001-60002msec
                                                                                                                              
~   60s
❯ 


~   
❯ uname --kernel-release 
6.10.3-arch1-2

Исходная версия rtxtxtrx, :

Ext4 vs Btrfs

Мои тесты:

~   
❯ sudo mkdir -p /mnt/{btrfs,etx4}_vol

                                                                                                                              
~   
❯ sudo mount /dev/nvme2n1p2 /mnt/etx4_vol 
                                                                                                                              
~   
❯ sudo mount /dev/nvme2n1p3 /mnt/btrfs_vol
                                                                                                                              
~   
❯ findmnt /mnt/etx4_vol 
TARGET        SOURCE         FSTYPE OPTIONS
/mnt/etx4_vol /dev/nvme2n1p2 ext4   rw,relatime,stripe=32
  

# Смешанный тест чтения и записи 30% запись, 70% чтение                                                                                                                            
❯ sudo fio --name=mixed_rw --filename=/mnt/etx4_vol/testfile --size=1G --bs=4k --rw=randrw --rwmixread=70 --time_based --runtime=60 --ioengine=libaio --direct=1 --numjobs=4      
mixed_rw: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
...
fio-3.37
Starting 4 processes
...
Run status group 0 (all jobs):
   READ: bw=206MiB/s (216MB/s), 51.4MiB/s-51.4MiB/s (53.9MB/s-53.9MB/s), io=12.0GiB (12.9GB), run=60000-60001msec
  WRITE: bw=88.3MiB/s (92.5MB/s), 22.0MiB/s-22.1MiB/s (23.1MB/s-23.2MB/s), io=5296MiB (5553MB), run=60000-60001msec

Disk stats (read/write):
  nvme2n1: ios=3151938/1355437, sectors=25215616/10943152, merge=0/25, ticks=193093/16456, in_queue=209602, util=74.85%
                                                                                                                              
~   60s
❯ sudo fio --name=mixed_rw --filename=/mnt/btrfs_vol/testfile --size=1G --bs=4k --rw=randrw --rwmixread=70 --time_based --runtime=60 --ioengine=libaio --direct=1 --numjobs=4
mixed_rw: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
...
fio-3.37
Starting 4 processes
Jobs: 4 (f=4): [m(4)][100.0%][r=166MiB/s,w=71.3MiB/s]
...

Run status group 0 (all jobs):
   READ: bw=160MiB/s (168MB/s), 40.1MiB/s-40.1MiB/s (42.0MB/s-42.0MB/s), io=9618MiB (10.1GB), run=60001-60002msec
  WRITE: bw=68.9MiB/s (72.2MB/s), 17.2MiB/s-17.3MiB/s (18.0MB/s-18.1MB/s), io=4133MiB (4333MB), run=60001-60002msec
                                                                                                                              
~   60s
❯