All of lore.kernel.org
 help / color / mirror / Atom feed
* ext3 block size question
@ 2003-08-25  7:29 jshankar
  2003-08-25 14:22 ` Zachary Peterson
  0 siblings, 1 reply; 2+ messages in thread
From: jshankar @ 2003-08-25  7:29 UTC (permalink / raw)
  To: linux-fsdevel

Hello,

I was measuring the performance of ext3 file system. As the block size 
increases,read and write performance improves.  why there is a better 
performance improvement for large block sizes??.

Thanks
Jayshankar


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ext3 block size question
  2003-08-25  7:29 ext3 block size question jshankar
@ 2003-08-25 14:22 ` Zachary Peterson
  0 siblings, 0 replies; 2+ messages in thread
From: Zachary Peterson @ 2003-08-25 14:22 UTC (permalink / raw)
  To: jshankar; +Cc: linux-fsdevel


So it's my understanding that by increasing the block size, you guarantee
the contiguity of files.  For instance, GPFS uses a 256K block to achieve
high performance for parallel and cluster computing applications.  It
essentially reduces the number of seeks required to read a large file.
(Seek time being one of the largest components of IO latency.)

There's a drawback, however, in that large blocks incur internal
fragmentation, or the unused storage space contained in a block.
Consider the 1K file being backed by 256K block.  Also, there's poor
integration with the page cache and virtual memory by virtue of a mismatch
in page/block sizes.  Large blocks have to be pined in memory or the
memory system has to perform read-modify-write.

This is why many file systems opt for a block size that's small, usually
the same size or smaller than the page size.  This puts a lot more
importance on allocation techniques to insure block contiguity.


Zachary

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Zachary Peterson       zachary@cse.ucsc.edu
                       http://znjp.com

856D 29FA E1F7 DB5E 9215  C68D 5F0F 3929 C929 9A72

On Mon, 25 Aug 2003, jshankar wrote:

>Hello,
>
>I was measuring the performance of ext3 file system. As the block size
>increases,read and write performance improves.  why there is a better
>performance improvement for large block sizes??.
>
>Thanks
>Jayshankar
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-25 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-25  7:29 ext3 block size question jshankar
2003-08-25 14:22 ` Zachary Peterson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.