
Admins were not happy. Initial attempts to resolve the issue by replacing files with hardlinks also failed due to ext4’s 65,000 hardlink limit.
When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works .
A single tiny GIF, frequently used in chats by a site's community members, ended up adding 377GB to the website's backup quota, breaking its Linux filesystem and causing the backup process to fail. The Jennifer Aniston ‘happy dance’ reaction GIF weighs in at 1.6MB, and in the headlining case, it was duplicated 246,173 times in the backup, writes Discourse tech blogger Jake Goldsborough. This problem was precipitated by, dare we say, an overuse of the happy dance GIF, plus a file security policy implementation. Fixing it wasn’t entirely straightforward.
A GIF of Rachel from Friends doing a happy dance was duplicated 246,173 times on one Discourse site. 1.6 MB became 377 GB of backup bloat and broke a filesystem limit.Turns out Jennifer Aniston can stress-test infrastructure:https://t.co/I80bfhKJBG April 9, 2026
Discourse is a company and open‑source software project that builds one of the most widely used modern community‑discussion platforms, currently powering over 22,000 online communities. Its real-time chat platform allows users to insert emojis and GIFs in their discussions to liven up debates. But the platform’s ‘secure uploads’ feature means that “when a file moves between security contexts (say, from a private message to a public post), the system creates a new copy with a randomized SHA1,” explains Goldsborough. “The original content is identical, but Discourse treats it as a new file.” So, a popular image or reaction GIF will spread across posts, reposts, and PMs, and each context creates another file copy.
Discourse’s first attempt at a fix for the system being swamped by duplicates was to track original content by its hash. Then, during backup, group uploads by the hash and download only the first file in each group. Hardlinks were created for any duplicates.
You may like 390TB video game archive being taken offline due to skyrocketing RAM, SSD, and hard drive prices Notorious 'Archive Today' website allegedly leads bizarre DDoS campaign against security blogger Claude Code deletes developers' production setup, including its database and snapshots No one told them life was gonna be this way This seemed like an elegant solution until one of Discourse’s larger customers made everyone aware of the ext4 limit of roughly 65,000 hardlinks per inode. In the headlining case, the backup worked with this first fix, but “instead of one download for all 246,173 duplicates, we got one download plus ~181,000 fallback downloads after hitting the limit,” explains the firm’s blog. “Not the win I expected.”
One of Discourse’s other customers had 432GB of uploads and a correspondingly hefty backup. However, analysis indicated that the unique content was just 26GB. In other words, duplicates were behind a 16x inflation factor.
The absurdly duplicated file that created 377GB of bloat was Rachel from Friends doing her happy dance. So, the problematic site was obviously quite a happy one, with the reaction GIF “used constantly in posts, PMs, everywhere,” noted Discourse.
Also happily, Discourse managed to fathom a fix for its earlier fix. In effect, this new fix begins like the old one, by creating hardlinks. But when the filesystem throws up an EMLINK error message (too many hardlinks), it will copy the file locally and treat the new file as ‘primary’ until it reaches the limit again. This new measure “works on any filesystem, no configuration needed,” says Discourse, with some satisfaction.
Discourse ends by highlighting the lessons learned from its confounding animated GIF duplication frenzy, wryly observing that “now I know Jennifer Aniston can stress-test infrastructure.”
Get Tom's Hardware's best news and in-depth reviews, straight to your inbox.
Key considerations
- Investor positioning can change fast
- Volatility remains possible near catalysts
- Macro rates and liquidity can dominate flows
Reference reading
- https://www.tomshardware.com/service-providers/web-hosting/SPONSORED_LINK_URL
- https://www.tomshardware.com/service-providers/web-hosting/friends-gif-cripples-website-discussion-platform-backup-with-377-gigabytes-of-rachels-happy-dance-1-6mb-animation-was-replicated-246-173-times-breaking-filesystem-limit#main
- https://www.tomshardware.com
- Grab the ultra-fast Elegoo Centauri Carbon 3D printer for just $285 right now, saving you $128 — limited-time sale price nets you a fully enclosed Core-XY print
- Our experts review your astonishing PC builds and setups in Rig Rundown — from wall-mounted setups to a system packed inside of a 1:6 scale RC car
- Advancing Open Source AI, NVIDIA Donates Dynamic Resource Allocation Driver for GPUs to Kubernetes Community
- Game On: Five New Titles Now Streaming on GeForce NOW
- Save $680 instantly on this massive Corsair 96GB DDR5-6000 RAM kit — 57% discount slashes price tag to $499
Informational only. No financial advice. Do your own research.