LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-11-2021, 12:08 PM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
ZFS rec0rdsize parameter, anyone have experience?


Hello,
i was wondering which ZFS rec0rdsize to set if my average disk read size operation (zpool iostat -r) is from 512 up to 128k while the mean is around 64k.
I am wondering if i should rather do not set it and let Z.F.S detect the size on its own or set it really to that mean value.

Last edited by postcd; 03-11-2021 at 12:10 PM.
 
Old 03-11-2021, 12:24 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,641

Rep: Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966
Quote:
Originally Posted by postcd View Post
Hello,
i was wondering which ZFS rec0rdsize to set if my average disk read size operation (zpool iostat -r) is from 512 up to 128k while the mean is around 64k. I am wondering if i should rather do not set it and let Z.F.S detect the size on its own or set it really to that mean value.
Again, you provide no details that would let anyone give a meaningful answer.

Most everything about ZFS in regards to write-amplification takes into account the media being written to, the controller, physical connection, mean size of the files, types of data, etc., and none of that is present here. Not even the version/distro of Linux. Which leaves most things up to you to decide.

https://www.usenix.org/system/files/...16_09_jude.pdf
https://www.reddit.com/r/zfs/comment...ecordsize_faq/
https://www.reddit.com/r/zfs/comment...really_better/

Again, you can adjust your own system on the fly and tune it for what's best for your system/data/needs, and find out for yourself. You asked for 'experience'...mine is, I made adjustments to my system until I found what worked for me.

Last edited by TB0ne; 03-11-2021 at 05:03 PM.
 
2 members found this post helpful.
Old 03-12-2021, 03:48 AM   #3
postcd
Member
 
Registered: Oct 2013
Posts: 527

Original Poster
Rep: Reputation: Disabled
Arnold, i do not think it is correct. I do not understand most of the things you have written (abstract and technical). Only thing i understand that you think that r€cordsize has nearly no impact on reads. Why i think this is not true? Because if there is 1GB file and the r€cordisze is set to 4K then the drive would have to do so many transactions per second to read the file and on HDDs the tps is scarce. Explain why i am wrong. On another hand, if i set RS to 1M and there is 1K files that needs to be read, then i would guess it would cause big problems utilizing HDDs bandwidth internal as it needs to read whole 1M "block" just to get small file?)? more about this there when you search "What if i"

Last edited by postcd; 03-12-2021 at 04:38 AM.
 
Old 03-12-2021, 09:02 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,641

Rep: Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966
Quote:
Originally Posted by postcd View Post
Arnold, i do not think it is correct. I do not understand most of the things you have written (abstract and technical). Only thing i understand that you think that recordsize has nearly no impact on reads. Why i think this is not true? Because if there is 1GB file and the recordisze is set to 4K then the drive would have to do so many transactions per second to read the file and on HDDs the tps is scarce. Explain why i am wrong. On another hand, if i set RS to 1M and there is 1K files that needs to be read, then i would guess it would cause big problems utilizing HDDs bandwidth internal as it needs to read whole 1M "block" just to get small file?)? more about this there when you search "What if i"
If you don't understand what you were told, why would you think it's incorrect??? And why ask if you think you already know the answer?? If you don't understand the technical papers and explanation, how can anyone explain things?

Again: find out for yourself. Since you are STILL not providing any details that would let anyone even guess at a suggestion. And since you can easily adjust these parameters and run tests on your own system, for your own environment and get the best results for you, why aren't you?

Last edited by TB0ne; 03-12-2021 at 09:22 AM.
 
2 members found this post helpful.
Old 03-13-2021, 03:13 AM   #5
postcd
Member
 
Registered: Oct 2013
Posts: 527

Original Poster
Rep: Reputation: Disabled
It seems no one has idea based on mentioned stats.
 
Old 03-14-2021, 08:33 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Members should consider placing the other member on their ignore list via LQ UserCP when this type of condition exists. Since both are not helping within the thread(s) by this type of posting between each other. To continually report each other helps no one. This type of communication between each other is not allowed here at LQ because each of you agreed to abide by the LQ Rules
Quote:

Personal attacks on others will not be tolerated.
  • Do not post if you do not have anything constructive to say in the post.
  • When posting in an existing thread, ensure that what you're posting is on-topic and relevant to the thread. If the content of your post will interfere with the current discussion, you should start a new thread.
  • Challenge others' points of view and opinions, but do so respectfully and thoughtfully ... without insult and personal attack. Differing opinions is one of the things that make this site great.
Along with reading LQ Rules members can find helpful information at https://www.linuxquestions.org/quest...hp?faq=welcome


If each of you continue to act in this manner will result in infractions to both!
 
2 members found this post helpful.
Old 03-16-2021, 08:31 AM   #7
postcd
Member
 
Registered: Oct 2013
Posts: 527

Original Poster
Rep: Reputation: Disabled
Since no one knows the answer so far, i have left default value 128k. I have read that the ZF$ should automatically put smaller files in smaller blocks than that. So hopefully i set it right, i am guessing no one knows how to discover if it is right from zf$ stats so i will be hoping.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ZFS or ZFS-FUSE - Which way to go and why? tallship Slackware 10 07-24-2012 10:48 PM
Zfs zfs sang_froid Solaris / OpenSolaris 6 05-31-2010 03:52 PM
LXer: Article ZFS data integrity testing and more random ZFS thoughts. LXer Syndicated Linux News 0 05-15-2010 12:51 PM
Solaris Express ZFS vs Solaris 10 ZFS? kebabbert Solaris / OpenSolaris 8 06-29-2007 07:05 AM
ZFS Root / Boot into ZFS from a usb flash drive Kataku Solaris / OpenSolaris 1 07-15-2006 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration