LoginSignup
0
2

More than 3 years have passed since last update.

Fedora CoreOSで/proc/cpuinfoの内容をEC2インスタンスのvCPU数と同じにする設定

Last updated at Posted at 2020-03-31

EC2 t3.small
Fedora CoreOS stable 31.20200310.3.0

CoreOS incorrectly reports CPU info via /proc/cpuinfo #413

jlebon commented

Likely due to FCOS disabling SMT when necessary: https://github.com/coreos/fedora-coreos-tracker/blob/master/Design.md#automatically-disable-smt-when-needed-to-address-vulnerabilities.
I'm guessing the vCPUs count quoted in EC2 instance types assume hyperthreading.

cyrus-mc commented

That appears to be it. Appreciate the quick response.

I updated the kernel options using

rpm-ostree kargs --replace="mitigations=auto"
Removing nosmt.

# CPU ごとのコア数
grep cpu.cores /proc/cpuinfo

# 実行結果
cpu cores   : 1

# カーネルオプションを更新
sudo rpm-ostree kargs --replace="mitigations=auto"

Staging deployment... done
Kernel arguments updated.
Run "systemctl reboot" to start a reboot

# 再起動
sudo systemctl reboot

# 再起動後
# CPU ごとのコア数
grep cpu.cores /proc/cpuinfo

# 実行結果
cpu cores   : 1
cpu cores   : 1
0
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
0
2