Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2003 12:49:12 +0100
From:      Daniel Bye <dan@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: HDD does not work up to capacity
Message-ID:  <20030613114912.GA29353@catflap.home.slightlystrange.org>
In-Reply-To: <10667.1055503952@www65.gmx.net>
References:  <10667.1055503952@www65.gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 13, 2003 at 01:32:32PM +0200, freebsd_deamon@gmx.net wrote:
> this might be an incredible stupid question but since i am not that familiar
> with disk geometry i ask it anyway:
> 
> I just bought an Hitachi DeskStar 180GXP HDD (it's the same as IBM) which is
> supposed to have a capacity of 61.4 GB but i can only get approx 58 to 59
> out of it.

This is normal.  UNIX systems tend to reserve a certain amount of the disk.
Below is an excerpt from man tunefs(8), which gives a good explanation:

    -m minfree
         Specify the percentage of space held back from normal users; the
         minimum free space threshold.  The default value used is 8%.
         This value can be set to zero, however up to a factor of three in
         throughput will be lost over the performance obtained at a 10%
         threshold.  Settings of 5% and less force space optimization to
         always be used which will greatly increase the overhead for file
         writes.  Note that if the value is raised above the current usage
         level, users will be unable to allocate files until enough files
         have been deleted to get under the higher threshold.


> 
> why?
> 
> is there a way arounf it?

There is, but I refer you to the excerpt above - you will lose performance if
you alter the default settings.  If you really want to do it, then read the
relevant man pages (newfs, tunefs, et al.) so you get a good understanding of
what you are doing, and why it's not necessarily a Good Thing...

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \



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