1. 程式人生 > >Improve CPU Performance of EC2 Linux Instances

Improve CPU Performance of EC2 Linux Instances

To improve the performance of your Amazon EC2 Linux instances, try the following recommendations:

Hardware virtual machine (HVM) Amazon Machine Images (AMIs)

We recommend using HVM AMIs for improved performance. HVM AMIs also offer newer instance classes (for example, M5, M4, and R4) and EC2 features such as

enhanced networking. For more information, see Linux AMI Virtualization Types.

Enhanced networking

To improve performance, you can use enhanced networking on supported instance types at no additional charge. Enhanced networking uses single root I/O virtualization (SR-IOV), which is a method of device virtualization that provides higher I/O performance and lower CPU utilization when compared to traditional virtualized network interfaces. For supported instance types and instructions, see

Enhanced Networking on Linux and Enhanced Networking on Windows.

To enable enhanced networking, the instances must use an HVM AMI and be launched in an Amazon Virtual Private Cloud (Amazon VPC).

Note: We recommend using an updated version of the Elastic Network Adapter (ENA) or the Intel 82599 Virtual Function (VF) interface driver.

Non-volatile memory express (NVMe) volumes

For storage, using NVMe instance store volumes can assist with performance. Depending on your kernel version and instance type, improved performance with NVMe volumes can vary with workload. For more information, see Amazon EBS and NVMe and SSD Instance Store Volumes.

Note: To use the Kyber I/O scheduler for certain workloads, be sure your Amazon EC2 Linux instance is running kernel 4.12 or newer.

HugePages

HugePages can improve performance for workloads that execute large amounts of memory access. For best practices regarding High-Performance Computing (HPC) workloads, see High-Performance Computing Lens.

Latest kernel version and instance types

Using the latest kernel version and instance types is highly recommended for performance. If you’re using M3, C3, or other older instance types, consider migrating to M4 or similar instance types, as well as using the latest kernel version available for the operating system. For more information, see Amazon EC2 Instance Types.

Jumbo frames

Avoid small packets whenever possible. If your workload supports it, use larger packets with jumbo frames. For more information, see Network Maximum Transmission Unit (MTU) for Your EC2 Instance.

Data Plane Development Kit (DPDK)

You might see performance benefits from using DPDK-based versions of software to move networking outside the kernel and into userspace. Using DPDK can require a software update that includes DPDK support.

Process Context Identifier (PCID)

If Kernel Page-Table Isolation (KPTI) is enabled on your instance's operating system, then also enabling PCID can improve CPU performance. You must verify that both the kernel and instance type support PCID.

Scaling instances

To improve performance, consider increasing the size of your instances, or increasing the number of instances.

Timers

The tsc timer is the generally the best performing timer available to most instances. If you’re using a xen timer, you might see improved performance by moving to the tsc timer. If you’re using an older operating system that’s using the jiffies timer, consider moving to an operating system that preferably supports tsc, or supports xen at minimum.

Note: Older instance types, such as M1 or M2, provide an emulated tsc timer. Consider moving to a newer instance type for better tsc timer performance.

相關推薦

Improve CPU Performance of EC2 Linux Instances

To improve the performance of your Amazon EC2 Linux instances, try the following recommendations: Hardware virtual machine (HVM) Ama

Expand the Root Volume of an EC2 Linux Instance

1.    Review Amazon EBS Volume Performance on Linux Instances before you expand the EBS root volume of your EC2 Linux instance. This will help

【DATE2017】Double MAC: Doubling the Performance of Convolutional Neural Networks on Modern FPGAs

-1 資源 font 文章 討論 要點 兩個 需要 分享 這篇文章介紹了如何利用FPGA內部單個DSP來實現SIMD乘法,從而提高DSP利用率,緩解計算資源不足的問題,是一個比較實用的trick。 要點: 利用單個DSP並行實現兩次乘法:A*C、B*C; 文中只討論了A、

On the Performance of MIMO-NOMA-Based Visible Light Communication Systems

讀後感: 今天讀了《On the Performance of MIMO-NOMA-Based Visible Light Communication Systems》有感如下: 摘要:在本文中,我們應用non-orthogonal multiple access(NOMA)技術去提高基於多

EC2-linux系統安裝和配置jdk1.8詳細步驟

最近一直在找伺服器...經過同學推薦,我註冊了亞馬遜...免費使用一年...具體的大家百度就好..接下來正文了.... 伺服器我建立好了以後,首先下載linux版本的jdk1.8  我這裡的版本是1.8.0_171的... 第一步:附上下載地址  點我下載jdk

Centos7 安裝完畢後,重啟提示 Initial setup of CentOS Linux 7 (core) 的解決方法

問題: Centos7 安裝完畢後,重新開機啟動後顯示 Initial setup of CentOS Linux 7 (core) 1)[x] Creat user 2)[!]License information (no user will be created)(license

gzip: stdin: unexpected end of file Linux解壓檔案出錯

[[email protected] jdk1.8]# tar -zxvf jdk-8u161-linux-x64.tar.gz jdk1.8.0_161/ jdk1.8.0_161/javafx-src.zip gzip: stdin: unexpected e

How to get the IP address of a Linux system

之前在 Windows/Mac OS 取得 ip address 透過 import socket print socket.gethostbyname(socket.gethostname()) 都沒問題。但在  Linux 裡出問題了。 print socket.gethostbyname_ex(s

CentOS7重啟Initial setup of CentOS Linux

Initial setup of CentOS Linux 7 (core)                                                              1) [x] Creat user 2) [!] License inf

解決Centos7初次開機提示Initial setup of CentOS Linux 7

開機後提示以下資訊 Initial setup of CentOS Linux 7 (core) 1) [x] Creat user 2) [!] License information (no

How machine learning can improve pricing performance

New analytical capabilities have the potential to transform the way banks and other payment providers price products and services. Obtaining fair compensat

Fantasy Performance of Top Running Backs

Fantasy Performance of Top Running BacksAs we continue to develop our AI for ranking NFL players, I’ve been spending time diving deeper into running backs.

3 Tips to Boost the Performance of your Varnish Cache

TIP #3 : Browser optimizationBrowser limits the number of concurrently HTTP requests on the same domain (RFC2616). Of course, you cannot change the client’

driven organisations can harness the power of ‘many eyes’ and improve the accuracy of

How data-driven organisations can harness the power of ‘many eyes’ and improve the accuracy of their data and analyticsAnalytic Ops, simply put, is Dev Ops

How swarms of nanomachines could improve the efficiency of any machine

Recent progress in nanotechnology has enabled researchers to understand the world in ever-smaller scales and even allows for the design and manufacture of

More goals in quantum soccer: Study may improve the transmission of quantum information over long distances

With a trick, Bonn physicists nevertheless managed to achieve a 90-percent score rate in a similar situation. However, their player was almost 10 billion

Amazon EC2 z1d Instances

Many workloads such as electronic design automation (EDA) and relational databases have high per core software licensing fees. Semiconductor firms

AWS | Amazon EC2 Dedicated Instances

*This is the average monthly payment over the course of the Reserved Instance term. For each month, the actual monthly payment will equal the a

Amazon EC2 Reserved Instances

EC2 RIs provide a discounted hourly rate and an optional capacity reservation for EC2 instances. AWS Billing automatically applies your RI’s d

Install SSM Agent on an Amazon EC2 Linux Instance

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So