Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 02:28:05 -0600 (CST)
From:      Ryan Thompson <ryan@sasknow.com>
To:        uwi mAn <uwiman3k@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: out of inodes
Message-ID:  <20020402021824.U13694-100000@catalyst.sasknow.net>
In-Reply-To: <F24SAH2JZZJfwTXSRdZ0001e1a2@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
uwi mAn wrote to ryan@sasknow.com:

> Well you see, I have two FreeBSD machines
>
> 1) 20 GB UFS {sole BSD}
> I have ports [60,000 files, doesnt matter] there among other shit which
> includes several web sites, etc... and I have NO problems. [19 GB full of
> data in total]
>
> 2) 509 MB UFS slice [along with FAT32 on same hdd]
> no matter how much space I dedicate to / slice, I run into same trouble
> every time. [about 80 megs are being left on device when the error occurs]
> Switching/resizing off/on swap doesnt help.

Completely normal. The smaller the partition, the fewer inodes
allocated. On a 19GB partition, you can have WAY more inodes than you
know what to do with, typically. With the default settings of 4K per
inode, a 19GB partition will have nearly 5M inodes available. I don't
know of many people than have 5 million files.

On a 509MB partition, you are much more likely to run out of inodes.
4K per inode becomes much more serious... you can have a maximum of
about 130,000 inodes.


> >Run 'df -i' to see the iused and ifree columns, which basically
> >show you how many files you have created vs. how many files you can
> >create, for each partition. To increase ifree, you must re-run
> >newfs with a lower -i value.
>
> thanks Ryan, I'll try that. Anyway, what value would you recommend?

The default is 4 * frag size (4K per inode). This means that your
average file size must be greater than 4K if you want to utilize all
of the SPACE on the drive without running out of inodes.

You can double the amount of available inodes by using -i 2048.
Quadruple with -i 1024.

- Ryan

-- 
  Ryan Thompson <ryan@sasknow.com>
  Network Administrator, Accounts

  SaskNow Technologies - http://www.sasknow.com
  #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2

        Tel: 306-664-3600   Fax: 306-664-1161   Saskatoon
  Toll-Free: 877-727-5669     (877-SASKNOW)     North America


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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