Default inode number too low in FFS nowadays?

Borja Marcos borjam at sarenet.es
Wed Nov 2 12:14:55 UTC 2011


Hi

Today I´ve come across an issue long ago forgotten :) Running out of i-nodes.

The condition was triggered on a 8 GB /usr filesystem which includes the ports tree, on which I have compiled several ports and their dependencies.  I know, maybe not the best practices, it's a machine being used to test a couple of thingies, but I wonder how many newbies can run into such a problem. I guess many.

Filesystem     1K-blocks    Used        Avail           Capacity iused     ifree      %iused  Mounted on
/dev/ad1s1e   8245660     5308960 2277048    70%        507099  61219   89%       /usr

Now i-nodes aren't completely full, as I have deleted /usr/obj (turns out I had made a make world as well).

Looking at the number of i-nodes per /usr subdirectory, I have noticed that, wow! /usr/ports consumes A LOT of them. 

freebsd9-borja#	find . -print | wc -l
  405481

I know the /usr isn't that large, and I know that I have compiled a lot on this battered /usr filesystem, but with the increasing complexity of many programs and the increased number of dependences in ports, I would:

1) At least double the default number of i-nodes per filesystem

2) Suggest strongly in sysinstall to create a /usr/ports filesystem for the ports. But probably this won't be popular and many people will tend to create a single large root to rule them all....

What do you think?  I can't imagine what it might have been if I had compiled Gnome or KDE... :D






Borja.


For the record, the ports I had compiled are:
drwxr-xr-x  3 root  wheel   512 Oct 11 18:21 converters/libiconv/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:19 converters/php52-iconv/work
drwxr-xr-x  3 root  wheel   512 Oct 13 11:16 databases/db42/work
drwxr-xr-x  3 root  wheel   512 Oct 13 11:14 databases/gdbm/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:05 databases/mysql51-client/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:13 databases/mysql51-server/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:19 databases/php52-mysql/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:19 databases/php52-pdo/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:20 databases/php52-pdo_mysql/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:19 databases/php52-pdo_sqlite/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:21 databases/php52-sqlite/work
drwxr-xr-x  3 root  wheel  1024 Oct 13 10:34 databases/rrdtool/work
drwxr-xr-x  4 root  wheel   512 Oct 13 11:18 devel/apr1/work
drwxr-xr-x  2 root  wheel   512 Oct 13 11:12 devel/autoconf-wrapper/work
drwxr-xr-x  3 root  wheel   512 Oct 13 11:12 devel/autoconf/work
drwxr-xr-x  2 root  wheel   512 Oct 13 11:13 devel/automake-wrapper/work
drwxr-xr-x  3 root  wheel   512 Oct 13 11:14 devel/automake/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:26 devel/bison/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:24 devel/gamin/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:25 devel/gettext/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:24 devel/gio-fam-backend/work
drwxr-xr-x  3 root  wheel  1024 Oct 13 10:22 devel/glib20/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:25 devel/gmake/work
drwxr-xr-x  4 root  wheel  1024 Oct 13 10:27 devel/gobject-introspection/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:28 devel/gperf/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:29 devel/libcheck/work
drwxr-xr-x  3 root  wheel   512 Oct 17 17:06 devel/libevent/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:26 devel/libffi/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:40 devel/libpthread-stubs/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:20 devel/libtool/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:25 devel/m4/work
drwxr-xr-x  3 root  wheel   512 Oct 13 11:12 devel/p5-Locale-gettext/work
drwxr-xr-x  3 root  wheel   512 Oct 13 11:27 devel/p5-TimeDate/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:19 devel/pcre/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:19 devel/php52-json/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:18 devel/php52-pcre/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:18 devel/php52-spl/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:21 devel/php52-tokenizer/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:26 devel/pkg-config/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:41 devel/xorg-macros/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:24 graphics/cairo/work
drwxr-xr-x  3 root  wheel   512 Oct 13 09:00 graphics/png/work
drwxr-xr-x  2 root  wheel   512 Oct 13 12:22 lang/php52-extensions/work
drwxr-xr-x  3 root  wheel   512 Oct 13 11:21 lang/php52/work
drwxr-xr-x  3 root  wheel  1024 Oct 11 18:39 lang/python27/work
drwxr-xr-x  3 root  wheel   512 Oct 13 11:27 mail/p5-Mail-Tools/work
drwxr-xr-x  3 root  wheel   512 Oct 13 11:12 misc/help2man/work
drwxr-xr-x  3 root  wheel   512 Oct 17 17:04 net/bird/work
drwxr-xr-x  5 root  wheel  1024 Oct 17 17:08 net/openbgpd/work
drwxr-xr-x  4 root  wheel   512 Oct 17 17:06 net/openospfd/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:20 net/php52-sockets/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:27 print/freetype2/work
drwxr-xr-x  3 root  wheel  1024 Oct 11 18:33 security/libgcrypt/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:32 security/libgpg-error/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:18 security/php52-filter/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:18 security/php52-hash/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:20 sysutils/php52-posix/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:26 textproc/expat2/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:26 textproc/intltool/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:36 textproc/libxml2/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:36 textproc/libxslt/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:26 textproc/p5-XML-Parser/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:17 textproc/php52-ctype/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:18 textproc/php52-dom/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:18 textproc/php52-simplexml/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:21 textproc/php52-xml/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:22 textproc/php52-xmlreader/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:22 textproc/php52-xmlwriter/work
drwxr-xr-x  3 root  wheel   512 Oct 13 11:19 www/apache22-event-mpm/work
drwxr-xr-x  3 root  wheel   512 Oct 13 13:18 www/mod_fcgid/work
drwxr-xr-x  3 root  wheel   512 Oct 13 12:20 www/php52-session/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:32 x11-fonts/bdftopcf/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:32 x11-fonts/bitstream-vera/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:32 x11-fonts/encodings/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:30 x11-fonts/font-bh-ttf/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:31 x11-fonts/font-misc-ethiopic/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:30 x11-fonts/font-misc-meltho/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:32 x11-fonts/font-util/work
drwxr-xr-x  3 root  wheel  1024 Oct 13 09:01 x11-fonts/fontconfig/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:31 x11-fonts/fontsproto/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:32 x11-fonts/libXfont/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:28 x11-fonts/libXft/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:30 x11-fonts/libfontenc/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:30 x11-fonts/mkfontdir/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:30 x11-fonts/mkfontscale/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:43 x11-fonts/xf86bigfontproto/work
drwxr-xr-x  2 root  wheel   512 Oct 13 10:32 x11-fonts/xorg-fonts-truetype/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:33 x11-toolkits/pango/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:41 x11/bigreqsproto/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:42 x11/inputproto/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:42 x11/kbproto/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:45 x11/libX11/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:29 x11/libXau/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:29 x11/libXdmcp/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:45 x11/libXrender/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:40 x11/libxcb/work
drwxr-xr-x  3 root  wheel   512 Oct 13 10:18 x11/pixman/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:41 x11/renderproto/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:39 x11/xcb-proto/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:40 x11/xcb-util/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:41 x11/xcmiscproto/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:42 x11/xextproto/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:29 x11/xproto/work
drwxr-xr-x  3 root  wheel   512 Oct 11 18:42 x11/xtrans/work





More information about the freebsd-fs mailing list