Date: Fri, 11 Nov 2022 11:57:06 +0100 From: Ralf Mardorf <ralf-mardorf@riseup.net> To: questions@freebsd.org Subject: Re: how many inodes on a tmpfs mount Message-ID: <af02d7416fb7a14d59a4a6033f6f9bf73af5a168.camel@riseup.net> In-Reply-To: <20221111102248.9992541ce8d8bfc0eb3426e8@sohara.org> References: <20221111102201.Horde.zCCRGyrT-BPHCJVdzNB5Btt@webmail.nethead.se> <20221111102248.9992541ce8d8bfc0eb3426e8@sohara.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Hi, 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. Regards, Ralf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?af02d7416fb7a14d59a4a6033f6f9bf73af5a168.camel>