Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2022 12:00:29 +0100
From:      Ralf Mardorf <ralf-mardorf@riseup.net>
To:        questions@freebsd.org
Subject:   Re: how many inodes on a tmpfs mount
Message-ID:  <ff67b4986f1bf087fb0164411fabaa14bc7110e0.camel@riseup.net>
In-Reply-To: <af02d7416fb7a14d59a4a6033f6f9bf73af5a168.camel@riseup.net>
References:   <20221111102201.Horde.zCCRGyrT-BPHCJVdzNB5Btt@webmail.nethead.se> <20221111102248.9992541ce8d8bfc0eb3426e8@sohara.org> <af02d7416fb7a14d59a4a6033f6f9bf73af5a168.camel@riseup.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2022-11-11 at 11:57 +0100, Ralf Mardorf wrote:
> On Fri, 2022-11-11 at 10:22 +0000, Steve O'Hara-Smith wrote:
> > On Fri, 11 Nov 2022 10:22:01 +0100
> > Per olof Ljungmark <peo@nethead.se> wrote:
> >=20
> > > We ran out of inodes on a 2G md tmpfs mount, can someone please tell =
=20
> > > how I can calculate this number? As I understand it is a function of =
=20
> > > the size of the filesystem, but how to get the figure?
> >=20
> > 	df -i will return the number of free and used inodes - but bear in
> > mind that with ZFS the inodes belong to the pool not the filesystem.
>=20
> I suspect that the OP knows that df -i shows the free and used inodes.
> IIUC the OP wants to know how to calculate the amount of available
> inodes for a tmpfs (not a file system on a disk). Probably the OP want's
> to know how much GiB tmpfs are needed, to hold a given amount of inodes.
> In my experiences with tmpfs (on Linux, not FreeBSD), it can happen that
> tmpfs runs out of inodes. I tend to build some packages on disk instead
> of tmpfs, a package for a small disk space sized icon theme could suffer
> from countless inodes. I increased tmpfs from around 4 GiB to around 8
> GiB and probably got rid of not having enough tmpfs inodes for my needs.

Pardon, I missed to read "md".




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