1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jetson NanoのCPU情報

Last updated at Posted at 2019-05-21

はじめに

買う前はGPUのことばかり見ていたので、CPUのことも調べることにした。

lscpu

まずはlscpuから。CPUはCortex-A57だった[1]。いつもなら買う前にチェックするはずが見た瞬間に衝動買いをしてしまったのでチェックしていなかった。

root@jetson-nano:~# lscpu 
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               1
Model name:          Cortex-A57
Stepping:            r1p1
CPU max MHz:         1428.0000
CPU min MHz:         102.0000
BogoMIPS:            38.40
L1d cache:           32K
L1i cache:           48K
L2 cache:            2048K
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32

Flagsの意味は参考文献2を参照。

/proc/cpuinfo

続いて/proc/cpuinfoの確認。基本的にlspciコマンドで得られる情報と変わらない。

root@jetson-nano:~# cat /proc/cpuinfo 
processor	: 0
model name	: ARMv8 Processor rev 1 (v8l)
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 1

processor	: 1
model name	: ARMv8 Processor rev 1 (v8l)
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 1

processor	: 2
model name	: ARMv8 Processor rev 1 (v8l)
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 1

processor	: 3
model name	: ARMv8 Processor rev 1 (v8l)
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 1

各々の意味は
CPU implementer: 0x41 => ARM
CPU architecture: 8 => ARMv8
CPU variant: 0x1 => メジャーバージョン相当
CPU part: 0xd07 => Cortex-A57 (A53の場合は0xd03)
CPU revision: 1 => マイナーバージョン相当

ホットプラグ対応

次にホットプラグ対応の確認。最初にカーネルのコンパイルオプションを確認すると有効になっている。

root@jetson-nano:~# zgrep CONFIG_HOTPLUG_CPU /proc/config.gz 
CONFIG_HOTPLUG_CPU=y

CPU1をdisableにしてenableに戻してみる。

root@jetson-nano:~# echo 0 > /sys/devices/system/cpu/cpu1/online 
root@jetson-nano:~# grep processor /proc/cpuinfo 
processor	: 0
processor	: 2
processor	: 3
root@jetson-nano:~# echo 1 > /sys/devices/system/cpu/cpu1/online 
root@jetson-nano:~# grep processor /proc/cpuinfo 
processor	: 0
processor	: 1
processor	: 2
processor	: 3

CPUの速度

現在の速度(動的に変わる)。およそ200〜600MHzで変動。

root@jetson-nano:~# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
403200
518400
518400
518400

最大値は1428000/1024/1024〜1.36GHzに設定されていた。

root@jetson-nano:~# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
1428000
1428000
1428000
1428000

参考文献

[1] ARM Cortex-A57 MPCore Processor Technical Reference Manual
[2] elf_hwcaps.txt

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?