You are not logged in.

#1 2020-04-22 15:38:34

dyster
Member
Registered: 2019-12-09
Posts: 4

[SOLVED] /home is way slower than root directory; both on the same SSD

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 0

I'd appreciate any help.

Last edited by dyster (2020-04-22 15:58:50)

Offline

#2 2020-04-22 15:43:11

loqs
Member
Registered: 2014-03-06
Posts: 19,078

Re: [SOLVED] /home is way slower than root directory; both on the same SSD

If you drop sync from the options string used for /home is the result the same?

Offline

#3 2020-04-22 15:51:13

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,654
Website

Re: [SOLVED] /home is way slower than root directory; both on the same SSD

According to the docs, sync is ignored by btrfs anyway:

man mount wrote:
       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

#4 2020-04-22 15:55:46

loqs
Member
Registered: 2014-03-06
Posts: 19,078

Re: [SOLVED] /home is way slower than root directory; both on the same SSD

Offline

#5 2020-04-22 15:58:16

dyster
Member
Registered: 2019-12-09
Posts: 4

Re: [SOLVED] /home is way slower than root directory; both on the same SSD

Actually, removing sync improved it to around 1.8 GB/S.

Thank you loqs!

Offline

Board footer

Powered by FluxBB