Article View: muc.lists.freebsd.fs
Article #9Terminal number of files in a ZFS directory.
From: Zaphod Beeblebrox
Date: Sun, 18 Oct 2026 23:57
Date: Sun, 18 Oct 2026 23:57
62 lines
8619 bytes
8619 bytes
--000000000000919119065e262acb Content-Type: text/plain; charset="UTF-8" The TLDR is "I don't know, but I have such a directory". The directory developed on a jail. It was the maildrop directory for a postfix no longer running as the server had become a jail and no longer needed it's own mail service. The maildrop, however, continued to receive cron generated periodic mail for years. So that's 2 per day plus another one per week, IIRC. That would be about 5980 email per year. Now... give it 15 years ... 89700? That doesn't seem like enough. There must have been more crap. On the jail server, the zfs filesystem only occupies about 10G. echo * on the directory runs at 100% cpu for over a week. So I reboot (to stop it... it's stuck in kernel) and zfs send it to a NVME only system (my desktop) and try again. I was thinking that much faster disk could compensate for abominably bad big-O behavior. But this two ran for a week without finishing. What are the limits we're running into here. This is academic. I can solve the problem (already have). I still don't know what the limit is. Somewhere around September 15th, this directory started sticking finds and whatnot --- so it tipped over from working to broken. I have the filesystem, BTW... What is this limit that toggles zfs from working large directory to completely broken sysadmin problem? --000000000000919119065e262acb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>The=C2=A0TLDR is "I don't know, but I have s= uch a directory".</div><div><br></div><div>The directory developed on = a jail.=C2=A0 =C2=A0It was the maildrop directory for a postfix no longer r= unning as the server had become a jail and no longer needed it's own ma= il service.=C2=A0 The maildrop, however, continued to receive cron generate= d periodic mail for years.=C2=A0 So that's 2 per day plus another one p= er week, IIRC.=C2=A0 That would be about 5980 email per year.=C2=A0 Now... = give it 15 years ... 89700?=C2=A0 That doesn't seem like enough.=C2=A0 = There must have been more crap.</div><div><br></div><div>On the jail server= , the zfs filesystem only occupies about 10G.=C2=A0 echo * on the directory= runs at 100% cpu for over a week.=C2=A0 So I reboot (to stop it... it'= s stuck in kernel) and zfs send it to a NVME only system (my desktop) and t= ry again.=C2=A0 I was thinking that much faster disk could compensate for a= bominably bad big-O behavior.=C2=A0 But this two ran for a week without fin= ishing.</div><div><br></div><div>What are the limits we're running into= here.=C2=A0 This is academic.=C2=A0 I can solve the problem (already have)= .=C2=A0 I still don't know what the limit is.=C2=A0 Somewhere around Se= ptember 15th, this directory started sticking finds and whatnot --- so it t= ipped over from working to broken.=C2=A0 I have the filesystem, BTW...=C2= =A0</div><div><br></div><div>What is this limit that toggles zfs from worki= ng large directory to completely broken sysadmin problem?</div><div><br></d= iv></div> --000000000000919119065e262acb-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<CACpH0Md47U9Gd=jAr=02SGvZSb1j0EuC2BSKOL2cZXpMpJbq7A@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Zaphod Beeblebrox <zbeeble@gmail.com>
Newsgroups: muc.lists.freebsd.fs
Subject: Terminal number of files in a ZFS directory.
Date: Sun, 18 Oct 2026 19:57:44 -0400
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-fs@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <CACpH0Md47U9Gd=jAr=02SGvZSb1j0EuC2BSKOL2cZXpMpJbq7A@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000919119065e262acb"
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
logging-data="25281"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1792367892; h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:mime-version:mime-version:
content-type:content-type:list-id:list-help:list-owner:
list-unsubscribe:list-subscribe:list-post;
bh=zNL0jALKLX9zl+Pb3clWZt8wmAbjPXRGFUN2CMtcJ14=;
b=nG1zsB/P/5vqq3sSFmoACNKcpVh8yznjeZ4i7GQNo5DLJ9ou94QRiDSB5YSq3xxI2jT3Wd
R0GPCmHQZ0OBMFmIonUyw4iJXdfAgTvnYIQgjHK8EYQeuVt+15ydXn7mzQiUmetb51bw89
ag3rq8xw364Ji23HIx15d4CwFkryaYru0zL9qvjZvzpqJZ+VkWISkuqpQidaeVyp/qEtIA
cypG7XDwwWoygZQUCXNQgmX4ATp7ZnR7XvnvofNKKacUesrkpnqrtHfCVOp+Lf4nhc4YK8
eEtf4P5jcA3cXtFACfIfklZVg2Vyo6o+eCL9CGUaUTeg2F3SGmpLVjGC52T8kw==
X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
dkim=pass header.d=gmail.com header.s=20251104 header.b=cRWTpVVp;
arc=pass ("google.com:s=arc-20260327:i=1");
spf=pass (mx1.freebsd.org: domain of zbeeble@gmail.com designates 2607:f8b0:4864:20::1331 as permitted sender) smtp.mailfrom=zbeeble@gmail.com;
dmarc=pass (policy=none) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792367876; x=1792972676; darn=freebsd.org;
h=content-type:to:subject:message-id:date:from:mime-version:from:to
:cc:subject:date:message-id:reply-to:content-type;
bh=zNL0jALKLX9zl+Pb3clWZt8wmAbjPXRGFUN2CMtcJ14=;
b=cRWTpVVpXFE/M9mYPI3bhE/EDDNYHIeLTaSqoQx+oE08Una2MW2Z8WhJJrjnVAT8bt
NzQnWtZFrxxzhFmF4i5UQqNozyuRGooeopHOlKGibd5r2x6O6+UXbr/JZK8qMy0jEsUl
YJCocCMpKzzAzAB59zuXlZS3DVV4o7b/ibCWKp5n8TvoLEIQX+i+FoA0+rCHCTjIxFS9
ac9fa/IDCsf62M3bYLehCgJL2/1lvE8nsK3PpPYAULm5c6uGX2bStGQwTxY7pM4r9k27
U4jvBkuGt7X6Gy9s+a2Uj5nM5fANXZn8BeRi1Rf/tWCRS0OeqZLGJDyDAzmuWF7x2uvD
5t3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792367876; x=1792972676;
h=content-type:to:subject:message-id:date:from:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=zNL0jALKLX9zl+Pb3clWZt8wmAbjPXRGFUN2CMtcJ14=;
b=LkQpkC9GO2x1bhmsi+bmRFk2xoa+cdMuuN2iEC7U6IieSBiOcOSuccPVltdQwx6YAb
LOOdzOb/aQMGQvAEyyi6O/N1gBvy4JxcDz16+NmH5WjWEsXGhnou8GV9MoDM4JakhTU0
1iKqHDdgWTRP4OKjJCIPP7eghb7PoaZEdr8dsbtSjSDPrcncX2uCd8J10qIReA94OWSS
zHImLHfcSSyMfWXk92ly70Kvun/I7AVhbPl+jVx3fbrF7NJS1ykG/6/S6LfnMXo6dS54
7aVf/XAI+WU4AajLoboUU1bfGiF/7NpvBZv4V37KaIpRtz9/PQS+V56Zi0QK+qzF4J6q
8wig==
X-Gm-Message-State: AFq9FYI4j7QYOBbmHI/8faOmpZDsQeG8tnWYqE3dqZmWfG8qEJm4Thow
qn+r3yOx2c1j9iRlNCLdENZ9cd5vHpNHtCOUVK0H+D3hIW9v0S95ZXZQZzjJ8tBZS9GGfcEjBiP
HFIVcNMAZx25GNYSTnp+ydbxZygDLXaQX
X-Gm-Gg: AYBFou3JLFhD0pqMb90Zv6FBHnRk9LMggv2DrkS4I7I44tiJD29F49m38EG2/H9E5cQ
UdeCDj9seUuVsuALNleuKiKFJ3a3IVc5NXKYwO2O4zvOJIMSOX6tqH0zRU9X2zT23JWj3lY+df9
lprfbli6jdVqiSdkiQOryA7mH9CTiE12Q4eK5rxYczdt1OYMNLgO/2fhG9UWrrB/UBvOgdDHV6y
KnVrJUCqInZEfZnRPEo0ujtJV91UovVHAZ5BMGrDBvspZiZf089gWUaRd098gDgYum4UJwk3snF
cf4F1MFyGcKSJk8B077CQb1jz70jR8jxfXO1lhFvUEnY6MIr/S1v4vxqNcESRPtlkF4=
Precedence: list
X-Gm-Features: AclHuK8XydofKU59uEpEtc1co1y9U3D3uXbL3dTX1TYZxNWHKceqA7o2mLRaIoM
X-Spamd-Bar: --
X-Spamd-Result: default: False [-2.00 / 15.00];
ARC_ALLOW(-1.00)[google.com:s=arc-20260327:i=1];
DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
R_DKIM_ALLOW(-0.20)[gmail.com:s=20251104];
R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4864::/56];
MIME_GOOD(-0.10)[multipart/alternative,text/plain];
RCVD_COUNT_ONE(0.00)[1];
ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US];
FREEMAIL_ENVFROM(0.00)[gmail.com];
FREEMAIL_FROM(0.00)[gmail.com];
RCPT_COUNT_ONE(0.00)[1];
DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
MISSING_XM_UA(0.00)[];
MIME_TRACE(0.00)[0:+,1:+,2:~];
RCVD_TLS_LAST(0.00)[];
MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org];
FROM_EQ_ENVFROM(0.00)[];
FROM_HAS_DN(0.00)[];
RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1331:from];
TO_MATCH_ENVRCPT_ALL(0.00)[];
TO_DN_ALL(0.00)[];
PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org];
MID_RHS_MATCH_FROMTLD(0.00)[];
DKIM_TRACE(0.00)[gmail.com:+]
X-Rspamd-Queue-Id: 4j7Fx26v9Kz4P6f
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes