From nobody Fri Nov 11 12:02:43 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 4N7y532wXxz4dJCL for ; Fri, 11 Nov 2022 12:02:47 +0000 (UTC) (envelope-from olivier.freebsd@free.fr) Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [IPv6:2a01:e0c:1:1599::15]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4N7y524g2xz3qSc for ; Fri, 11 Nov 2022 12:02:46 +0000 (UTC) (envelope-from olivier.freebsd@free.fr) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=free.fr header.s=smtp-20201208 header.b=XFQNYkzY; spf=pass (mx1.freebsd.org: domain of olivier.freebsd@free.fr designates 2a01:e0c:1:1599::15 as permitted sender) smtp.mailfrom=olivier.freebsd@free.fr; dmarc=pass (policy=none) header.from=free.fr Received: from ravel.localnet (unknown [109.210.33.132]) (Authenticated sender: olivier.freebsd@free.fr) by smtp6-g21.free.fr (Postfix) with ESMTPSA id 8597678034D for ; Fri, 11 Nov 2022 13:02:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1668168163; bh=hEtraxCmMAQMVmo4UCrG7FuInDu4YU608HY2fVKjYKQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XFQNYkzYnlsi017Sgwhhsu52NyGh8l2joCyWWuc7BhKUDEe8t+exj8sgCY+fc3mgL wtCJjT0BZwQPr7XGOqeA7gePkOwzALmIYraCZ4gzXyxa9P/NGazZQa/SWQeu993Pqz 78Z/MUF8m2+sfXnt1BVFoMh8fVL42UZiZwDdeWUaN+AIyL6xid82IpDaiPUm8r19Q2 h68f7U+FUCCMRyJvp8ZI4vmU3lPCRUXHXd1RCs0LHGtzBEcc5DMdyHIKH0FNiJq378 2nGxXd0BFSFgzXLLxaQ6ZppmSmoHj0ru4PDUCKSCBLP0CGW2XyU0/Bq4TOdeJTT7Xg pC4ARIklQckHQ== From: Olivier Certner To: questions@freebsd.org Subject: Re: how many inodes on a tmpfs mount Date: Fri, 11 Nov 2022 13:02:43 +0100 Message-ID: <1851179.vR5SVPPSqJ@ravel> In-Reply-To: <20221111121631.Horde.nVbOqfptLBP5YB7LbLG53ZK@webmail.nethead.se> References: <20221111102201.Horde.zCCRGyrT-BPHCJVdzNB5Btt@webmail.nethead.se> <3923778.p4y8TspHLy@ravel> <20221111121631.Horde.nVbOqfptLBP5YB7LbLG53ZK@webmail.nethead.se> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: -- X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[free.fr,none]; MID_RHS_NOT_FQDN(0.50)[]; CTE_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[free.fr:s=smtp-20201208]; R_SPF_ALLOW(-0.20)[+ip6:2a01:e0c:1:1599::15]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a01:e0c:1:1599::15:from]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[free.fr:dkim]; DKIM_TRACE(0.00)[free.fr:+]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[free.fr]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:12322, ipnet:2a01:e00::/26, country:FR]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[free.fr]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4N7y524g2xz3qSc X-ThisMailContainsUnwantedMimeParts: N > 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. -- Olivier Certner