lkml.org 
[lkml]   [2014]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Howto tell kernel to use 4096 as granularity & minimum size?
On Mon, 21 Jul 2014 13:45:22 -0700
Linda Walsh <lkml@tlinx.org> wrote:

> Dave Chinner wrote:
> >
> >> I can partition the disk and setup the allocation size
> >> to 4096, but I'd like to tell the kernel to use a
> >> virtual-size of 4096 for the sector as an additional
> >> performance 'hint', so nothing will even try to use
> >> smaller i/o's than that.
> >>
> >
> > Just format the filesystem with 4k sector size.
> ---
> Good idea, though.. I wanted to set it for the whole "disk"(array)
> as it (multiple 4T drives) will be subdivided into multiple filesystems
> and have lvm and a partition table under the file system(s),
> so telling the kernel to only do 4K alloc+io's to the whole thing
> would cover the most with the least.

Also before you format it read the specification if you are using SATA
drives. The disk is not necessarily aligned so that the physical/logical
block boundary is as you'd expect. Some devices have a partial physical
sector at the start in order to make it happen to work nicely with legacy
software.

Good fdisk tools know about this. It's in the ATA8 specification for
identify.

Alan


\
 
 \ /
  Last update: 2014-07-23 16:01    [W:0.073 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site