mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Artem S. Tashkinov" <aros@gmx.com>
To: d@ilvokhin.com
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, david@kernel.org
Subject: mm: tmpfs: huge=always Kconfig help understates severe space amplification (follow up)
Date: Sat, 31 Oct 2026 15:22:15 +0000	[thread overview]
Message-ID: <73f0a43e-e314-4a31-bf1d-184019d58ed8@gmx.com> (raw)

Hi Dmitry,

One additional observation concerning diagnostic tools:

In this situation, ordinary du reports 45 GiB for a tree containing only 
1.4 GiB of apparent data.

Although this is technically correct allocation accounting, it makes 
identifying the cause quite difficult. Both df and du show an almost 
full filesystem, while neither explains that huge-page allocation 
overhead is responsible for most of the consumption.

Only comparing du against du --apparent-size exposed the scale of the 
discrepancy.

This reinforces the need for explicit Kconfig documentation: users 
investigating unexpectedly exhausted tmpfs filesystems may reasonably 
conclude that they have accumulated excessive data, rather than 
recognising that the selected allocation policy is consuming vastly more 
space than the contents require.

I am not suggesting that GNU du is itself defective. Rather, this is a 
diagnostic trap worth documenting alongside the configuration option.

Regards,
Artem

                 reply	other threads:[~2026-10-31 15:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=73f0a43e-e314-4a31-bf1d-184019d58ed8@gmx.com \
    --to=aros@gmx.com \
    --cc=d@ilvokhin.com \
    --cc=david@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®