You are not logged in.
When I run the
time sh -c "dd if=/dev/zero of=test.bin bs=1M count=1000; sync"command in my home directory, I get about 6 MB/S speed. However, running the same command in root directory, gives about 3 GB/S. I find this strange as both of these directories, even though on different partitions, share the same SSD.
Here's my `/etc/fstab` for reference:
UUID=01e6e674-a700-45f7-a932-04cad1e9af11 / btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
# /dev/nvme0n1p1
UUID=D1B5-D77B /efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/nvme0n1p3
UUID=8189af98-8ad1-4353-88e8-6ee6a01dc0fc none swap defaults 0 0
# /dev/nvme0n1p4
UUID=8bc03ec3-281f-4945-934b-b43a03d8e7a7 /home btrfs rw,auto,nouser,sync,exec 0 0I'd appreciate any help.
Last edited by dyster (2020-04-22 15:58:50)
Offline
If you drop sync from the options string used for /home is the result the same?
Offline
According to the docs, sync is ignored by btrfs anyway:
The following options apply to any filesystem that is being mounted (but not every filesystem actually honors them – e.g., the sync option today has an effect only for ext2, ext3, ext4, fat, vfat, ufs and xfs):
'man 5 btrfs' also makes no mention of the sync option.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Perhaps https://github.com/torvalds/linux/blob/ … per.c#L705 is undocumented?
Offline
Actually, removing sync improved it to around 1.8 GB/S.
Thank you loqs!
Offline