この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。
はじめに
AWSチームのすずきです。
2016年のre:Inventで発表された、新しいメモリ最適化インスタンスの「r4」。 本日(2017/1/19)、AWS東京リージョンでの利用が可能となりました。
早速「r4」のインスタンスを起動する機会がありましたので、紹介させて頂きます。
-【速報】EC2に新しいインスタンスタイプ T2/R4/I3/C5/F1が追加されました #reinvent - 次世代のメモリ最適化EC2インスタンス(R4) - New – Next Generation (R4) Memory-Optimized EC2 Instances
比較
- AWSのマネジメントコンソールでEC2の起動時、現行世代のメモリ最適化インスタンスとして案内される様になった「r4」と、「r3」の比較を行いました。
スペック
- 「r4」のストレージは、EBS専用になりました。(「r3」で提供されていたインスタンスストレージ(SSD)は省略されました。)
- メモリ488GiB搭載の「r4.16xlarge」が利用可能になりました。
- 「r4」は、EBS最適化オプションが標準になりました
料金
インスタンスタイプ別利用費一覧
- 料金は東京リージョンの利用費(Linux/Unix、オンデマンド1時間料金)
インスタンスタイプ | ECU | メモリ(GiB) | 料金($) | ECU | メモリ(GiB) | 料金($) | 料金($) ※EBS最適化 | |
---|---|---|---|---|---|---|---|---|
r4.large | 7 | 15.25 | 0.16 | r3.large | 6.5 | 15 | 0.2 | (提供なし) |
r4.xlarge | 13.5 | 30.5 | 0.32 | r3.xlarge | 13 | 30.5 | 0.399 | 0.419 |
r4.2xlarge | 27 | 61 | 0.64 | r3.2xlarge | 26 | 61 | 0.798 | 0.848 |
r4.4xlarge | 53 | 122 | 1.28 | r3.4xlarge | 52 | 122 | 1.596 | 1.696 |
r4.8xlarge | 99 | 244 | 2.56 | r3.8xlarge | 104 | 244 | 3.192 | (提供なし) |
r4.16xlarge | 195 | 488 | 5.12 | (提供なし) |
- 相対的なCPU性能を示すECU、「r4」が「r3」を若干上回ります。(8xを除く)
- 「r4」は「r3」の同等クラスと比較し、約20%オフの価格設定です
CPU
- CPU情報(/proc/cpuinfo)の差分は以下の通りでした
r3.large
---
< model : 62
< model name : Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
< cache size : 25600 KB
---
< flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm fsgsbase smep erms xsaveopt
r4.large
---
> model : 79
> model name : Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz
> cache size : 46080 KB
20c20
---
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx xsaveopt
まとめ
「r3」に設定のある「large」〜「8xlarge」で比較すると、 「r4」は、同等のスペックの「r3」のおよそ20%オフの時間単価で利用する事が可能です。
さらに「r4」は、IO、ネットワーク性能向上効果が期待できるEBS最適化オプションが 標準で利用できる事から、インスタンスストア(高速な内蔵SSD)を必要としない環境であれば 「r4」は「r3」よりコストパフォーマンス良く利用できると考えられます。
現在、「r3」のオンデマンドで稼働中であったり、リザーブドインスタンスの契約更新を控えたEC2インスタンスについては、 利用中のストレージを確認し、EBSのみの利用でである場合には、「r3」→「r4」への変更を検討頂ければと思います。
また、今回新たに利用できるようになった「r4.16xlarge」は488GiBのメモリを搭載します。 「r3.8xlarge」(244GiB)と、「x1.16xlarge」(976GiB)の中間を埋めるインスタンスタイプとしてご活用ください。
参考
r4.largeインスタンスで取得した「dmidecode」情報です。
sudo yum install dmidecode
sudo dmidecode
# dmidecode 2.12
SMBIOS 2.4 present.
12 structures occupying 349 bytes.
Table at 0x000EB01F.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: Xen
Version: 4.2.amazon
Release Date: 09/19/2016
Address: 0xE8000
Runtime Size: 96 kB
ROM Size: 64 kB
Characteristics:
PCI is supported
EDD is supported
Targeted content distribution is supported
BIOS Revision: 4.2
Handle 0x0100, DMI type 1, 27 bytes
System Information
Manufacturer: Xen
Product Name: HVM domU
Version: 4.2.amazon
Serial Number: ec27f97b-fa24-5ce8-7de4-26d7925cd8d1
UUID: EC27F97B-FA24-5CE8-7DE4-26D7925CD8D1
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified
Handle 0x0300, DMI type 3, 13 bytes
Chassis Information
Manufacturer: Xen
Type: Other
Lock: Not Present
Version: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: Unknown
Handle 0x0401, DMI type 4, 26 bytes
Processor Information
Socket Designation: CPU 1
Type: Central Processor
Family: Other
Manufacturer: Intel
ID: F1 06 04 00 FF FB 89 17
Version: Not Specified
Voltage: Unknown
External Clock: Unknown
Max Speed: 2300 MHz
Current Speed: 2300 MHz
Status: Populated, Enabled
Upgrade: Other
Handle 0x0402, DMI type 4, 26 bytes
Processor Information
Socket Designation: CPU 2
Type: Central Processor
Family: Other
Manufacturer: Intel
ID: F1 06 04 00 FF FB 89 17
Version: Not Specified
Voltage: Unknown
External Clock: Unknown
Max Speed: 2300 MHz
Current Speed: 2300 MHz
Status: Populated, Enabled
Upgrade: Other
Handle 0x0B00, DMI type 11, 5 bytes
OEM Strings
String 1: Xen
Handle 0x1000, DMI type 16, 15 bytes
Physical Memory Array
Location: Other
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 15616 MB
Error Information Handle: Not Provided
Number Of Devices: 1
Handle 0x1100, DMI type 17, 21 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: 0x0000
Total Width: 64 bits
Data Width: 64 bits
Size: 15616 MB
Form Factor: DIMM
Set: None
Locator: DIMM 0
Bank Locator: Not Specified
Type: RAM
Type Detail: None
Handle 0x1300, DMI type 19, 15 bytes
Memory Array Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x003CFFFFFFF
Range Size: 15616 MB
Physical Array Handle: 0x1000
Partition Width: 1
Handle 0x1400, DMI type 20, 19 bytes
Memory Device Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x003CFFFFFFF
Range Size: 15616 MB
Physical Device Handle: 0x1100
Memory Array Mapped Address Handle: 0x1300
Partition Row Position: 1
Handle 0x2000, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected
Handle 0x7F00, DMI type 127, 4 bytes
End Of Table