東京リージョンで「C7g」AWS Graviton 3を搭載した最新世代のEC2が利用可能になりました

最新世代のGraviton3を搭載する「C7g」インスタンスが東京リージョンで利用可能になりました。
2023.02.25

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

2023年2月24日、「C7g」のインスタンスファミリー、 「Graviton3」 AWSが開発する Armプロセッサーを搭載した 最新世代のEC2インスタンスが 東京リージョンでも利用可能になりました。

今回、東京リージョンで「C7g」インスタンスの起動を試す機会がありましたので、紹介させていただきます。

EC2

インスタンスを起動

アーキテクチャ 「64ビット (Arm)」を指定、インスタンスファミリー「C7g」の選択が可能になりました。

インスタンスタイプ情報

2023年2月時点で 検証を試みたアカウントでは、 「C7g」 を利用可能な 東京リージョンのアベイアビリティゾーン(AZ) は、 ap-northeast-1c (apne1-az1), ap-northeast-1d (apne1-az2) の 2つでした。

dmesg

AmazonLinux2の AMI (amzn2-ami-kernel-5.10-hvm-2.0.20230207.0-arm64-gp2) を利用して c7g.mediumの EC2インスタンスを起動。 OSコマンドを利用して確認を試みました。

sh-4.2$ dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd401]
[    0.000000] Linux version 5.10.165-143.735.amzn2.aarch64 (mockbuild@ip-10-0-48-56) (gcc10-gcc (GCC) 10.3.1 20210422 (Red Hat 10.3.1-1), GNU ld version 2.35.2-9.amzn2.0.1) #1 SMP Wed Jan 25 03:13:36 UTC 2023
[    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=0x7a786a98 RNG=0x752e0018 MEMRESERVE=0x78510e98
[    0.000000] random: crng init done
(略)
[    0.000000] percpu: Embedded 33 pages/cpu s95000 r8192 d31976 u135168
[    0.000000] pcpu-alloc: s95000 r8192 d31976 u135168 alloc=33*4096
[    0.000000] pcpu-alloc: [0] 0
[    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.000000] alternatives: patching kernel code
[    0.000000] Fallback order for Node 0: 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 499968
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.10.165-143.735.amzn2.aarch64 root=UUID=180d0ded-4bb4-4788-a6e7-431d911c841c ro console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 nvme_core.io_timeout=4294967295 rd.emergency=poweroff rd.shell=0
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x000000006e800000-0x0000000072800000] (64MB)
[    0.000000] Memory: 1803928K/2031616K available (12992K kernel code, 5658K rwdata, 9236K rodata, 4608K init, 8875K bss, 162152K reserved, 65536K cma-reserved)
(略)
[    0.000740] smp: Bringing up secondary CPUs ...
[    0.000742] smp: Brought up 1 node, 1 CPU
[    0.000744] SMP: Total of 1 processors activated.
[    0.000746] CPU features: detected: Privileged Access Never
[    0.000747] CPU features: detected: LSE atomic instructions
[    0.000749] CPU features: detected: User Access Override
[    0.000750] CPU features: detected: 32-bit EL0 Support
[    0.000752] CPU features: detected: Common not Private translations
[    0.000753] CPU features: detected: Scalable Vector Extension
[    0.000754] CPU features: detected: RAS Extension Support
[    0.000756] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.000758] CPU features: detected: Instruction cache invalidation not required for I/D coherence
[    0.000759] CPU features: detected: Stage-2 Force Write-Back
[    0.000761] CPU features: detected: CRC32 instructions
[    0.000762] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.000763] CPU features: detected: Generic authentication (architected algorithm)
[    0.000765] CPU features: detected: Random Number Generator
[    0.008754] SVE: maximum available vector length 32 bytes per vector
[    0.008756] SVE: default vector length 32 bytes per vector
[    0.016394] CPU: All CPU(s) started at EL1
[    0.016755] devtmpfs: initialized
[    0.016890] Registered cp15_barrier emulation handler
[    0.016895] Registered setend emulation handler
[    0.016922] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016926] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.017132] pinctrl core: initialized pinctrl subsystem
[    0.017221] SMBIOS 3.0.0 present.
[    0.017224] DMI: Amazon EC2 c7g.medium/, BIOS 1.0 11/1/2018

lscpu

CPUの詳細情報は、北米リージョンの c7g インスタンスと 共通でした。

sh-4.2$  lscpu
Architecture:        aarch64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              1
On-line CPU(s) list: 0
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           1
NUMA node(s):        1
Vendor ID:           ARM
Model:               1
Stepping:            r1p1
BogoMIPS:            2100.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            1024K
L3 cache:            32768K
NUMA node0 CPU(s):   0
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 pacapacg dcpodp svei8mm svebf16 i8mm bf16 dgh rng

c6g, c7g比較

東京リージョンのc7g インスタンスのオンデマンド価格は、c6gインスタンスより6%高額な設定です。

インスタンスタイプ vCPU メモリ (GiB) 持続クロック速度 GHz(c6g) 持続クロック速度 GHz(c7g) ネットワーク性能(c6g) ネットワークパフォーマンス(c7g) オンデマンド 料金 USD(c6g) オンデマンド 料金 USD(c7g)
c7g.medium 1 2 2.5 2.6 Up to 10 Gigabit Up to 12.5 Gigabit 0.0428 0.0455
c7g.large 2 4 2.5 2.6 Up to 10 Gigabit Up to 12.5 Gigabit 0.0856 0.091
c7g.xlarge 4 8 2.5 2.6 Up to 10 Gigabit Up to 12.5 Gigabit 0.1712 0.1819
c7g.2xlarge 8 16 2.5 2.6 Up to 10 Gigabit Up to 15 Gigabit 0.3424 0.3638
c7g.4xlarge 16 32 2.5 2.6 Up to 10 Gigabit Up to 15 Gigabit 0.6848 0.7277
c7g.8xlarge 32 64 2.5 2.6 12 Gigabit 15 Gigabit 1.3696 1.4554
c7g.12xlarge 48 96 2.5 2.6 20 Gigabit 22.5 Gigabit 2.0544 2.183
c7g.16xlarge 64 128 2.5 2.6 25 Gigabit 30 Gigabit 2.7392 2.9107
c7g.metal 64 128 2.5 2.6 25 Gigabit 30 Gigabit 2.7392 2.9107

※オンデマンド料金は東京リージョン、Linux 1時間価格(USD)

まとめ

最新世代の「Graviton3」プロセッサーを搭載する「c7g」インスタンス、 前世代の「Graviton2」と比較し 若干高いオンデマンド価格設定となりますが、メモリ、IO性能の強化などによる大幅な性能改善が期待できます。

  • メモリ帯域: 50%
  • コンピュート性能 最大25%
  • 浮動小数点計算: 最大200%弱
  • 暗号計算性能: 最大200%
  • 機械学習性能: 最大300%

New Graviton3-Based General Purpose (m7g) and Memory-Optimized (r7g) Amazon EC2 Instances

東京リージョンでArmアーキテクチャで動作するワークロードがある場合、「Graviton3」の性能をお試しください。