1
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?

More than 1 year has passed since last update.

マシン負荷を調べる(df -h, disk i/o, memory, CPU, SSD/HDDかどうか)

Posted at

storage

$ df -h

disk i/o

sudo hdparm -t /dev/sda # /dev/sdaの部分は適宜更新

memory

$ free -hm

CPU

$ nproc # CPU数
$ cat /proc/cpuinfo # cpu詳細情報
$ top   # プロセスごと

「/sys/block/sdX/queue/rotational」を確認することで、対象のデバイスがディスクかどうか→HDDかSSDかを確認する事ができるようだ。 返り値が1の場合HDD、0の場合はSSDを使用している事になる

cat /sys/block/sdx/queue/rotational
1  # HDD
0  # SSD

参考

1
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
1
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?