Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 2015 19:53:06 +1100 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Hans Petter Selasky <hp@selasky.org>
Cc:        Bruce Evans <brde@optusnet.com.au>, Warner Losh <imp@freebsd.org>,  src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r289405 - head/sys/ufs/ffs
Message-ID:  <20151016194242.N2138@besplex.bde.org>
In-Reply-To: <5620B15C.8090104@selasky.org>
References:  <201510160306.t9G3622O049128@repo.freebsd.org> <20151016151349.W1280@besplex.bde.org> <5620B15C.8090104@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 16 Oct 2015, Hans Petter Selasky wrote:

> On 10/16/15 08:21, Bruce Evans wrote:
>> [Bruce Evans didn't write:]
>> In addition, making the file contiguous in LBA space doesn't
>>   improve the access times from flash devices because they have no seek
>> time.
>
> This is not exactly true, like Bruce pointed out too. Maybe there should be a 
> check, that if the block is too small reallocate it, else leave it for the 
> sake of the flash. Doing 1K accesses versus 64K accesses will typically show 
> up in the performance benchmark regardless of how fast the underlying medium 
> is.

Now I don't unerstand the whole point of the change.  Anything that reduces
i/o's is good, but AFAIK ffs_doreallocblks() is all in software.  Writes
should be delayed so that it doesn't have to do extra i/o's to back out of
committed writes.  Often it reduces the number of writes and increases
their size by making blocks contiguous so that the write can be clustered.
Increasing the write size is especially good for flash devices, but maybe
ffs's default block size is already large enough.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151016194242.N2138>