Abstract
File system related plotting speed comparison test. Aimed to compare plotting on XFS vs EXT4 with -t largefile4 flag.
Duration time: 26 hours 53 minutes 43 seconds
Two farmers of the same size were run simultaneously on the same hardware on different filesystems.
Despite minor fluctuations, the completion rate of farmer (f3) running EXT4 -m 0 -t largefile4 was slightly higher than that of farmer (f2) running on XFS at the corresponding time intervals.
On randomly taken shorter time segments from the full log, the results were the same.
Hardware Setup
AMD Ryzen 9 5950X 16-Core Processor, not overclocked.
128 GB ECC RAM
1 Gb/s
OS Linux 22.04
$lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,MODEL
NAME FSTYPE LABEL MOUNTPOINT SIZE MODEL
sda 894.3G Micron_5200_MTFD
└─sda1 ext4 / 894.3G
nvme0n1 3.5T SAMSUNG MZQL23T8HCLS-00A07
└─nvme0n1p1 xfs f2 /mnt/f2 3.5T Allocated space: 3.4 TiB (3.8 TB)
nvme1n1 3.5T SAMSUNG MZQL23T8HCLS-00A07
└─nvme1n1p1 ext4 f3 /mnt/f3 3.5T Allocated space: 3.4 TiB (3.8 TB)
Software setup
Only Node exporter and newly installed Linux (22.04) were ran.
The subspace-farmer and node services were configured with their default options, except for the number of allowed connections:
--listen-on /ip4/0.0.0.0/tcp/30533 \
--out-connections 1000 \
--pending-out-connections 1000 \
path=/mnt/f2,size=3770G \
path=/mnt/f3,size=3770G
disk_farm_index=0
is Farmer “f2”, XFS with internal journal, mounted as : ‘…defaults,swalloc,largeio 0 0’
disk_farm_index=1
is Farmer “f3”, EXT4 with ‘-m 0’ and ‘-T largefile4’, mounted as ‘…defaults 0 1’
Data
Note: The analysis used periodic samples at approximately equal intervals from the entire output of the command sudo Journalctl -o cat -u subspace-farmer -n 1000 -f
.
Obviously time points do not affect the test results. Though using randomly taken shorter periods of time of the full log the same results are achieved.
2024-02-21T10:22:13.368076Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (0.00% complete) sector_index=0
2024-02-21T10:22:13.368110Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (0.00% complete) sector_index=0
2024-02-21T11:15:07.548151Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (0.28% complete) sector_index=10
2024-02-21T11:16:01.162395Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (0.28% complete) sector_index=10
2024-02-21T14:41:00.715129Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (1.36% complete) sector_index=48
2024-02-21T14:45:43.447656Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (1.42% complete) sector_index=50
2024-02-21T15:13:22.939676Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (1.53% complete) sector_index=54
2024-02-21T15:17:55.375621Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (1.56% complete) sector_index=55
2024-02-21T15:23:17.592304Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (1.56% complete) sector_index=55
2024-02-21T15:28:27.366404Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (1.61% complete) sector_index=57
2024-02-21T16:00:00.912543Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (1.78% complete) sector_index=63
2024-02-21T16:04:45.371554Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (1.78% complete) sector_index=63
2024-02-21T16:05:14.626893Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (1.81% complete) sector_index=64
2024-02-21T16:09:58.442880Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (1.81% complete) sector_index=64
2024-02-21T17:02:08.823732Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (2.10% complete) sector_index=74
2024-02-21T17:02:58.230722Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (2.12% complete) sector_index=75
2024-02-21T18:04:43.756551Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (2.44% complete) sector_index=86
2024-02-21T18:05:44.413184Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (2.46% complete) sector_index=87
2024-02-21T18:46:35.774614Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (2.66% complete) sector_index=94
2024-02-21T18:47:20.098198Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (2.69% complete) sector_index=95
2024-02-21T19:19:00.000635Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (2.86% complete) sector_index=101
2024-02-21T19:24:26.881914Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (2.86% complete) sector_index=101
2024-02-21T20:21:41.255594Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (3.20% complete) sector_index=113
2024-02-21T20:22:39.487208Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (3.17% complete) sector_index=112
2024-02-21T21:25:20.535514Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (3.51% complete) sector_index=124
2024-02-21T21:28:40.616108Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (3.57% complete) sector_index=126
2024-02-21T22:40:24.763216Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (3.97% complete) sector_index=140
2024-02-21T22:43:23.531810Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (3.94% complete) sector_index=139
2024-02-22T00:02:40.467485Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (4.42% complete) sector_index=156
2024-02-22T00:06:58.551190Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (4.39% complete) sector_index=155
2024-02-22T01:25:42.648581Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (4.82% complete) sector_index=170
2024-02-22T01:30:33.959566Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (4.90% complete) sector_index=173
2024-02-22T02:33:51.633889Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (5.18% complete) sector_index=183
2024-02-22T02:37:44.664403Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (5.27% complete) sector_index=186
2024-02-22T03:52:40.303005Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (5.61% complete) sector_index=198
2024-02-22T03:55:28.935880Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (5.69% complete) sector_index=201
2024-02-22T05:33:51.684956Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (6.23% complete) sector_index=220
2024-02-22T05:37:53.780003Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (6.18% complete) sector_index=218
2024-02-22T07:12:23.308449Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (6.69% complete) sector_index=236
2024-02-22T07:17:27.449051Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (6.80% complete) sector_index=240
2024-02-22T08:57:28.466318Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (7.25% complete) sector_index=256
2024-02-22T09:01:13.553850Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (7.37% complete) sector_index=260
2024-02-22T10:45:03.933999Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (7.93% complete) sector_index=280
2024-02-22T10:47:45.255739Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (7.85% complete) sector_index=277
2024-02-22T12:24:02.394356Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (8.47% complete) sector_index=299
2024-02-22T12:27:47.481540Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (8.39% complete) sector_index=296
2024-02-22T13:15:26.762713Z INFO {disk_farm_index=0}: subspace_farmer::single_disk_farm::plotting: Plotting sector (8.64% complete) sector_index=305
2024-02-22T13:15:56.667752Z INFO {disk_farm_index=1}: subspace_farmer::single_disk_farm::plotting: Plotting sector (8.75% complete) sector_index=309
Observations:
disk_farm_index=0
Started plotting sector 0 at 2024-02-21T10:22:13.368110Z.
Reached 1.81% completion at 2024-02-21T16:05:14.626893Z.
Reached 2.86% completion at 2024-02-21T19:24:26.881914Z.
Reached 3.17% completion at 2024-02-21T20:22:39.487208Z.
Reached 3.94% completion at 2024-02-21T22:43:23.531810Z.
Reached 4.39% completion at 2024-02-22T00:06:58.551190Z.
Reached 4.90% completion at 2024-02-22T01:30:33.959566Z.
Reached 5.27% completion at 2024-02-22T02:37:44.664403Z.
Reached 5.69% completion at 2024-02-22T03:55:28.935880Z.
Reached 6.18% completion at 2024-02-22T05:37:53.780003Z.
Reached 6.69% completion at 2024-02-22T07:12:23.308449Z.
Reached 7.25% completion at 2024-02-22T08:57:28.466318Z.
Reached 7.85% completion at 2024-02-22T10:47:45.255739Z.
Reached 8.39% completion at 2024-02-22T12:27:47.481540Z.
Reached 8.64% completion at 2024-02-22T13:15:26.762713Z.
disk_farm_index=1
Started plotting sector 0 at 2024-02-21T10:22:13.368076Z.
Reached 1.56% completion at 2024-02-21T15:17:55.375621Z.
Reached 1.78% completion at 2024-02-21T16:00:00.912543Z.
Reached 2.12% completion at 2024-02-21T17:02:58.230722Z.
Reached 2.46% completion at 2024-02-21T18:05:44.413184Z.
Reached 2.69% completion at 2024-02-21T18:47:20.098198Z.
Reached 2.86% completion at 2024-02-21T19:19:00.000635Z.
Reached 3.20% completion at 2024-02-21T20:21:41.255594Z.
Reached 3.57% completion at 2024-02-21T21:28:40.616108Z.
Reached 3.97% completion at 2024-02-21T22:40:24.763216Z.
Reached 4.42% completion at 2024-02-22T00:02:40.467485Z.
Reached 4.90% completion at 2024-02-22T01:25:42.648581Z.
Reached 5.27% completion at 2024-02-22T02:33:51.633889Z.
Reached 5.69% completion at 2024-02-22T03:52:40.303005Z.
Reached 6.23% completion at 2024-02-22T05:33:51.684956Z.
Reached 6.80% completion at 2024-02-22T07:17:27.449051Z.
Reached 7.37% completion at 2024-02-22T09:01:13.553850Z.
Reached 7.93% completion at 2024-02-22T10:45:03.933999Z.
Reached 8.47% completion at 2024-02-22T12:24:02.394356Z.
Reached 8.75% completion at 2024-02-22T13:15:56.667752Z.
Disk Farm Index 0:
Started plotting at 0.00% completion.
Completed plotting up to 8.64%.
Concluded at sector index 305.
Disk Farm Index 1:
Also started plotting at 0.00% completion simultaneously with Index 0.
Achieved plotting progress up to 8.75%.
Concluded at sector index 309.
Conclusion:
EXT4 partition with -m 0 -T largefile4
, mounted with default options demonstrates a relatively faster performance in completing the plotting process during the test duration, than that on XFS mounted as : ...defaults,swalloc,largeio 0 0
.