27

Hi,

I have a friend who is looking to run a few simulations he has implemented in python and needs around 256GB of ram. He is estimating it will take a couple of hours, but he is studying economics so take that with a grain of salt 🤣

For this instance, I recommended GCP, but I felt a bit dirty doing that. So, I was wondering if any of you have a buttload of memory he can burrow? Generally, would you lend your RAM for a short amount of time to a stranger over the internet? (assuming internet acccess is limited to a signle ssh port, other necessary safeguards are in place)

you are viewing a single comment's thread
view the rest of the comments
[-] cevn@lemmy.world 16 points 1 year ago

Needing that much RAM is usually a red flag that the algo is not optimized.

[-] scrubbles@poptalk.scrubbles.tech 17 points 1 year ago

Researchers always make some of the worst coders unfortunately.

Scientists, pair up with an engineer to implement your code. You'll thank yourself later.

[-] DaPorkchop_@lemmy.ml 9 points 1 year ago

True, but there are also some legitimate applications for 100s of gigabytes of RAM. I've been working on a thing for processing historical OpenStreetMap data and it is quite a few orders of magnitude faster to fill the database by loading the 300GiB or so of point data into memory, sorting it in memory, and then partitioning and compressing it into pre-sorted table files which RocksDB can ingest directly without additional processing. I had to get 24x16GiB of RAM in order to do that, though.

[-] cevn@lemmy.world 2 points 1 year ago

Yea, that makes sense. You could sort it in chunks, but it would probably be slower. If you are regularly doing that and can afford the ram go for it. Otherwise maybe extract the bits that need to be sorted and zip them back up later.

[-] Railcar8095@lemmy.world 3 points 1 year ago

*looking at the 14TB cluster I had running for 18 hours

Yep, nobody would ever need that much memory

[-] cevn@lemmy.world 1 points 1 year ago

Wow, yea I think you win that contest lol.

[-] Railcar8095@lemmy.world 2 points 1 year ago

To be honest, it was a very paralell process. I could do a fraction of the compute, needing a fraction of the RAM, but taking a shit ton more time.

Also, theres no perfect machine for this use. I can have 3.5 times more RAM than needed, or start swapping and waste time.

[-] markstos@lemmy.world 2 points 1 year ago

Nope. Some algorithms are fastest when a whole data set is held into memory. You could design it to page data in from disk as needed, but it would be slower.

OpenTripPlanner as an example will hold the entire road network of the US in memory for example for fast driving directions, and it uses the amount of RAM in that ballpark.

[-] cevn@lemmy.world 2 points 1 year ago

Sure, that is why I said usually. The fact that 2 people replied with the same OpenStreetMap data set is kinda proving my point.

Also, do you need the entire US road system in memory if you are going somewhere 10 minutes away? Seems inefficient, but I am not an expert here. I guess it is one giant graph, if you slice it up, suddenly there are a bunch of loose ends that break the navigation.

[-] markstos@lemmy.world 3 points 1 year ago

I host routing for customers across the US, so yes I need it all. There are ways to solve the problem with less memory but the point is that some problems really do require a huge amount of memory because of data scale and performance requirements.

this post was submitted on 01 Jul 2025
27 points (90.9% liked)

Selfhosted

64131 readers
2470 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS