My Lemny
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hypertown@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

It's fine until you run out of disk space

lemmy.world

message-square
27
link
fedilink
24

It's fine until you run out of disk space

lemmy.world

hypertown@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
27
link
fedilink
alert-triangle
You must log in or # to comment.
  • dan@upvote.au
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 years ago

    Hopefully that swap is on an SSD, otherwise that query may not ever finish lol
    Once you’re deep into swap, things can get so slow that there’s no recovering from it.

  • Saganaki@lemmy.one
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    https://imgur.com/j0S32zL.jpg

    • slacktoid@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      It will crash as soon as it needs to touch the swap due to the relatively insane latency difference.

      • glibg10b@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        So use a small area in memory as cache

        • slacktoid@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          the infinite memory paradox. quaint. (lol)

    • Bloody Harry@feddit.de
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      wait, didn’t some tech youtubers like LTT try using cloud storage as swap/RAM? afaik they failed because of latency

      • Semi-Hemi-Demigod@kbin.social
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        This guy used ICMP data payload as a hard drive. It kinda worked.

    • DigitalPaperTrail@kbin.social
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      2 years ago

      deleted by creator

      • Cethin@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        It’ll never be fast enough. An SSD is orders of magnitude slower than RAM, which is orders of magnitude slower than cache. Internet speed is orders of magnitude slower than the slowest of hard drives, which is still way too slow to be used for anything that needs memory relatively soon.

    • Kairos@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      11 months ago

      The image doesn’t load.

      • Saganaki@lemmy.one
        link
        fedilink
        arrow-up
        0
        ·
        11 months ago

        I posted that 10 months ago.

        That being said, it seems to still work for me.

  • UFO@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    I dunno why I didn’t realize you can add more swap to a system while running. Nice trick for a dire emergency.

    • computergeek125@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      Even better, you can swapoff swap too!

    • Kairos@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      It’s Linux it’s made by people with a brain.

  • kingthrillgore@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    WHAT FUCKING QUERY ARE YOU RUNNING TO USE UP THAT MUCH MEMORY DAMN

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      In a database course I took, the teacher told a story about a company that would take three days to insert a single order. Thing was, they were the sort of company that took in one or two orders every year. When it’s your whole revenue on the line, you want to make sure everything is correct. The relations in that database were checked to hell and back, and they didn’t care if it took a week.

      Though that would have been in the 90s, so it’d go a lot faster now.

      • ladicius@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        What did they produce? Cruiseships?

        • Treczoks@feddit.uk
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          We have a company like that here somewhere. When they have one job a year, they have to reduce hours, if they have two, they are doing OK, and if they have three, they have to work overtime like mad. Don’t ask me what they are selling, though. It is big, runs on tracks, and fixes roads.

        • frezik@midwest.social
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          No idea, but I imagine it was something big like that, yes. I think it was in northern Wisconsin, so laker ships are a good guess.

    • fibojoly@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      A very very badly written one no doubt…

      • frezik@midwest.social
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Why stop at just one full table scan?

  • Faresh@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    Does the OOM killer actually work for anyone? In every linux system I’ve used, if I run out of memory, the system simply freezes.

    • Fedora@lemmy.haigner.me
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Yes, it takes surprisingly long for the OOM killer to take action, but the system unfreezes. Just wait a few minutes and see whether that does the trick.

  • ChaoticNeutralCzech@feddit.de
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Protip: Put swapfile on ramdisk for highest speed

  • clb92@feddit.dk
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    2 years ago

    I’d be lying if I said I hadn’t done something similar before.

    • AggressivelyPassive@feddit.de
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Wrote my master thesis this way - didn’t have enough ram or knowledge, but plenty of time on the lab machine, so I let it do its thing over night.

      Sorry, lab machine ssd.

  • AgreeableLandscape@lemmy.mlM
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    2 years ago

    Poor man’s Optane

  • Valen@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    You really need to index your tables. This has all the hallways of a Cartesian cross product.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 10 users / day
  • 94 users / week
  • 349 users / month
  • 1.49K users / 6 months
  • 0 local subscribers
  • 37.1K subscribers
  • 1.76K Posts
  • 31.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org