Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Apr 2012 12:02:42 -0500 (CDT)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Re[2]: newfs create to little inodes
Message-ID:  <201204161702.q3GH2gqK024311@mail.r-bonomi.com>
In-Reply-To: <64897541.20120416193244@yandex.ru>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> From kes-kes@yandex.ru  Mon Apr 16 11:33:26 2012
> Date: Mon, 16 Apr 2012 19:32:44 +0300
> From: Eugen Konkov <kes-kes@yandex.ru>
> To: Robert Bonomi <bonomi@mail.r-bonomi.com>
> CC: freebsd-questions@freebsd.org
> Subject: Re[2]: newfs create to little inodes
>
> >>
> >> Does newfs always must create sufficient count of inodes? 
>
> RB> This begs the question of 'what is a sufficient count of inodes?"
>
> RB> It is well-known that the required 'inode densidy' depends on the usage
> RB> of the filesystem.
>
> RB> Newfs uses defaults that are 'reasonable' for 'typical' use, and are
> RB> rarely insuficient.
>
> 'typical' use: install system and install ports
> fetch sources and buildworld
> this cause me insuficient inodes

Something about -your- installation is causing you to run out of inodes.

A 'normal' FFS newfs with all default values would have roughly twice the
number of inodes you show.   And, assumig similar size files, would 
let the disk fill to over 94% capacity before runnig out of inodes.

> >> Filesystem size   used  avail  capacity iused ifree %iused  mounted on
> >> /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k    0     100%   /mnt/disk1
>
> I know 'man' and can read that.

but apparently  _didn't_, since it discusses the calculation for default
inode counts, and effective average file size.   

Those figures do -not- match what you claim is the situation on your 
machine.

It would be wise to determine _why_ your system is 'non-standard' in
that respect, before requesting a change in 'standard' behavior.

>                                 I only ask to use different values for
> disks with size ~5G. this change will make life easier for newbies.

You need to figure out why YOU have only half the 'normaal' number of 
inodes on -your- filesystem.

> I only question: 'Is this change will make life easier for others'?
> I do not ask, why I can not do something, or help me or else.

Quote:  "or must I supply somme additional options when creating FS?' unquote.

That sure looks like a 'help me' request.


> RB> *IF*, however, you know you will be creating lots of 'tiny' files on a
> RB> particular filesystem, it is a GOOD IDEAT(tm) to use non-default settings.
>
> >>                                                           or I must
> >> supply some addition options when creating FS?
>
> RB> "Read the fine manpage" applies. along with 'know your useage'.
>
> >> #df -ih
> >> Filesystem size   used  avail  capacity iused ifree %iused  mounted on
> >> /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k    0     100%   /mnt/disk1
> >>
> RB> Yup.  RTFM is -definitely- indicated.
> >>
>
>
>
> -- 
> N oaa{c-cedilia}aeieaei,
>  Eugen                          mailto:kes-kes@yandex.ru
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201204161702.q3GH2gqK024311>