Assets
- home 18.0k
- device(s) 1.0k
- stock(s) 2.3k
- server 0.1k
- cash 0.6k
Liabilities
- debt 4.0k
- loan 0.0k
My Net: 18.0k
05-12-2021
Expired by:
00000 00:00:00

Cheap VPS CPU benchmark 2022

Lately, whatever I built seems to choke on the CPU under stress tests. So I wanted to find a small VPS with persistent CPU performance.

I used up my AWS and DO promotions. Hetzner and GCP were on my initial list. Sadly, my promotional link failed on Hetzner. I kept my GCP credits for NLP related experiments.

My target VPS requirements were at least 2 vCPU and 4GB RAM. I ignored the network bandwidth, virtualization, and disk type.

Azure free ~ 12-month free services and $200 credit expires in a month.
Alibaba cloud ~ 12-month free services and a free $40 instance expires in a month.
Linode ~ $100$ credit expires in a month.
Upcloud ~ 15$ promotional link + 10$ deposit.
Vultr ~ $10 referral link + 10$ deposit.

My objectives were to find out:
  1. What happens if you utilize your VPS CPU 100% consistently?
  2. Which VPS provider currently has the best performing VPS in terms of CPU utilization/cost?
  3. Generally, how performant are these VPS instances compared to my old personal computers?

So far, I have not done any benchmarking before using a service. I do have some experience comparing apples with bigger or more apples. There may be lots of different ways or tools to do CPU benchmarking. After a bit of googling, I just went with xmrig for the task.

The setup:
  Proxy server: Linode Nanode /1c, 1GB/, Ubuntu 20.04 lts + xmrig-proxy connects to mining pools.
  Mining pools: XMR => MineXMR 1/25-1/27. SUMO => HashVault 1/29-1/31. LTHN => HashVault 2/3-2-5. xHV => HashVault 2/5-2/7.
  VPS/PC setup: Ubuntu 20.04 lts, docker + xmrig connects to the proxy server. VPS(s) are in Frankfurt, DE. PC(s) are in my room.
  Old PC(s): HP - A broken laptop aged 11+ years, ASUS - Desktop processor aged 10+ years. DELL - A laptop aged 8+ years.

The table shows respective VPS/PC CPU info and corresponding hash rates observed on each crypto mining algorithm in ~3 days.

VPS / PCCPU Model / CPU Caches / Runtime Clock SpeedXMRxHVSUMOLTHN
Upcloud simple ($20/m)AMD EPYC 7542 32-Core / L2:1.0MB L3:16.0MB / ~2.89 GHz931123117114
Azure D2ads ($91/m)AMD EPYC 7763 64-Core / L2:0.5MB L3:32.0MB / ~3.26 GHz8241189287
Azure D2ds ($99/m)Intel(R) Xeon(R) Platinum 8370C / L2:1.2MB L3:48.0MB / ~3.49 GHz818878484
Linode shared ($20/m)AMD EPYC 7642 48-Core / L2:1.0MB L3:32.0MB / ~2.29 GHz740113104103
Linode dedicated ($30/m)AMD EPYC 7642 48-Core / L2:1.0MB L3:32.0MB / ~2.29 GHz7401109384
Alibaba ecs.n4.large ($40/m)Intel(R) Xeon(R) Platinum 8269CY / L2:1.0MB L3:35.8MB / ~2.25 GHz455668873
ASUS 400% 200% 400% 400%Intel(R) Core(TM) i7-2600 @3.40GHz / L2:1.0MB L3:8.0MB / ~3.56 GHz1,935130251260
DELL 200% 100% 200% 200%Intel(R) Core(TM) [email protected] / L2:0.5MB L3:3.0MB / ~2.17 GHz739286369
HP 160% 100% 160% 160%Intel(R) Core(TM) i5 M [email protected] / L2:0.5MB L3:3.0MB / ~2.79GHz243102124
 Total combined hash rates7,425785913898

Note 1: VPS CPU utilizations limited at 180% during the 3 days on each crypto mining algorithm.
Note 2: PC(s) CPU utilization was represented respectively by the crypto mining algorithms (RandomX, CN Heavy, CNR, CNR).

1. What happens if you utilize your VPS CPU 100% consistently?

I utilized all my rented VPS CPU(s) 100% for 3 consecutive days.

Alibaba CPU utilization sample

Vultr:

Based on monitoring results and subsequent analysis, we have determined your CPU resource utilization 
profile is excessive and causing performance issues which may unfairly affect the population of Vultr 
subscribers as a whole. Accordingly, we have limited the maximum CPU resources your instances can consume 
(an account-wide setting). If you are able to reduce the performance impact we have observed, we may be 
able to adjust the limit or remove it altogether.

Well, they could have warned me that before limiting my account.

Me:

What is the max CPU load that a subscriber is allowed to utilize without affecting the others on Vultr?

I hoped that they would give me something like 50%, 75%, or 90%.

Vultr:

Our formal service limitations are listed in our acceptable use policy; however, if subscribers exceed 
an acceptable level of usage and results in degrading overall system performance, we have the right 
to limit the account.

We have set resource limits on your account due to high resource utilization that were impacting the 
performance for other customers on the same host node. If you need to make extensive use of the host 
CPU, disk, and/or network resources, please consider using our dedicated (VDC) or bare metal products. 
These alternatives would avoid affecting the performance of other customer's activities.

You may petition to have these limits removed by maintaining consistently lower utilization for two 
weeks and then replying to this ticket.

So basically, if you happen to rent a small VPS from Vultr (cloud compute $20/m), then you will likely be limited someday. They force account-wide limitations for 14 days with no prior notice. This reminded me of the incident where DO locked out a startup’s access to their rented VPS(s).

2. Which VPS provider currently has the best performing VPS in terms of CPU utilization over cost?

Based on the observed hash rates:
  #1 - Upcloud ~ $20/month => 931 h/s
  #2 - Linode ~ $20/month => 740 h/s
  #3 - Alibaba ~ $40/month => 455 h/s, $80/month => 455 x 2 = 910 h/s
  #4 - Azure ~ $91/month => 824 h/s

Somewhat unexpected findings during the whole experiment:

Azure VM’s F series is labeled “Compute Optimized”. D series is labeled “General purpose”. Yet, D series had better hash rates.
Azure VM’s AMD based versions outperformed the Intel based counterparts while being priced cheaper.
Linode dedicated VPS ($30/m) instance slightly underperformed the shared ($20/m) instance. Specs were pretty much identical.
An Alibaba representative called me asking about my overall experience with their cloud. I did not expect that :)

3. Generally, how performant are these VPS instances compared to my old personal computers?

Now, I feel like my 10-yo ASUS processor is still a beast when it comes to CPU performance.


Well, it was a fun experiment for me at least. I am thinking about exploring more crypto stuff when I get a chance.
PS: 0.0053 XMR, 0.427 xHV, 5.14 SUMO, 286.4 LTHN were mined ~3 days.

· CPU_crypto_mining, cheap_VPS, CPU_benchmark