From owner-freebsd-questions@FreeBSD.ORG Mon Apr 16 17:02:23 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8F5C106566B for ; Mon, 16 Apr 2012 17:02:23 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 66C2B8FC1A for ; Mon, 16 Apr 2012 17:02:23 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id q3GH2gqK024311 for freebsd-questions@freebsd.org; Mon, 16 Apr 2012 12:02:42 -0500 (CDT) Date: Mon, 16 Apr 2012 12:02:42 -0500 (CDT) From: Robert Bonomi Message-Id: <201204161702.q3GH2gqK024311@mail.r-bonomi.com> To: freebsd-questions@freebsd.org In-Reply-To: <64897541.20120416193244@yandex.ru> Subject: Re: Re[2]: newfs create to little inodes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2012 17:02:23 -0000 > From kes-kes@yandex.ru Mon Apr 16 11:33:26 2012 > Date: Mon, 16 Apr 2012 19:32:44 +0300 > From: Eugen Konkov > To: Robert Bonomi > 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 >