0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Rocky Linuxなどでyum install ~を実行した際に、Killedと表示されてプロセスが停止する場合、メモリ不足(Out Of Memory)が考えられる。
その対処法。

カーネルのログを確認

dmesg | tail -20

# 以下のように表示されたら、メモリ不足
# Out of memory: Kill process xxxx (yum) score 123 or sacrifice child
# Killed process xxxx (yum)

解決策:スワップ領域を作る

sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

永続化

echo '/swapfile swap swap defaults 0 0' | sudo tee -a /etc/fstab

その後再びyum install ~を実行して、インストールが成功したらOK。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?