Product Update: CPU and Memory Optimized Instance Types for RTX 3080 and 3090 in Norway

Product Update: CPU and Memory Optimized Instance Types for RTX 3080 and 3090 in Norway

Introduction

Many workloads require CPU processing power as all associated tasks can’t be accelerated with the GPU, or even if they could, this might require a custom fork of the specific machine learning algorithm. For instance, object detection algorithms such as YOLOv5 benefit from prudent image pre-processing mainly handled by the CPU. In such cases, the CPU becomes a bottleneck in the training runs and doesn’t allow for optimal GPU utilization. To mitigate this problem, we have put efforts to introduce a new type of NVIDIA® GeForce® RTX 3090 and NVIDIA® GeForce® RTX 3080 GPU instances. For only a 10% price increase, the new ‘CPU and Memory optimized’ instances now offer double the CPU count and system memory size compared to the normal instances.

Image

In this blog post, we will share with you the results from one of our benchmarking tests performed on both CPU and Memory optimized and normal RTX 3090 GPU instances. We trained the YOLOv5 model on the COCO dataset and thus investigated the differences between the two instances and how the optimized one can offer great help to the Genesis Cloud community. We trained our model with a batch count of 48 and in 10 epochs as we tried to inspect the differences in CPU/GPU utilization between the two instance types as well as the time taken to complete the training.

Results of the benchmarking test

Normal RTX 3090 GPU Instance (System hardware)

CPU count 4
GPU count 1
System Memory 24 GiB
GPU Type NVIDIA GeForce RTX 3090 (24GB)

CPU Utilization

CPU Utilization on a normal 3090 instance

GPU Utilization

GPU Utilization on a normal 3090 instance

CPU and Memory optimized RTX 3090 GPU Instance (System hardware)

CPU count 8
GPU count 1
System Memory 48 GiB
GPU Type NVIDIA GeForce RTX 3090 (24GB)

CPU Utilization

CPU Utilization on a CPU and Memory optimized 3090 instance

GPU Utilization

GPU Utilization on a CPU and Memory optimized 3090 instance

When training the YOLOv5 model on a normal instance, the CPU reached a value of 97.7% and thus becomes a bottleneck in the training runs and only allows the GPU for an average utilization of 38%. In contrast, when running the training on an optimized instance, the maximum CPU utilization is only 89.9%, allowing the GPU to reach up to 78% maximum utilization and 65% on average as we can see in the table below:

  Time Epochs Avg GPU utilization % Max CPU utilization %
Optimized 3h 22m 39s 10 65 89.9
Normal 5h 43m 34s 10 38 97.7

GPU/CPU Comparison between Normal and CPU and Memory Optimized instances

Mitigating CPU bottlenecks can result in a great benefit to customers in terms of training time, and therefore service costs: Training on an optimized instance was executed in about half the time of training on a normal instance. Considering a 10% increase in price, it can be said that using the optimized instances can enable the user to train their algorithms with a 1.5x cheaper price.

The table and graph below showcase the training time and price comparison between the optimized and normal RTX 3090 instances (prices are as of November 2022):

  Time Price/h On-demand Cost-to-Train - On-demand
Optimized 3h 22m 39s $1.4 $4.83
Normal 5h 43m 34s $1.3 $7.45

Time/Price Comparison between Normal and CPU and Memory Optimized instances

Conclusion

As highlighted throughout this blog post, the new CPU and Memory optimized RTX 3090 and 3080 GPU instances now offer more affordable and cost-effective solutions for all Genesis Cloud Customers. However, it is not always the case that training your model results in a CPU bottleneck: If your model doesn’t require a lot of CPU processing power and does not hamper the GPU utilization of your instance, it is always advisable to use the normal instances as they are cheaper and will give the same results in the end.

Keep accelerating 🚀

The Genesis Cloud team

Never miss out again on Genesis Cloud news and our special deals: follow us on Twitter, LinkedIn, or Reddit.

Sign up for an account with Genesis Cloud here and benefit from $15 in free credits. If you want to find out more, please write to [email protected].