this post was submitted on 12 Sep 2026
669 points (94.9% liked)

linuxmemes

32826 readers
1634 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 of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
  • 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
     

    Credit to @ryanc@infosec.exchange

    I just did the graphic

    (page 2) 50 comments
    sorted by: hot top controversial new old
    [–] smeg@feddit.uk 66 points 1 week ago (2 children)

    > linuxmemes

    > macos screenshot

    ΰ² _ΰ² 

    [–] cannedtuna@lemmy.world 30 points 1 week ago (4 children)

    Shit did I botch it? I made this on my phone and the toot I copied the script from was just text. Wanted to make it look more interesting so I found this site that let you make the windows. I just went with what I thought looked best.

    [–] michaelmrose@lemmy.world 6 points 1 week ago (2 children)

    Is this tongue in cheek i swear I cannot tell any longer.

    Some swap is beneficial

    [–] cannedtuna@lemmy.world 8 points 1 week ago

    It’s based on a common meme template. Yeah it’s tongue in cheek and I guess a lot of commenters can’t tell given this is a memes comm

    load more comments (1 replies)
    load more comments (3 replies)
    [–] wuffwuffwuff@sh.itjust.works 12 points 1 week ago (1 children)

    i'm sure someone has made a KDE theme or a Gnome theme that replicates MacOS, let's pretend that's what's happened.

    load more comments (1 replies)
    [–] irotsoma@piefed.blahaj.zone 64 points 1 week ago (3 children)

    There are good use cases for swap. I work with very performance sensitive memory hogging applications that tend to process in bursts as incoming batched data arrives. We also have a lot of required background "security" applications.

    Having the idle applications move out to swap so that a significant amount of free RAM to allow for the active, real-time applications to expand into is a major boon. RAM is expensive now, so it's become even more critical to not waste it.

    But even in self-hosting at home I take advantage of it since I have a limited number of servers with limited RAM and a bunch of applications and/or docker containers running, many of which don't need to be active at all times, but if they were all active, would have trouble with the limited RAM. Swap allows for inactive applications to free up RAM for the active ones and leave enough available at all times to allow an application to quickly spin up new jobs.

    Anyway, sure, for a simple desktop computer without a bunch of junk background applications running for "security" or whatever, and an overabundance of RAM installed, it's probably not useful. But for high performance, memory hungry applications with lots of background stuff running, it can be a big help.

    That said, there are use cases where the opposite is useful and using a RAM drive is better than writing to disk for cache and temporary logs when you have enough RAM. My opnsense router for instance uses a RAM drive to store cache and logs (logs are mirrored to the NAS for long term storage, so just the local copy is lost on reboot). That system has enough RAM and I'd rather reduce disk wear, and I don't plan to add too many other applications to that server that it would run low.

    Actually, there are more than these. For example, hibernation and/or hybrid suspension. It's, AFAIK, mandatory to have a swap partition to be able to hibernate and/or hybrid suspend your device.

    [–] Supercrunchy@programming.dev 7 points 1 week ago (1 children)

    I also found it useful to do some one-off batch processing of a big file without thinking of chunking and doing too complicated things. Imagine something like a 60GB file in a custom format that need to be deduplicated. It's easier to just load it all up in memory and do run the algorithm 2-3x slower using a 50GB swapfile than spend hours to complicate the algorithm.

    load more comments (1 replies)
    [–] Zenorbi@lemmy.world 45 points 1 week ago (3 children)

    I used to be this guy. We have huge amount of memory in our storage server. Why would we need swap? Well, once the system started killing programs I read up on swap and how the system handles its caches, especially ZFS ARC.

    Short version is that while the system can evict its caches syncronously, it can only async notify ZFS that it should also shrink its caches, but the out-of-memory killer will start killing before ZFS and its kernel counterpart can start to free up memory.

    A tiny bit of swap completely solved this, since swapping is sync for the kernel and the OOM killer will wait for it.

    [–] Fizz@lemmy.nz 11 points 1 week ago

    As well as oom situations, swapping allows the memory to be used more effectively by swapping out anonymous pages that aren't likely to be used but can't be dropped.

    load more comments (2 replies)
    [–] 18107@aussie.zone 43 points 1 week ago (5 children)

    No

    15.5/15.5 GB RAM used, plus 16.8/465GB swap

    It turns out the computer mostly freezes once you go past 200% RAM used.

    load more comments (5 replies)
    [–] OwOarchist@pawb.social 32 points 1 week ago* (last edited 1 week ago) (4 children)

    Yes, swap partitions are shit.

    The real hotness is swap drives.

    Just the use that your old 64GB SSDs were waiting for!

    (Fun fact: in Linux, if you have multiple swap partitions mounted, the kernel will automatically use striping (like RAID) in order to read and write from them as fast as possible. If you have multiple small SSDs used for swap, the read/write speed from swap can actually become pretty fast.)

    [–] SaharaMaleikuhm@feddit.org 6 points 1 week ago (3 children)

    How many SSDs do you need for it to match the speed of RAM? Can I use this to make cheap RAM?

    I just download more ram. Know your tech!!

    load more comments (2 replies)
    load more comments (3 replies)
    [–] dan@upvote.au 28 points 1 week ago (5 children)

    People still use swap partitions instead of swap files?

    [–] libewa@feddit.org 17 points 1 week ago (1 children)

    This. Swap files on LUKS encrypted partition. Also, the swapspace daemon!

    [–] dan@upvote.au 12 points 1 week ago (1 children)

    I've seen so many setups where people encrypt their data but forget to encrypt their swap.

    [–] DevDave@piefed.social 6 points 1 week ago (4 children)

    what's the problem? it's not like you dump the entire contents of your system's ram to disk any time use hibernate /s

    load more comments (4 replies)
    [–] IAmYouButYouDontKnowYet@reddthat.com 6 points 1 week ago (8 children)

    Don't you need swap partitions to be able to use hibernation?

    [–] devfuuu@lemmy.world 1 points 6 days ago* (last edited 6 days ago)

    Been using a swap file in a luks partition for years. I hibernate very regularly.

    [–] PervServer@fedinsfw.app 7 points 1 week ago (1 children)

    Nope, I hibernate with a swap file and it's in a LUKS partition. Although IIRC that whole setup requires me to use systemd boot.

    load more comments (1 replies)
    load more comments (5 replies)
    load more comments (3 replies)
    [–] 87Six@lemmy.zip 19 points 1 week ago (3 children)

    All I know is that I had 16GB RAM and 4GB swap and I used to get crashes sometimes.

    Set that fucker to 32GB out of spite, now no crashes. No idea why that helped. But I guess I do have like 15 tabs open on the regular (web dev)

    [–] JasonDJ@lemmy.zip 18 points 1 week ago (2 children)

    15 tabs? Those are rookie numbers. Unless you mean "before 8:07 Monday morning".

    [–] eager_eagle@lemmy.world 8 points 1 week ago* (last edited 1 week ago) (2 children)

    browsers offload inactive tabs from memory anyway, unless you're actively switching among 15+ tabs, they won't be using as much ram

    load more comments (2 replies)
    load more comments (1 replies)
    [–] Blue_Morpho@lemmy.world 9 points 1 week ago (1 children)

    Historically swap needed to be a minimum of installed ram.

    [–] tal@lemmy.today 11 points 1 week ago* (last edited 1 week ago) (3 children)

    I don't recall that, but IIRC it does need to be a minimum of installed RAM if you want to be able to hibernate, since then you write out the contents of your memory to swap. That makes having at least as much swap as RAM a good rule of thumb for many systems.

    IIRC kernel crash dumps also make use of swap in a similar way, though I assume that in most sane scenarios, it's not going to actually require as much swap as physical memory, because you won't have all of your physical memory allocated to the kernel.

    On non-exotic Linux systems, I always make sure to have more swap than physical RAM.

    load more comments (3 replies)
    load more comments (1 replies)
    [–] Blue_Morpho@lemmy.world 17 points 1 week ago (1 children)

    "Unresizeable block device at end of disk"

    Classically the swap partition was located at the physical middle of the drive so that on average, no matter where the heads where, the swap partition wasn't far away

    load more comments (1 replies)

    "I'm not a friggin bear, I don't hibernate!"

    [–] glibg10b@lemmy.zip 13 points 1 week ago (3 children)

    swapfile gang

    .rw------- root root 4.0 GB Mon Jun  1 04:10:37 2026 ο€– /var/swap
    
    load more comments (3 replies)
    [–] topperharlie@lemmy.world 13 points 1 week ago (2 children)

    Everyone defending swap like crazy in the comments... so let me give a counter argument specifically for desktop:

    Many years ago I stopped using swap on all my computers (I exclusively use linux) and the reason is: every time anything regarding interactivity went to swap, my system would freeze and literally become unusable for a really long time until I killed something. Since I got tired if that behaviour I decided I prefer for random shit to die but my computer still be usable.

    It wasn't very often, but I don't get OOM killer often either (as in I don't remember the last time it happened and I use linux every day for both work and fun), and the freezing situation was way more annoying, to the point I sometimes ended up cold switching off the computer. I'm surprised on how many people run out of memory constantly. I guess you all are just using linux for servers and have crazy processing of infinite data...

    [–] boonhet@lemmy.zip 8 points 1 week ago (1 children)

    Were you using a HDD for swap? It's nearly unnoticeable on an NVMe drive.

    load more comments (1 replies)
    load more comments (1 replies)
    [–] ruuster13@lemmy.zip 11 points 1 week ago (2 children)

    I init a ramdisk and put a swap file there and call it L4 cache

    [–] palordrolap@fedia.io 8 points 1 week ago

    I actually did this for a laugh a very, very long time ago. I had upgraded my 75MHz Pentium machine from 8MB to a whopping 40MB, so since I knew it would run fine with just 8, I installed a TSR RAMdisk and told Windows 3.1 to put its swap on that drive.

    It worked great, but I decided I'd rather use the memory for other things.

    But in more modern times, I've literally forced browser caches into memory-based tmpfs to take the load off system disks, which is basically the same thing. And it reduces wear on my hardware.

    load more comments (1 replies)
    [–] rem26_art@fedia.io 11 points 1 week ago

    Building a PC in 2026 be like "I cant afford RAM, but I can use a whole TB hard disk I shucked from an old WD external as swap and maybe my PC will feel modern"

    [–] danielfm123@lemmy.zip 11 points 1 week ago

    Swap and zram saved my R and Python Dana analysis script a couple of times.

    [–] tal@lemmy.today 10 points 1 week ago* (last edited 1 week ago) (1 children)

    "Hello I would like to torture my SSD's FTL because I left three Electron apps open"

    If you don't actually need the swap, Linux isn't going to make use of swap. If you need the swap, then you'd probably rather use it than have the OOM killer take out a process.

    My desktop has plenty of swap available, but is using none of it, because the system isn't under memory pressure.

    load more comments (1 replies)
    [–] 7rokhym@lemmy.ca 9 points 1 week ago

    Definitely configure swap, but I don't think there is much benefit of a swap partition over a swap file these days and swap files are trivial to configure.

    [–] Axolotl_cpp@feddit.it 7 points 1 week ago (7 children)

    My built-in Devil's Advocate has to ask if that's really true? Have you got a citation newer than 2 decades old? Frankly, i find it difficult to believe that anyone wouldn't like to use electron software, for the simple reason that making your SSD suffer is fun.

    Edit: in 30 years of administering Linux and (previously) Solaris sytems i've never once had to change HDDs or SSDs, so claims of torture are, i opine, exaggerated. i'll also claim that keeping electron software out of the filesystem is not good for your hygiene.

    load more comments (7 replies)
    [–] provectus@lemmy.ml 7 points 1 week ago* (last edited 1 week ago) (2 children)

    Then what is the setup if my computer only has 4GB of memory for daily driving? Just curious because swap partitions are what I normally do on limited resource machines.

    [–] mlg@lemmy.world 6 points 1 week ago (2 children)

    Dunno how well zswap handles at that size, but the point is that is compresses swap into RAM, so it would use a max of 819.2M for a total of 2457.6M of swap space. If you need more, then by all means, use a swap file or partition lol.

    Actually linux easily supports multiple and tiered swap mounts, so you could even go zswap + ssd swap + hdd swap, or a cheapo "burn at your own risk" usb flash swap lol.

    load more comments (2 replies)
    load more comments (1 replies)
    [–] windowsphoneguy@feddit.org 5 points 1 week ago

    OMG I miss this meme format

    [–] basic_user@lemmy.world 5 points 1 week ago* (last edited 1 week ago)

    Have a PC with 16gb ram that lives up to the overwatch game system reqs. When I installed it and launched it, it began building some sort of cache. A one time job. During that chache my os would force close steam to prevent an oom crash. I then added 16gb swap and during the owerwatch cache job the used phys ram would max out at 12gb I think and the swap sent up to 10gb. So a 22gb ram job. Yikes. Thanks swap ram πŸ‘

    I've had my computer crash trying to open or save a pdf once because it used up all the RAM space (16gb) and then used up the small swap (probably like 10gb?) and I guess some critical processes I guess just got told "no." Seems wild to me that Windows would just crash before it told a pdf it couldn't use over 20gb of memory.

    load more comments
    view more: β€Ή prev next β€Ί