Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2005 19:33:31 +0100
From:      Freminlins <freminlins@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: defragmentation in FreeBSD 4.11
Message-ID:  <eeef1a4c05072811336b86641a@mail.gmail.com>
In-Reply-To: <060c01c59397$2876b460$c901a8c0@workdog>
References:  <eeef1a4c050728094127f97afb@mail.gmail.com> <060c01c59397$2876b460$c901a8c0@workdog>

next in thread | previous in thread | raw e-mail | index | archive | help
Gayn Winters wrote:
=20
> What I get from reading this article is that if the use of the file
> system is to store lots of small files, then use a small block size.  Am
> I missing something?

No and yes! There is a minimum block and fragment size. In this case
there were not enough contiguous fragments to enable an 8K file to be
created. Without checking I believe Solaris uses 8K blocks.

> Also, in most situations, buying a big enough disk is far better than
> worrying about what happens when a not-big-enough disk starts to get
> full.

Indeed. But... in the case I linked to there was apparently plenty of
free space, just not enough free contiguous space. The author also
implies that a bigger disk would not solve the problem:

  "it creates and deletes tons of small files and thus the fragmentation=20
  over a period of time."

As mentioned though I have never seen this myself despite running very
busy mail and web servers with what must be billions of files being
created/deleted in that time.

It certainly grabbed my attention so I thought it may be of interest to oth=
ers.

> -gayn

Frem.



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