top | item 36532238

Cheapest Source of x86 Cores?

55 points| mlthrowaway1953 | 2 years ago | reply

I'm doing embarrassingly parallel simulations (think Monte Carlo runs of a legacy scientific binary) and am trying to find the cheapest possible host source of x86 compute, at scale. These are jobs that are single-threaded, use maybe 2-4GB of ram, last an hour, and can be checkpointed if necessary. A c5.18xlarge on AWS has 36 physical (real) cores and on the spot market is $0.74/hr which works out to $0.02/core-hour. Does anyone know of cheaper options?

55 comments

order
[+] re-thc|2 years ago|reply
Both Azure and GCP have really good spot pricing in many regions (~90% off).

E.g. GCP C3 pricing is $0.003/vCPU hour and $0.004 for 1GB RAM -- where C3 = Intel Sapphire Rapids (latest gen), which should be quite a bit faster than a C5 (older Intel).

c3-highcpu-88 (44 real cores) is $0.344/hr hence

N2D (AMD Milan) has equivalents that's also in a similar price bracket

See: https://cloud.google.com/compute/vm-instance-pricing#general...

Azure has similar prices for spot with AMD CPU.

On a "smaller" cloud, Oracle cloud E4 (AMD Milan) prices are also a lot cheaper than AWS.

For an even smaller cloud there's also Hetzner cloud with dedicated cores or dedicated servers even.

[+] sz4kerto|2 years ago|reply
An AX161 at Hetzner with 32 physical cores (EPYC 7502P, 64 threads) costs ~$130 per month, that works out to $0.17/hr ($0.0053 per core per hour).
[+] actionfromafar|2 years ago|reply
Hetzner is good value, but I had a long conversation with their support, and we were separated by a common language.
[+] ysleepy|2 years ago|reply
That comes with a setup fee of 40$ though.
[+] Triangle9349|2 years ago|reply
A little off topic. I was looking for a cheap cpu render farm for the project and ended up buying some chinese amd mini pcs. After a few months, I sold them at a retail price in just 3 days, there was a huge demand for them. I was very surprised by the power and almost silent operation compared to the insanely expensive and noisy servers that were used recently.
[+] justinclift|2 years ago|reply
When you say "at scale", how many cores are you likely wanting to use at once, and for how long?

If it's for several hundred hours worth of compute, then dedicated servers can start to look pretty good.

eg: https://www.hetzner.com/dedicated-rootserver/ax161

€119.80/mo, for a 32 (real) core Zen2 EPYC with 128GB ram

They generally tend to have better local disk performance than most cloud servers, but that might be irrelevant for your use case. :)

If you're just doing short bursts of use though, then it's probably not the right option.

[+] tyingq|2 years ago|reply
You'll would have to bump up from 128GB ram for a fair comparison. I didn't look exhaustively, but $.02/core-hour is hard to beat, especially since he's quoting that much memory and real (not smt/hyperthreads) core hours.
[+] prhrb|2 years ago|reply
I also want cheapest compute for software video encoding, ARM or x86 is fine. can someone give suggestions? I am currently using oracle cloud
[+] re-thc|2 years ago|reply
Where are your videos? Encoding is a more complicated problem in that the source and destination would impact things. Bandwidth transfer can cost more than the compute on some clouds (and impact speeds).

If it's on S3 it might still be best to use AWS EC2 in the same region.

Oracle is definitely a good choice with 10TB free tier.

Hetzner cloud likely has cheaper compute than Oracle.

Upcloud has the fastest CPU.

[+] hampereddustbin|2 years ago|reply
Specifically for Video encoding I'd look into benchmarks about what certain ARM architectures can do. Not all encoders can correctly utilize them and they may end up very slow.
[+] genmud|2 years ago|reply
People don't realize how cheap hardware has become. Most vendors also have the ability to lease stuff for 0% (though that might have started to change), so you end up paying for a 3 or 5 year lease, which allows you to deduct vs. depreciate the asset on taxes. Sure you have to colocate it, but you could get a 48u colo rack for ~1k/month + ~1k/month for 1gbps link.

I used to buy dell outlet servers (which is their refurbed gear) all the time for folks who insist on dell, they end up being about 20-50% of the cost of cloud pricing if you are utilizing it with a full workload. Their stuff also includes a 3 year warranty with next day support, so it isn't very risky buying a refurbished server. There have been times where I found deals where the components could be parted out on ebay for more than the cost of the server. If you don't need support, there are tons of used servers on ebay / craigslist where you can get deals on 1-3 year old hardware that are good enough to purchase multiple spares.

For example, you can purchase a 2x 32 core server [1] for ~11k from the outlet store with next day support.

If you are running 24/7, with 64 cores over a 3 year period...

  Server Cost / Years / Days in Year / Hours in Day / Cores = Core per hour cost
  11000 / 3 / 365 / 24 / 64 = $0.0065/hour
If you wanted to go supermicro [2] with somewhat less reliable support, its a similar story. It would be a 1u dual 96 core (192 cores) box w/ 1.5tb memory for around ~30k.

  30000 / 3 / 365 / 24 / 192 = $0.0059/hour
You can recoup your hardware costs within the first year vs. running in AWS if your workloads are high enough to justify the hardware expense.

[1] - https://outlet.us.dell.com/ARBOnlineSales/Online/SecondaryIn...

[2] - https://www.itcreations.com/configurator/model/supermicro-as...

[+] ysleepy|2 years ago|reply
The hetzner server auction has pretty cheap dedicated boxes, 30 bucks for a month of 4core/8thread 64G ram. Which is roughly 0.006/thread hour, including cpu/ram/ssd.
[+] johnklos|2 years ago|reply
One thing to consider would be to use something like the BOINC model, if the amount of data that needs to be exchanged isn't too great.

You could also just start a small project to pay people. If 2¢ per core hour is a reasonable price, that means a Ryzen 5950X user could make $7.68 a day not using SMT threads when the machine is mostly idle.

[+] tyingq|2 years ago|reply
I'm guessing ~$0.02 is probably the floor.

Even a dedicated server from OVH with similar specs is $0.02-0.04/real-not-smt-core-hour.

[+] ericpauley|2 years ago|reply
If you’re using aws spot pay careful attention to the region. In many aws regions spot prices have skyrocketed and offer less discount over on demand. Other regions have very cheap spot prices still. Also consider looking at equivalent instances like the c5d family.
[+] turtlebits|2 years ago|reply
I use lowendbox.com when I want a cheap VPS. Not necessarily the most performant, but you can usually find pretty good deals on lower specced servers.
[+] zombielinux|2 years ago|reply
Have you looked at old Xeon PHI devices? They're not fast, and they may not meet your ram requirements, but DAMN are they cheap.
[+] amelius|2 years ago|reply
Why does one have to ask HN for this? It looks to me like the market could be more transparent here.
[+] mewmew07|2 years ago|reply
the price confusion/obscurity facilitates higher prices, none of the players on the sell side would benefit from lower margins, so they all do the same
[+] aclindsa|2 years ago|reply
Why x86 only? Is that a hard requirement?
[+] numpad0|2 years ago|reply
Sounds like a Xeon Phi workload, I always thought they would look cool as a collectible on Device Manager
[+] redat00|2 years ago|reply
You should check out Qarnot Computing (qarnot.com).
[+] asah|2 years ago|reply
Contact joinmassive.com - much cheaper than all of this.
[+] delfinom|2 years ago|reply
https://www.joinmassive.com/faq#users

>Massive is like Airbnb or Turo for your computer. Rather than letting you share your home or vehicle when you’re not using them, Massive lets you share any unused computing resources you have. In exchange, app developers give you access to their premium features.

This doesn't have security concerns, not at all, nope

>Massive combines the small amounts of resources contributed by users like you into a supercomputer that funds app features by mining cryptocurrency, decentralizing blockchain infrastructure, running scientific simulations, and performing general distributed tasks.

Yea so it's totally just going to be abused to crpytomine 24/7 on your hardware

>Massive doesn’t develop consumer apps but has partnered with many developers who offer to let you upgrade with Massive in their apps. Depending on your geolocation, you’ll get such offers in apps like Boom 3D for Windows and Digg Desktop.

....Yea this is basically malware and botnetting. There is 10000% perverse incentive for those "apps" to trick users into the botnet

[+] vbrandl|2 years ago|reply
Sounds like a botnet with extra steps