From nobody Fri Nov 11 13:38:02 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N80C52brGz4dbjn for ; Fri, 11 Nov 2022 13:38:09 +0000 (UTC) (envelope-from peo@nethead.se) Received: from ns1.nethead.se (ns1.nethead.se [5.150.237.139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "ns1.nethead.se", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N80C426zxz443Z for ; Fri, 11 Nov 2022 13:38:08 +0000 (UTC) (envelope-from peo@nethead.se) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nethead.se header.s=NETHEADSE header.b=LJlOI064; spf=pass (mx1.freebsd.org: domain of peo@nethead.se designates 5.150.237.139 as permitted sender) smtp.mailfrom=peo@nethead.se; dmarc=pass (policy=none) header.from=nethead.se X-Virus-Scanned: amavisd-new at Nethead AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nethead.se; s=NETHEADSE; t=1668173884; bh=5AmLGgFd/OTHhP0pAyy+wIR7U1LV1P/qdhConyCBVuA=; h=Date:From:To:Subject:References:In-Reply-To; b=LJlOI064EKx+FtOP7nAjY1azxxji4neU7KeI5C+MnWjetVJ3dcDNFGDhZxDjdSmjI wZ9z7BonUAMTY1coDCxCLa1O+X3GUShme7WJDQhu8ARCrBOgMuGrYIT9q5aynGlbtl ZpXaBaw/5IuImAtglBYkJRZuFYcwX9FPYs0c8VUE= Date: Fri, 11 Nov 2022 14:38:02 +0100 Message-ID: <20221111143802.Horde.xnQVF9GeSpUQzOrb-7ddaz4@webmail.nethead.se> From: Per olof Ljungmark To: questions@freebsd.org Subject: Re: how many inodes on a tmpfs mount References: <20221111102201.Horde.zCCRGyrT-BPHCJVdzNB5Btt@webmail.nethead.se> <3923778.p4y8TspHLy@ravel> <20221111121631.Horde.nVbOqfptLBP5YB7LbLG53ZK@webmail.nethead.se> <1851179.vR5SVPPSqJ@ravel> In-Reply-To: <1851179.vR5SVPPSqJ@ravel> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Disposition: inline X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.74 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[nethead.se,none]; NEURAL_SPAM_MEDIUM(0.26)[0.256]; R_SPF_ALLOW(-0.20)[+ip4:5.150.237.139]; R_DKIM_ALLOW(-0.20)[nethead.se:s=NETHEADSE]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[nethead.se:+]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:8473, ipnet:5.150.192.0/18, country:SE] X-Rspamd-Queue-Id: 4N80C426zxz443Z X-ThisMailContainsUnwantedMimeParts: N Quoting Olivier Certner : >> Filesystem Size Used Avail Capacity iused ifree %iused Mounted on >> /dev/md1 1.9G 489M 1.3G 27% 119k 143k 45% > > Mmm... For example, I get ~4M inodes per gigabyte on my machines with tmpfs. > > It seems you're in fact using mdmfs(8) and that it is defaulting to > creating some UFS filesystem instead of a tmpfs one. You can confirm > that by running 'mount | grep -F /dev/md1' and checking the > filesystem type (should be ufs, not tmpfs). > > How is your md mounted? Could you provide the command-line, or the > corresponding line in '/etc/fstab'? You should use 'tmpfs' as the > device name in both cases. md / mfs rw,-s2g,-wwww:wheel,-p770 2 0 -- Per olof Ljungmark M: +46 707 502 046 Skype: pappapo1 Nethead AB SE556815226701