「C7g」AWS Graviton 3を搭載した新しいEC2インスタンスがリリースされました

AWSが開発する最新ArmプロセッサーのGraviton3を搭載したインスタンス「C7g」が利用可能になりました。
2022.05.24

この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。

2022年5月24日、re:Invent2021で発表された「Graviton3」AWSが開発する最新のArmプロセッサーを搭載した「C7g」インスタンスが利用可能になりました。

その起動を試みる機会がありましたので、紹介させていただきます。

EC2

オレゴン(us-west-2)リージョンで、AmazonLinux2 のAMIを利用してEC2インスタンスを起動しました。

  • Instance type: c7g.large
  • AMI name: amzn2-ami-kernel-5.10-hvm-2.0.20220426.0-arm64-gp2

dmesg

sh-4.2$ dmesg 
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd401]
[    0.000000] Linux version 5.10.109-104.500.amzn2.aarch64 (mockbuild@ip-10-0-42-103) (gcc10-gcc (GCC) 10.3.1 20210422 (Red Hat 10.3.1-1), GNU ld version 2.35-21.amzn2.0.1) #1 SMP Wed Apr 13 20:31:44 UTC 2022
[    0.000000] efi: EFI v2.70 by EDK II
[    0.000000] efi: SMBIOS=0x7bed0000 SMBIOS 3.0=0x7beb0000 ACPI=0x786e0000 ACPI 2.0=0x786e0014 MEMATTR=0x7a6a3018 RNG=0x7bfded18 MEMRESERVE=0x78510e98
(略)
[    0.000000] percpu: Embedded 33 pages/cpu s95896 r8192 d31080 u135168
[    0.000000] pcpu-alloc: s95896 r8192 d31080 u135168 alloc=33*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Hardware dirty bit management
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: Address authentication (architected algorithm)
[    0.000000] CPU features: detected: Spectre-BHB
(略)
[    0.000924] GICv3: CPU1: found redistributor 1 region 0:0x0000000010220000
[    0.000998] GICv3: CPU1: using allocated LPI pending table @0x00000004001d0000
[    0.001050] CPU1: Booted secondary processor 0x0000000001 [0x411fd401]
[    0.001081] smp: Brought up 1 node, 2 CPUs
[    0.001087] SMP: Total of 2 processors activated.
[    0.001089] CPU features: detected: Privileged Access Never
[    0.001090] CPU features: detected: LSE atomic instructions
[    0.001091] CPU features: detected: User Access Override
[    0.001093] CPU features: detected: 32-bit EL0 Support
[    0.001094] CPU features: detected: Common not Private translations
[    0.001096] CPU features: detected: Scalable Vector Extension
[    0.001097] CPU features: detected: RAS Extension Support
[    0.001098] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.001100] CPU features: detected: Instruction cache invalidation not required for I/D coherence
[    0.001101] CPU features: detected: Stage-2 Force Write-Back
[    0.001103] CPU features: detected: CRC32 instructions
[    0.001104] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.001105] CPU features: detected: Generic authentication (architected algorithm)
[    0.001107] CPU features: detected: Random Number Generator
[    0.009132] SVE: maximum available vector length 32 bytes per vector
[    0.009135] SVE: default vector length 32 bytes per vector
[    0.016754] CPU: All CPU(s) started at EL1
[    0.017165] devtmpfs: initialized
[    0.017344] Registered cp15_barrier emulation handler
[    0.017350] Registered setend emulation handler
[    0.017386] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.017390] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.017597] pinctrl core: initialized pinctrl subsystem
[    0.017691] SMBIOS 3.0.0 present.
[    0.017695] DMI: Amazon EC2 c7g.large/, BIOS 1.0 11/1/2018

lscpu

sh-4.2$ lscpu
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              2
On-line CPU(s) list: 0,1
Thread(s) per core:  1
Core(s) per socket:  2
Socket(s):           1
NUMA node(s):        1
Model:               1
BogoMIPS:            2100.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            1024K
L3 cache:            32768K
NUMA node0 CPU(s):   0,1
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs paca pacg dcpodp svei8mm svebf16 i8mm bf16 dgh rng

Instance Types情報

C7g

  • vCPU1の「c7g.medium」から、vCPU64の「c7g.16xlarge」が提供されています。
  • 「c7g.16xlarge」の最大ネットワーク帯域は30Gbps。「c6g、16xlarge」の20 Gbpsから拡張されました。

スペック、価格の比較

「c7g.large」と、同数のvCPU、メモリを搭載する旧世代のインスタンスとの比較を試みました。

  • 「C7g.large」のオンデマンド価格は$0.0725、「C6g.large」の$0.068より、約6%値上げになりました。
  • 「C7g.large」の最大ネットワーク帯域は12.5Gbps、C6g.largeの10Gbpsから 25%拡張されました。

まとめ

「c7g」インスタンスに搭載されている最新世代の「Graviton3」プロセッサー、「c6g」に搭載されている「Graviton2」と比較し最大25%の演算性能の向上が期待できるとされています。

また、「C7g」で採用されたDDR5規格のメモリーは従来のDDR4規格と比較し2倍のメモリ帯域が利用可能、メモリアクセス性能の向上も期待できます。

2022年5月時点、「C7g」インスタンスが利用可能なリージョンは北米 (オレゴン、バージニア)に限られますが、各国リージョンへの展開も計画されている模様です。 Armインスタンスで動作可能なワークロードがあれば、最新のEC2インスタンスの性能をぜひお試しください。