this post was submitted on 16 Jun 2026
312 points (97.3% liked)

linuxmemes

31767 readers
1979 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 3 years ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] tal@lemmy.today 2 points 15 hours ago* (last edited 7 hours ago) (1 children)

    I wrote this because my /tmp tmpfs was taking up 32GB of ram despite the files inside summing to only 3MB.

    Note that tmpfs doesn't force its contents to remain in memory


    the kernel can move stuff there to swap space if it needs to do so.

    Ramfs is the filesystem that keeps things locked in memory:

    https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt

    With ramfs, there is no backing store.  Files written into ramfs allocate
    dentries and page cache as usual, but there's nowhere to write them to.
    This means the pages are never marked clean, so they can't be freed by the
    VM when it's looking to recycle memory.
    

    ramfs and tmpfs:
    ----------------
    
    One downside of ramfs is you can keep writing data into it until you fill
    up all memory, and the VM can't free it because the VM thinks that files
    should get written to backing store (rather than swap space), but ramfs hasn't
    got any backing store.  Because of this, only root (or a trusted user) should
    be allowed write access to a ramfs mount.
    
    A ramfs derivative called tmpfs was created to add size limits, and the ability
    to write the data to swap space.  Normal users can be allowed write access to
    tmpfs mounts.  See Documentation/filesystems/tmpfs.txt for more information.
    [–] Redjard@reddthat.com 1 points 15 hours ago

    Maybe. It's been a while so I don't know 100% this was put to the test, but I wanna say the system has a weird kernel which leads to it not swapping out tmpfs properly.

    But ordinarily you should be right, this would simply ruin the stats visually until something forced it to swap out, since konsole shouldn't be accessing it.