linux:commands:hardware

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:commands:hardware [2019/09/10 15:45] – [CPU 情報の表示 [lscpu]] ともやんlinux:commands:hardware [2024/04/13 03:59] (現在) – [Ethernet / Wifi カード情報ぼ表示 [lspci | grep -i net]] ともやん
行 1: 行 1:
 ====== ハードウェア関連 ====== ====== ハードウェア関連 ======
  
-===== CPU 情報表示 [lscpu] =====+===== カーネルモジュールロード [modprobe] ===== 
 +今さらフロッピードライブを使う場合。\\ 
 +floppy カーネルモジュールをロードする。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 +<code>
 +$ sudo modprobe floppy
 +</code>
 +</WRAP>
 +
 +デバイスの確認。\\
 +<WRAP prewrap 100%>
 +<code>
 +$ ll /dev/fd*
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result_long>
 +<code>
 +lrwxrwxrwx 1 root root       13  8月  4 08:36 /dev/fd -> /proc/self/fd
 +brw-rw---- 1 root floppy 2,    8月  4 08:45 /dev/fd0
 +brw-rw---- 1 root floppy 2,  84  8月  4 08:45 /dev/fd0u1040
 +brw-rw---- 1 root floppy 2,  88  8月  4 08:45 /dev/fd0u1120
 +brw-rw---- 1 root floppy 2,  28  8月  4 08:45 /dev/fd0u1440
 +brw-rw---- 1 root floppy 2, 124  8月  4 08:45 /dev/fd0u1600
 +brw-rw---- 1 root floppy 2,  44  8月  4 08:45 /dev/fd0u1680
 +brw-rw---- 1 root floppy 2,  60  8月  4 08:45 /dev/fd0u1722
 +brw-rw---- 1 root floppy 2,  76  8月  4 08:45 /dev/fd0u1743
 +brw-rw---- 1 root floppy 2,  96  8月  4 08:45 /dev/fd0u1760
 +brw-rw---- 1 root floppy 2, 116  8月  4 08:45 /dev/fd0u1840
 +brw-rw---- 1 root floppy 2, 100  8月  4 08:45 /dev/fd0u1920
 +brw-rw---- 1 root floppy 2,  12  8月  4 08:45 /dev/fd0u360
 +brw-rw---- 1 root floppy 2,  16  8月  4 08:45 /dev/fd0u720
 +brw-rw---- 1 root floppy 2, 120  8月  4 08:45 /dev/fd0u800
 +brw-rw---- 1 root floppy 2,  52  8月  4 08:45 /dev/fd0u820
 +brw-rw---- 1 root floppy 2,  68  8月  4 08:45 /dev/fd0u830
 +</code>
 +</WRAP>
 +
 +floppy をマウントする。\\
 +<WRAP prewrap 100%>
 +<code>
 +$ sudo mount /dev/fd0 /mnt/floppy
 +$ mount | grep fd0
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code>
 +/dev/fd0 on /mnt/floppy type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)
 +</code>
 +</WRAP>
 +
 +===== CPU 情報の表示 [lscpu] =====
 +<WRAP prewrap 100% #result>
 <code> <code>
 $ lscpu $ lscpu
行 35: 行 85:
  
 ==== Kernel の cpuinfo の表示 [cat /proc/cpuinfo] ===== ==== Kernel の cpuinfo の表示 [cat /proc/cpuinfo] =====
-<WRAP prewrap 100%>+<WRAP prewrap 100% #result>
 <code> <code>
 $ cat /proc/cpuinfo  $ cat /proc/cpuinfo 
行 147: 行 197:
 </code> </code>
 </WRAP> </WRAP>
 +
 +===== CPU クロック周波数スケーリング情報の表示 [cpupower frequency-info] =====
 +cpupower を実行するには kernel-tools のインストールが必要である。\\
 +<code>
 +$ sudo dnf install kernel-tools
 +</code>
 +<code>
 +$ 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:  Cannot determine or is not supported.
 +  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 "powersave" may decide which speed to use
 +                  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
 +</code>
 +
 +==== CPU クロック周波数スケーリングの変更 ====
 +800 MHz に固定する場合。\\
 +<code>
 +$ sudo cpupower frequency-set -u 800MHz
 +</code>
  
 ===== PCI バス情報の表示 [lspci] ===== ===== PCI バス情報の表示 [lspci] =====
行 172: 行 256:
 </code> </code>
  
-==== VGA カード情報表示 [lspci | grep -i vga] ====+==== VGA カード情報表示 [lspci | grep -i vga] ====
 <code> <code>
 $ lspci | grep -i vga $ lspci | grep -i vga
行 179: 行 263:
 </code> </code>
  
-==== Ethernet / Wifi カード情報表示 [lspci | grep -i net] ====+==== Ethernet / Wifi カード情報表示 [lspci | grep -i net] ====
 <code> <code>
 $ lspci | grep -i net $ lspci | grep -i net
行 235: 行 319:
 </code> </code>
 </WRAP> </WRAP>
 +
 +===== SMBIOS の取得可能なタイプの一覧 [dmidecode -t] =====
 +<code>
 +$ dmidecode -t
 +dmidecode: option requires an argument -- 't'
 +Type number or keyword expected
 +Valid type keywords are:
 +  bios
 +  system
 +  baseboard
 +  chassis
 +  processor
 +  memory
 +  cache
 +  connector
 +  slot
 +</code>
  
 ===== マザーボード情報の表示 [dmidecode -t baseboard] ===== ===== マザーボード情報の表示 [dmidecode -t baseboard] =====
行 314: 行 415:
  zh|TW|unicode  zh|TW|unicode
  Currently Installed Language: en|US|iso8859-1  Currently Installed Language: en|US|iso8859-1
 +</code>
 +
 +===== メモリー情報の表示 [dmidecode -t memory] =====
 +<code>
 +$ sudo dmidecode -t memory
 +# dmidecode 3.2
 +Getting SMBIOS data from sysfs.
 +SMBIOS 2.7 present.
 +
 +Handle 0x0005, DMI type 5, 20 bytes
 +Memory Controller Information
 + Error Detecting Method: None
 + Error Correcting Capabilities:
 + None
 + Supported Interleave: One-way Interleave
 + Current Interleave: One-way Interleave
 + Maximum Memory Module Size: 8192 MB
 + Maximum Total Memory Size: 16384 MB
 + Supported Speeds:
 + Other
 + Supported Memory Types:
 + Other
 + Memory Module Voltage: Unknown
 + Associated Memory Slots: 2
 + 0x0006
 + 0x0007
 + Enabled Error Correcting Capabilities:
 + None
 +
 +Handle 0x0006, DMI type 6, 12 bytes
 +Memory Module Information
 + Socket Designation: DIMM0
 + Bank Connections: None
 + Current Speed: Unknown
 + Type: DIMM
 + Installed Size: 8192 MB (Single-bank Connection)
 + Enabled Size: 8192 MB (Single-bank Connection)
 + Error Status: OK
 +
 +Handle 0x0007, DMI type 6, 12 bytes
 +Memory Module Information
 + Socket Designation: DIMM1
 + Bank Connections: None
 + Current Speed: Unknown
 + Type: DIMM
 + Installed Size: 8192 MB (Single-bank Connection)
 + Enabled Size: 8192 MB (Single-bank Connection)
 + Error Status: OK
 +
 +Handle 0x0028, DMI type 16, 23 bytes
 +Physical Memory Array
 + Location: System Board Or Motherboard
 + Use: System Memory
 + Error Correction Type: None
 + Maximum Capacity: 16 GB
 + Error Information Handle: 0x002D
 + Number Of Devices: 2
 +
 +Handle 0x0029, DMI type 17, 34 bytes
 +Memory Device
 + Array Handle: 0x0028
 + Error Information Handle: 0x002B
 + Total Width: 64 bits
 + Data Width: 64 bits
 + Size: 8192 MB
 + Form Factor: SODIMM
 + Set: None
 + Locator: DIMM0
 + Bank Locator: BANK 0
 + Type: DDR3
 + Type Detail: Synchronous
 + Speed: 1600 MT/s
 + Manufacturer: Unknown
 + Serial Number: 00000000
 + Asset Tag: Unknown
 + Part Number: Not Specified
 + Rank: 2
 + Configured Memory Speed: 1600 MT/s
 +
 +Handle 0x002A, DMI type 17, 34 bytes
 +Memory Device
 + Array Handle: 0x0028
 + Error Information Handle: 0x002C
 + Total Width: 64 bits
 + Data Width: 64 bits
 + Size: 8192 MB
 + Form Factor: SODIMM
 + Set: None
 + Locator: DIMM1
 + Bank Locator: BANK 2
 + Type: DDR3
 + Type Detail: Synchronous
 + Speed: 1600 MT/s
 + Manufacturer: Unknown
 + Serial Number: 00000000
 + Asset Tag: Unknown
 + Part Number: Not Specified
 + Rank: 2
 + Configured Memory Speed: 1600 MT/s
 </code> </code>
  
  • linux/commands/hardware.1568097955.txt.gz
  • 最終更新: 2019/09/10 15:45
  • by ともやん