Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    The Download: what Moltbook tells us about AI hype, and the rise and rise of AI therapy

    Making AI Work, MIT Technology Review’s new AI newsletter, is here

    I Used To Care More About Upgrading My Phone

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026

      To avoid accusations of AI cheating, college students are turning to AI

      January 29, 2026

      ChatGPT can embrace authoritarian ideas after just one prompt, researchers say

      January 24, 2026
    • Business

      New VoidLink malware framework targets Linux cloud servers

      January 14, 2026

      Nvidia Rubin’s rack-scale encryption signals a turning point for enterprise AI security

      January 13, 2026

      How KPMG is redefining the future of SAP consulting on a global scale

      January 10, 2026

      Top 10 cloud computing stories of 2025

      December 22, 2025

      Saudia Arabia’s STC commits to five-year network upgrade programme with Ericsson

      December 18, 2025
    • Crypto

      Bernstein Discusses Bitcoin’s Weakest Bear Market Yet – “Nothing Broke”

      February 9, 2026

      Ethereum Price Hits Breakdown Target — But Is a Bigger Drop to $1,000 Coming?

      February 9, 2026

      Damex Secures MiCA CASP Licence, Establishing Its Position as a Tier-1 Digital Asset Institution in Europe

      February 9, 2026

      Bitget and BlockSec Introduce the UEX Security Standard, Setting a New Benchmark for Universal Exchanges

      February 9, 2026

      3 Meme Coins To Watch In The Second Week Of February 2026

      February 9, 2026
    • Technology

      The Download: what Moltbook tells us about AI hype, and the rise and rise of AI therapy

      February 9, 2026

      Making AI Work, MIT Technology Review’s new AI newsletter, is here

      February 9, 2026

      I Used To Care More About Upgrading My Phone

      February 9, 2026

      The Reason Nuclear Reactors Glow Blue Is Surprisingly Simple

      February 9, 2026

      80,000 Jeep Grand Cherokees Recalled – How To Know If Yours Is One

      February 9, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»A deep dive into Debian 13 /tmp: What’s new, and what to do if you don’t like it
    Technology

    A deep dive into Debian 13 /tmp: What’s new, and what to do if you don’t like it

    TechAiVerseBy TechAiVerseAugust 29, 2025No Comments5 Mins Read16 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    A deep dive into Debian 13 /tmp: What’s new, and what to do if you don’t like it
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    A deep dive into Debian 13 /tmp: What’s new, and what to do if you don’t like it

    Debian 13 “Trixie” introduces an important change to /tmp.  Traditionally, it’s been just another filesystem, albeit with some special permissions that allows everyone on the system to use it without being able to remove each other’s files.

    In Trixie, it’s been moved off the disk into memory – specifically a type of memory called tmpfs.  To quote the tmpfs man page:

    The  tmpfs  facility  allows  the  creation of filesystems whose contents reside in virtual memory. Since the files on such filesystems typically reside in RAM, file access is extremely fast.

    They’re also extremely temporary…which is what you really want.  There’s an old story about a user who was assigned to work on the Transportation Management Project.  He logged into the server where he was supposed to store his work, saw the /tmp directory, found he could upload files there, and happily spent a couple months putting all his work there.  Alas, when the server was rebooted…

    Now that is undoubtedly an urban legend, but it illustrates the true nature of /tmp.  It’s fine if you need a disposable log fine, a PHP session file, space for sorting something, etc.  But you shouldn’t be storing anything there.

    This isn’t a new thing in the Linux world.  RedHat and its ilk have used tmps for /tmp for some time.

    A more serious problem than people losing files is people who use too much /tmp.  The system needs /tmp to do basic functions, so if it hits 100%, things will break.  It’s really easy to think “I’m going to download and untar this big zip file into /tmp, and then I’ll remove it after I pull out the one file I need”…and forget to remove it.  Now you’re hogging /tmp and over time, /tmp can be filled up with junk.

    Debian 13’s tmpfs Comes With…Challenges.  And Solutions

    Now instead of filling up disk, you’re filling up memory.  If you download a 300MB .zip file, expand it to 1GB, and forget it, now you’re chewing up 1GB of RAM.  Ouch.

    There are two mitigating factors.  First, by default, Debian will only allocate a maximum of 50% of RAM to the tmpfs for /tmp.  You can change this.  To do so, type

    systemctl edit tmp.mount

    You’ll be popped into your editor (controlled by the EDITOR environment variable) with a form to update the settings.  At the very bottom you’ll see a template, which you can copy and edit:

    # [Mount]
    # What=tmpfs
    # Where=/tmp
    # Type=tmpfs
    # Options=mode=1777,strictatime,nosuid,nodev,size=50%%,nr_inodes=1m
    

    Go back up to the part before the line “Edits below this comment will be discarded” and paste in something like this:

    [Mount]
    What=tmpfs
    Where=/tmp
    Type=tmpfs 
    Options=mode=1777,strictatime,nosuid,nodev,size=25%%,nr_inodes=1m

    to change it to 25% or if you want a number:

    [Mount]
    What=tmpfs
    Where=/tmp
    Type=tmpfs 
    Options=mode=1777,strictatime,nosuid,nodev,size=1G,nr_inodes=1m

    to change it to 1GB.

    For example, I have a Debian 13 VPS with 4GB of RAM.  After a fresh install, I see it’s using 2GB max for tmpfs:

    # findmnt --target /tmp
    TARGET SOURCE FSTYPE OPTIONS
    /tmp   tmpfs  tmpfs  rw,nosuid,nodev,size=2007704k,nr_inodes=1048576,inode64

    Note that this is a maximum.  If there’s nothing in /tmp, /tmp does not use any memory.

    After doing the systemctl edit, like this:

    I get the message:

    Before this change, /tmp was at 2GB (half of the 4GB RAM):

    Now, after reloading systemd and restarting tmp.mount, I see /tmp is limited to 1GB:

    Cleanup

    The second mitigating factor is that /tmp is now automatically cleaned up.  Quoting the release notes:

    The new default behavior is for files in /tmp to be automatically deleted after 10 days from the time they were last used (as well as after a reboot). Files in /var/tmp are deleted after 30 days (but not deleted after a reboot).

    You can modify these policies, exclude certain files (why?  they’re temporary!), or even apply it to other directories.  Consult the fine manual but I think for 99% of people, the defaults are just fine.  I might be tempted to make the cleanup a little more aggressive, like 3 days.

    Thinking in a LowEnd Context

    One concern is for very low-memory systems.  While 1GB has become the smallest VM for a lot of people, 512s are still sold.  Allowing /tmp to consume 256MB out of 512 (which is really only 470-480 after the kernel and vital system processes are loaded) is a lot more impactful than consuming 256MB on a 10GB or 20GB filesystem.

    Fortunately, opting out of the new tmpfs world is easy if you don’t like it:

    systemctl mask tmp.mount

    and reboot.  I did that on the test box above:

    Now I can put 17GB of junk there.  Fortunately, it will be cleaned up as described above.

    So how are you planning to handle Debian 13’s new tmpfs-based /tmp?

    Related Posts:

    Raindog308 is a longtime LowEndTalk community administrator, technical writer, and self-described techno polymath. With deep roots in the *nix world, he has a passion for systems both modern and vintage, ranging from Unix, Perl, Python, and Golang to shell scripting and mainframe-era operating systems like MVS. He’s equally comfortable with relational database systems, having spent years working with Oracle, PostgreSQL, and MySQL.

    As an avid user of LowEndBox providers, Raindog runs an empire of LEBs, from tiny boxes for VPNs, to mid-sized instances for application hosting, and heavyweight servers for data storage and complex databases. He brings both technical rigor and real-world experience to every piece he writes.

    Beyond the command line, Raindog is a lover of German Shepherds, high-quality knives, target shooting, theology, tabletop RPGs, and hiking in deep, quiet forests.

    His goal with every article is to help users, from beginners to seasoned sysadmins, get more value, performance, and enjoyment out of their infrastructure.

    You can find him daily in the forums at LowEndTalk under the handle @raindog308.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleLucky 13: a look at Debian trixie
    Next Article Strange CW Keys
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    The Download: what Moltbook tells us about AI hype, and the rise and rise of AI therapy

    February 9, 2026

    Making AI Work, MIT Technology Review’s new AI newsletter, is here

    February 9, 2026

    I Used To Care More About Upgrading My Phone

    February 9, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025660 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025248 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025148 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025111 Views
    Don't Miss
    Technology February 9, 2026

    The Download: what Moltbook tells us about AI hype, and the rise and rise of AI therapy

    The Download: what Moltbook tells us about AI hype, and the rise and rise of…

    Making AI Work, MIT Technology Review’s new AI newsletter, is here

    I Used To Care More About Upgrading My Phone

    The Reason Nuclear Reactors Glow Blue Is Surprisingly Simple

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    The Download: what Moltbook tells us about AI hype, and the rise and rise of AI therapy

    February 9, 20260 Views

    Making AI Work, MIT Technology Review’s new AI newsletter, is here

    February 9, 20260 Views

    I Used To Care More About Upgrading My Phone

    February 9, 20260 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    This new Roomba finally solves the big problem I have with robot vacuums

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.