1013
top 50 comments
sorted by: hot top controversial new old
[-] Saganaki@lemmy.one 219 points 1 year ago
[-] slacktoid@lemmy.ml 36 points 1 year ago

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

load more comments (3 replies)
[-] istdaslol@feddit.de 22 points 1 year ago

Imagine doing this on a dial-up 56K modem

[-] IHeartBadCode@kbin.social 20 points 1 year ago

A:\SPICYMEMES\MODEMSOUND.WAV

load more comments (7 replies)
[-] harry315@feddit.de 18 points 1 year ago

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

[-] CanadaPlus@lemmy.sdf.org 13 points 1 year ago

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

[-] Veltoss@lemmy.world 13 points 1 year ago

So is pretty much all of the cloud services the average user already subscribes to. People still use them though.

load more comments (3 replies)
load more comments (2 replies)
[-] ilikecoffee@lemmy.world 12 points 1 year ago

Oh wow, I didn't even know Gdrive offered a 1 petabyte option ๐Ÿ˜‚

[-] russjr08@outpost.zeuslink.net 15 points 1 year ago

They don't to my knowledge, I believe that's mounted through rclone which just usually sets the filesystem size to 1PB so that it doesn't have to try to query what the actual limit is for the various providers (and your specific plan).

[-] Vent@lemm.ee 14 points 1 year ago* (last edited 1 year ago)

Once upon a time, Google offered unlimited drive storage as part of some GSuite tiers. They stopped offering it a while ago and have kicked most/all legacy users off of it in the past few months. It was glorious while it lasted ๐Ÿ˜ข

[-] Uniquitous@lemmy.one 10 points 1 year ago

Guess they ran everyone out of business that they needed to, so now the premium features get yanked and your choice of alternatives is curtailed. Hooray for enshittification.

load more comments (1 replies)
load more comments (2 replies)
load more comments (1 replies)
load more comments (2 replies)
[-] ChaoticNeutralCzech@feddit.de 205 points 1 year ago

Protip: Put swapfile on ramdisk for highest speed

[-] Dran_Arcana@lemmy.world 90 points 1 year ago

Unironically that's how zram works

[-] seaQueue@lemmy.world 28 points 1 year ago

Don't do boy zram dirty, it has a ton of utility when you have ample spare compute and limited RAM.

load more comments (1 replies)
[-] jtfletchbot@lemmy.ko4abp.com 21 points 1 year ago

Doesn't it compress the contents that it's storing to help kind of get the best of both worlds?

You get faster storage because it's in ram still, but with it being compressed there's also "more" available?

I could be completely mistaken though

[-] Ew0@lemmy.sdf.org 16 points 1 year ago

You are correct, although zram uses more cpu power since it compresses things. It's not really an issue if you're not using a potato :=)

[-] Still@programming.dev 11 points 1 year ago

even if you are using a potato it probably doesn't have much ram so slightly slowing it to make things run smoother is a very popular choice

load more comments (1 replies)
[-] dan@upvote.au 86 points 1 year ago* (last edited 1 year 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 58 points 1 year ago

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

[-] frezik@midwest.social 66 points 1 year 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 34 points 1 year ago

What did they produce? Cruiseships?

[-] frezik@midwest.social 29 points 1 year 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.

[-] Treczoks@feddit.uk 17 points 1 year 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.

[-] fibojoly@sh.itjust.works 13 points 1 year ago

A very very badly written one no doubt..

[-] frezik@midwest.social 10 points 1 year ago

Why stop at just one full table scan?

[-] mvirts@lemmy.world 47 points 1 year ago

Exactly how I plan to deploy LLMs on my desktop ๐Ÿ˜น

[-] dan@upvote.au 14 points 1 year ago

You should be able to fit a model like LLaMa2 in 64GB RAM, but output will be pretty slow if it's CPU-only. GPUs are a lot faster but you'd need at least 48GB of VRAM, for example two 3090s.

load more comments (5 replies)
load more comments (3 replies)
[-] clb92@feddit.dk 32 points 1 year ago* (last edited 1 year ago)

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

[-] agressivelyPassive@feddit.de 29 points 1 year 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.

load more comments (1 replies)
[-] valen@lemmy.world 30 points 1 year ago

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

[-] UFODivebomb@programming.dev 26 points 1 year 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 11 points 1 year ago

Even better, you can swapoff swap too!

[-] Faresh@lemmy.ml 23 points 1 year 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.

load more comments (13 replies)
[-] avidamoeba@lemmy.ca 22 points 1 year ago* (last edited 1 year ago)

Slow SSD issue. RAM is for chumps.

[-] AgreeableLandscape@lemmy.ml 20 points 1 year ago

Poor man's Optane

[-] seaQueue@lemmy.world 18 points 1 year ago

Swap thrashing goes brrrrrrrrrrrrr

[-] Presi300@lemmy.world 14 points 1 year ago

I've actually done something similar with a 2GB ram machine... 2GB ram / 8GB zswap, actually ran way faster lol

load more comments (2 replies)
[-] Karyoplasma@discuss.tchncs.de 10 points 1 year ago

Just download more RAM.

load more comments
view more: next โ€บ
this post was submitted on 02 Oct 2023
1013 points (100.0% liked)

Programmer Humor

32261 readers
58 users here now

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

Rules:

founded 5 years ago
MODERATORS