fed.dyne.org
  • 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
36
link
fedilink
47

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
36
link
fedilink
alert-triangle
You must log in or # to comment.
  • Saganaki@lemmy.one
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    2 years ago

    https://imgur.com/j0S32zL.jpg

    • DigitalPaperTrail@kbin.social
      link
      fedilink
      arrow-up
      4
      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.

    • slacktoid@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      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
        1
        ·
        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)

          • tias@discuss.tchncs.de
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            It’s just a NUMA architecture. Linux can handle it.

    • Bloody Harry@feddit.de
      link
      fedilink
      arrow-up
      3
      ·
      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.

        • dan@upvote.au
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          I remember using ICMP data to bypass my high school’s firewall. TCP and UDP were very locked down, but they allowed pings. It was slow though - I think I managed to get a few KB per sec. Maybe there’s faster/fancier firewall bypass methods these days. This was back in the 2000s when an entire school would have a single OC-1 fiber connection.

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

      The image doesn’t load.

      • Saganaki@lemmy.one
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        I posted that 10 months ago.

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

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

      Imagine doing this on a dial-up 56K modem

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

        A:\SPICYMEMES\MODEMSOUND.WAV

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I feel like this might be a giant gaping security risk.

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

        Obviously you should set up device mapper to encrypt the gdrive device then put the swap on the encrypted mapper device.

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          If your kernel isn’t using 90% of your CPU resources, are you really even using it to it’s full potential? /s

  • dan@upvote.au
    link
    fedilink
    arrow-up
    8
    ·
    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.

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

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

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      9
      ·
      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
        2
        ·
        2 years ago

        What did they produce? Cruiseships?

        • Treczoks@feddit.uk
          link
          fedilink
          arrow-up
          1
          ·
          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
          1
          ·
          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
      3
      ·
      2 years ago

      A very very badly written one no doubt…

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

        Why stop at just one full table scan?

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

    Protip: Put swapfile on ramdisk for highest speed

  • UFO@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    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.

    • Kairos@lemmy.today
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

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

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

      Even better, you can swapoff swap too!

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

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

    • AggressivelyPassive@feddit.de
      link
      fedilink
      arrow-up
      3
      ·
      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.

      • blackluster117@possumpat.io
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        It gave its life for academic achievement, there is no finer death for hardware. o7

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

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

  • 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.

  • tiredofsametab@kbin.run
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I don’t want to see the EXPLAIN for that query. This person really needs to learn more about sql, I’d wager.

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

    Poor man’s Optane

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.

  • 4 users / day
  • 1.3K users / week
  • 2.76K users / month
  • 7.85K users / 6 months
  • 2 local subscribers
  • 39.2K subscribers
  • 1.78K Posts
  • 30.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org