Cache pool write speed via /mnt/user vs /mnt/cache ?


glennv

Recommended Posts

Trying to understand where the huge speed diff comes from.

Having a btrfs raid10 4x 1TB ssd samsung evo 860's cache pool. (connected via 12G sas card)

Writing directly to it (freshly trimmed and about 20% full) via /mnt/cache/sharename/ gets me a solid 1.1 GB/s speed as expected (about 500+ per ssd divided by 2 for raid10).

Writing to the cache via a share set to cache yes or only and /mnt/user/sharename/ gets me about 50-60% of that.

 

(testing via dd if=/dev/zero of=file1.txt count=25k bs=1024k, but similar via real world data speedtests via 10G ether )

 

So what is this huge overhead as parity is not involved here and can this be tuned to get me optimised cache write speeds ?

Edited by glennv
Link to comment

Tnx. Wow that is a lot of overhead.  

Yeah i also just remembered direct I/O , but also vaguely remembered that in the past setting that caused issues with some of my dockers. But these have been moved off to zfs pools so will try and play with it again. 

 

Edited by glennv
Link to comment

Ah good to know. Tnx for the info.

 

Btw just finished testing direct I/O and although it does improve artificial write speeds (using dd direct on server) it does not do a lot for real world over the net write speeds, but worse , it dropped my read speeds from 900MB/s to 230MB/s , so that idea goes in the bin ;-)

 

At least i know the cause and dont keep looking for a misconfiguration that is not there.

Tnx mate. Waiting for fuse 3.x it is i guess......

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.