this post was submitted on 02 Oct 2023
940 points (99.1% liked)

Programmer Humor

32410 readers
1 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Saganaki@lemmy.one 201 points 2 years ago (10 children)
[–] slacktoid@lemmy.ml 32 points 2 years ago (1 children)

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

[–] glibg10b@lemmy.ml 4 points 2 years ago (1 children)

So use a small area in memory as cache

[–] slacktoid@lemmy.ml 4 points 2 years ago (1 children)

the infinite memory paradox. quaint. (lol)

[–] tias@discuss.tchncs.de 4 points 2 years ago

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

[–] istdaslol@feddit.de 22 points 2 years ago (1 children)

Imagine doing this on a dial-up 56K modem

[–] IHeartBadCode@kbin.social 20 points 2 years ago (5 children)
[–] Late2TheParty@lemmy.world 7 points 2 years ago

Bwa-hahahahhah "A:" 🤣

load more comments (4 replies)
[–] harry315@feddit.de 16 points 2 years ago (2 children)

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 18 points 2 years ago (1 children)
[–] dan@upvote.au 6 points 2 years ago* (last edited 2 years ago) (2 children)

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.

load more comments (2 replies)
[–] istdaslol@feddit.de 4 points 2 years ago

Afaik they used it as redundant off-site backup

[–] CanadaPlus@lemmy.sdf.org 12 points 2 years ago (2 children)

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

[–] Veltoss@lemmy.world 12 points 2 years ago (1 children)

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

[–] CanadaPlus@lemmy.sdf.org 4 points 2 years ago (2 children)

Agreed. This is especially bad, though, because if it's compromised they basically have hardware-level access to your machine. Unless you're using encrypted swap, and I'm not sure how standard that is.

load more comments (2 replies)
[–] kevincox@lemmy.ml 5 points 2 years ago (1 children)

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 6 points 2 years ago* (last edited 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

[–] ilikecoffee@lemmy.world 11 points 2 years ago (3 children)

Oh wow, I didn't even know Gdrive offered a 1 petabyte option 😂

[–] russjr08@outpost.zeuslink.net 14 points 2 years 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 13 points 2 years ago* (last edited 2 years ago) (3 children)

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 9 points 2 years ago (1 children)

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.

[–] dan@upvote.au 7 points 2 years ago

It's not that, it's that people were abusing it by using it for things like Plex with 100TB+ of data, which cost Google more than the revenue they got as a result. Blame the people that abused the policy. They're not a charity and can't keep an offer if they lose money as a result. Keep in mind that Google Drive data has several replicas and is also backed up to cold storage on LTO tapes, so people abusing the storage policy is actually pretty expensive for them .

They do still have unlimited data in some cases, for example with custom plans for large companies (like 50k+ employees).

[–] ChaoticNeutralCzech@feddit.de 5 points 2 years ago

And Google docs/sheets/slides used to not count in your used space.

load more comments (1 replies)
load more comments (1 replies)
[–] n00b001@lemmy.world 4 points 2 years ago

Even better:

Free cloud storage that doesn't require an account and provides no limit to the volume of data stored

https://github.com/yarrick/pingfs

load more comments (3 replies)