r/homelab•
stpizz

How to make a good purchase if all I care about is multiprocessing performance?

Help

Hope asking dumb questions is OK here, you guys just seem the types who would know.

I need to buy a cheap machine to handle purely CPU-bound, very parallel workload. Think 'running thousands of child processes per second endlessly on pinned cores, doing very little waiting' - IO will be from ram disks, no network, no gpu required etc.

Currently I use my personal 'gaming rig' for this, but that means I can't use it for other things and that's annoying. Ideally as cheap as possible really, but some flexibility based on getting the best performance per $ I can to an extent (otherwise I'd use an old laptop and wait a long time :>)

I don't know whether I should be looking at older cheap refurbished servers of the type a lot of people pick up for homelabs, and thus getting a crapload of cores+ram+cache for the money (one of those dual cpu older Dell or something look tasty), or rebuilding something like my gaming rig with a current gen but much less thread count CPU. It's difficult to compare the performance per dollar when most benchmark sites focus on gaming performance, etc.

Is there a smart way I should be working this out so I can make the best decision, without actually having hardware to benchmark?

Posted Apr 24, 2024, 12:29 PM UTC

420
Unique_username1•

Look at benchmarks before you buy one of those cheap older servers to understand how much performance you're actually getting. It's easy for a lot of cores on an old server chip to be slower than a modern gaming CPU. I'm assuming you're talking about Xeon 2600v4 or older since newer servers aren't that cheap yet. Something like that is going to use tons of electricity and not perform as well as you might expect. And they'll be ridiculously loud.

Look at the 2680v4, which is super cheap for 14 cores. Gets beaten by the Ryzen 3900x in multi-core workloads, Geekbench says ~7000 vs ~10000 points, while consuming more power than the 3900x. So yeah, you put 2x 2680v4 in an R730, you'll get a full system cheaper than the Ryzen CPU alone. But the cost is a massive noisy server which uses perhaps 3x more electricity for 1.5x better performance, it would be hard to resell, hard to part out, hard to upgrade or convert into a gaming computer in the future, and its resale value will continue to decrease towards zero as it gets older.
Those servers are cheap because most people don't want them, for good reasons.

Yes, your needs might be one of the rare cases where a big dual socket server makes sense because it really can be the cheapest CPU performance per dollar, just be aware of the tradeoffs.

How much RAM do you need? One of the advantages of old servers is cramming an insane amount of cheap registered RAM into them. But if you can get by on 32GB, the RAM cost isn't going to matter that much.

Also consider how long you'll be using it and whether the power cost adds up. Even if you pay for your power but only want to use it for a few months or a few hours per day, that might be a big problem. On the other hand if you don't pay for your power because you live in a college dorm... trust me you do not want a rackmount server under your bed, it is too loud

6
jrichey98•

But in many workloads the 3900x would get it's pants beaten off due to memory bandwidth on the Xeon. I have an AMD 5950x w/128gb of ram that gets completely roasted by a Dual Xeon E5-2667v2 server in AI workloads.

3
crazyclue•

My first homelab purchase was two machines each with 2x e5-2667v2. I was shocked at how capable those things are. They just demolished workloads.

I've now switched to lower power equipment for my meager needs. Never really pushed those v2s that hard honestly.

2
Ghan_04•

(one of those dual cpu older Dell or something look tasty)

That will probably be the cheapest option to get lots of cores, but it will also use a lot of power and put out a lot of heat.

How does your workload handle Intel's asymmetric architecture of the current generation desktop chips? You could consider something like an i9 12900k with 16 cores.

You can also find some really nice deals on Ebay for used EPYC server systems. For example, here's one with a board and 32 core CPU for ~$850 USD: https://www.ebay.com/itm/175757780939

Is there a smart way I should be working this out so I can make the best decision

If you're looking at the used market, then there's no simple and easy way other than searching for good deals you can find. I would use https://www.cpubenchmark.net/high_end_cpus.html to compare CPU performance as a rough guide. They also have a chart that looks at CPUs by current value. Not sure how much I trust it but that is kind of what you're looking for here: https://www.cpubenchmark.net/cpu_value_available.html

Do you have a budget? That would help narrow down options.

4
kayakyakr•

And a cost of electricity. That would also affect recommendation

3
stpizzOP•

Thanks that is helpful - also some of those Epycs do look potentially good, though I'll have to do some further investigating it seems

2
jrichey98•

I'd go for an LGA-3647 system. You can get 6138's for $25-50/ea. Supermicro 6029U / X11 systems can be had for about $700 and are IMHO the best bang for the buck right now. Load it up with DDR4 2933 for the eventual upgrade to a 6230 when the prices on those drop. Skip Optane DIMMs as it will reduce memory bandwidth.

Your gaming rig isn't enterprise grade unless it has ECC memory. Those servers will run years without being restarted if need be (though you'll probably want to for updates). My fathers old E5-2667v2 system with 8ch of DDR3 1866 beats my 5950X by about 2.5x for AI workloads just because of memory bandwidth. It's extremely important for servers and a dual-channel CPU isn't going to give you the speed or capacity of even an older XEON/EPYC with 6+ channels of memory.

2
Bitwise_Gamgee•

Buy a new gaming rig and use your current one for your "home server". You'll spend about the same money and will have less buyer's remorse.

1
NC1HM•

I need to buy a cheap machine to handle purely CPU-bound, very parallel workload.
...
no gpu required

It sounds like a GPU would be required. That's how massively parallel computing is done these days, on the GPU. That's where all the cores are...

1
stpizzOP•

Unfortunately not in this case (I wish!)

1
brimston3-•

Can you provide any information about the workload? Does it benefit from instruction set extensions (avx512, etc)? I'm very surprised it's as CPU heavy as you're saying and does not lend itself to GPU compute parallelization.

2
stpizzOP•

It's not so much that the problems aren't GPU computable, it's that I don't control the code (well not fully, anyway). I'm fuzzing existing code that targets x86/x86_64, so I can only really modify the harness, the bulk of the code has to stay as is

2

https://www.cpubenchmark.net/cpu_value_available.html

or

https://www.cpubenchmark.net/cpu_value_available.html#xy_scatter_graph

Better understood if you define your price point, using the graph, and then look right to the most multicore performance under your budget.

Since you know about your workload than we do, what are the needs for ram performance vs CPU? You mentioned the workload runs in ramdisks - but are you maxing the ram out? Or just the CPU?

1

https://www.cpubenchmark.net/power_performance.html#scatter-cpu

This is for TDP (electricity costs, if thats a thing for you).

1
_xulion•

something worth read: linux - What is the overhead of a context-switch? - Stack Overflow

Context switch is a very heavy procedure when multiple threads share a same core. If your goal is a multi-task heavy setup then consider more cores. With same scores more cores are definitely better because there will be less context switching.

Also one of the thing many may not aware is the the benchmark might not be correctly collected. Especially for the enterprice CPUs:

PassMark - Intel Xeon Gold 6140 @ 2.30GHz - Price performance comparison (cpubenchmark.net)

If you look at the above benchmark. the website is taking 8 samples out of many and uses average instead of median . If you look at the sample range they are from 1000 points to 40K points. How can that be possible? the only thing I can think of is some samples are from virtual machine with less cores. Currently the score of the CPU is 24445 but there are samples over 40K. does it means the 24445 is still not the real score? The samples are too scattered and the score cannot be trusted IMO.

Basically without drilling into the detail of the benchmark you may not trust the value.

1
yensteel•

Perhaps the Xeon Phi 7290 could be a nice processor for your use case? In terms of overall multi-core performance, it's lackluster, even a 1950x threadripper obliterated it but it has 72 cores, 288 threads. Linus had a video on it. He said that there's barely any use cases except for scientific applications.

It's motherboard socket is 3647, the processor is made in 2016, wattage is 245.

https://www.techpowerup.com/cpu-specs/xeon-phi-7290.c2047

1
Jaack18•

nooo nooo noo do not suggest these. Support is poor, you will have many issues, bad idea.

3
yensteel•

You're right. I already regret commenting.

2
-19ninety2-•

How have I never heard of this. Perhaps I saw the form factor and just assumed it was a GPU?

1
yensteel•

Nevermind. It's a bad CPU. It's the most niche CPU there is.

2
[deleted]•

[removed]

1