DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd May 2011
kly kly is offline
New User
 
Join Date: Sep 2009
Posts: 6
Default How do you pick the best block size?

Hi,

We have always accepted the defaults for our servers but I'd like to try customizing settings for better space and performance. Does anyone have a good formula or can point me to some good documentation on picking the best block size? We're going to have a new hard drive with a smaller number of bigger files.

I understand about picking a good inode density based on how many files we'll store. I also see that they recommend a frag size of 1/8 the blocksize. I know they recommend larger blocks, but I'm just confused about how do you know the best size to pick? What is the maximum blocksize UFS2 supports?

Thanks!
Reply With Quote
  #2   (View Single Post)  
Old 3rd May 2011
sharris sharris is offline
Package Pilot
 
Join Date: Jun 2010
Posts: 146
Default

I don't know but was hoping by now I have some concerns about block-size. I do know it is the kind of thing that is better learn through detailed documentation and paper and I tried once but fail because I got board ... now I find this.

http://unix.derkeiler.com/Mailing-Li.../msg01123.html

These few words can put us both on the right track providng idea of what to start googling until you hear more here.

newfs -f 2048 -b 16384
Now it seem pretty simple. There are only about 4x4 ways using 8, 16, 32, and maybe 64... Try each and benchmark at the receiving end to get your base-line.

This here makes it seem so hard:
http://computer-forensics.sans.org/b...c-tips-tricks/

but interesting. Now I find nothing but detailed documentation and paper again, and all that is needed to know is that it's a newfs thing.

Last edited by sharris; 3rd May 2011 at 07:07 AM.
Reply With Quote
  #3   (View Single Post)  
Old 3rd May 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by sharris View Post
These few words can put us both on the right track providng idea of what to start googling until you hear more here.
Per the cited thread:
Quote:
>> I have read this below quoted information that to increase performance, one
>> can set a Block Size. If so, how much? Could some genius advise what to do?
>
> Take the defaults.
Sage advise.
Reply With Quote
  #4   (View Single Post)  
Old 3rd May 2011
sharris sharris is offline
Package Pilot
 
Join Date: Jun 2010
Posts: 146
Default

Quote:
Sage
Ya, he did say experts. But it did piece a little bit of it together. I did not know it could be so simple, if it is related at all.

PS: Once I know what make something tick, I never default until I tried a few thing on my own now matter what the claim

Last edited by sharris; 3rd May 2011 at 08:07 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
inode size support for ext2/3 guitarscn OpenBSD General 2 30th October 2009 03:46 PM
CLI font size idefix FreeBSD General 3 7th February 2009 11:19 AM
Negative partition size? giga FreeBSD General 1 2nd January 2009 09:02 PM
Change the Size of a Slice kienjakenobi FreeBSD General 9 27th June 2008 03:01 PM
apache fd size problem oxy FreeBSD Ports and Packages 0 10th May 2008 10:49 AM


All times are GMT. The time now is 03:43 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick