差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:commands:hardware [2019/09/10 15:54] – ともやん | linux:commands:hardware [2024/04/13 03:59] (現在) – [Ethernet / Wifi カード情報ぼ表示 [lspci | grep -i net]] ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== ハードウェア関連 ====== | ====== ハードウェア関連 ====== | ||
| - | ===== CPU 情報の表示 | + | ===== カーネルモジュールのロード |
| + | 今さらフロッピードライブを使う場合。\\ | ||
| + | floppy カーネルモジュールをロードする。\\ | ||
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ sudo modprobe floppy | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | デバイスの確認。\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ ll /dev/fd* | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% # | ||
| + | < | ||
| + | lrwxrwxrwx 1 root root | ||
| + | brw-rw---- 1 root floppy 2, | ||
| + | brw-rw---- 1 root floppy 2, 84 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 88 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 28 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 124 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 44 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 60 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 76 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 96 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 116 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 100 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 12 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 16 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 120 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 52 8月 4 08:45 / | ||
| + | brw-rw---- 1 root floppy 2, 68 8月 4 08:45 / | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | floppy をマウントする。\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ sudo mount /dev/fd0 /mnt/floppy | ||
| + | $ mount | grep fd0 | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% #result> | ||
| + | < | ||
| + | /dev/fd0 on /mnt/floppy type vfat (rw, | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== CPU 情報の表示 [lscpu] ===== | ||
| + | <WRAP prewrap 100% #result> | ||
| < | < | ||
| $ lscpu | $ lscpu | ||
| 行 35: | 行 85: | ||
| ==== Kernel の cpuinfo の表示 [cat / | ==== Kernel の cpuinfo の表示 [cat / | ||
| - | <WRAP prewrap 100%> | + | <WRAP prewrap 100% #result> |
| < | < | ||
| $ cat / | $ cat / | ||
| 行 147: | 行 197: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ===== CPU クロック周波数スケーリング情報の表示 [cpupower frequency-info] ===== | ||
| + | cpupower を実行するには kernel-tools のインストールが必要である。\\ | ||
| + | < | ||
| + | $ sudo dnf install kernel-tools | ||
| + | </ | ||
| + | < | ||
| + | $ sudo cpupower frequency-info | ||
| + | analyzing CPU 0: | ||
| + | driver: intel_pstate | ||
| + | CPUs which run at the same hardware frequency: 0 | ||
| + | CPUs which need to have their frequency coordinated by software: 0 | ||
| + | maximum transition latency: | ||
| + | hardware limits: 800 MHz - 3.00 GHz | ||
| + | available cpufreq governors: performance powersave | ||
| + | current policy: frequency should be within 800 MHz and 3.00 GHz. | ||
| + | The governor " | ||
| + | within this range. | ||
| + | current CPU frequency: Unable to call hardware | ||
| + | current CPU frequency: 2.60 GHz (asserted by call to kernel) | ||
| + | boost state support: | ||
| + | Supported: yes | ||
| + | Active: yes | ||
| + | 2800 MHz max turbo 4 active cores | ||
| + | 2800 MHz max turbo 3 active cores | ||
| + | 2800 MHz max turbo 2 active cores | ||
| + | 3000 MHz max turbo 1 active cores | ||
| + | </ | ||
| + | |||
| + | ==== CPU クロック周波数スケーリングの変更 ==== | ||
| + | 800 MHz に固定する場合。\\ | ||
| + | < | ||
| + | $ sudo cpupower frequency-set -u 800MHz | ||
| + | </ | ||
| ===== PCI バス情報の表示 [lspci] ===== | ===== PCI バス情報の表示 [lspci] ===== | ||
| 行 172: | 行 256: | ||
| </ | </ | ||
| - | ==== VGA カード情報ぼ表示 [lspci | grep -i vga] ==== | + | ==== VGA カード情報の表示 [lspci | grep -i vga] ==== |
| < | < | ||
| $ lspci | grep -i vga | $ lspci | grep -i vga | ||
| 行 179: | 行 263: | ||
| </ | </ | ||
| - | ==== Ethernet / Wifi カード情報ぼ表示 [lspci | grep -i net] ==== | + | ==== Ethernet / Wifi カード情報の表示 [lspci | grep -i net] ==== |
| < | < | ||
| $ lspci | grep -i net | $ lspci | grep -i net | ||