linux:commands:hardware

差分

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

この比較画面へのリンク

次のリビジョン
前のリビジョン
linux:commands:hardware [2019/09/10 14:51] – 作成 ともやん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
行 33: 行 83:
 </code> </code>
 </WRAP> </WRAP>
 +
 +==== Kernel の cpuinfo の表示 [cat /proc/cpuinfo] =====
 +<WRAP prewrap 100% #result>
 +<code>
 +$ cat /proc/cpuinfo 
 +processor : 0
 +vendor_id : GenuineIntel
 +cpu family : 6
 +model : 58
 +model name : Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz
 +stepping : 9
 +microcode : 0x21
 +cpu MHz : 1642.242
 +cache size : 4096 KB
 +physical id : 0
 +siblings : 4
 +core id : 0
 +cpu cores : 2
 +apicid : 0
 +initial apicid : 0
 +fpu : yes
 +fpu_exception : yes
 +cpuid level : 13
 +wp : yes
 +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d
 +bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
 +bogomips : 4788.80
 +clflush size : 64
 +cache_alignment : 64
 +address sizes : 36 bits physical, 48 bits virtual
 +power management:
 +
 +processor : 1
 +vendor_id : GenuineIntel
 +cpu family : 6
 +model : 58
 +model name : Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz
 +stepping : 9
 +microcode : 0x21
 +cpu MHz : 1917.102
 +cache size : 4096 KB
 +physical id : 0
 +siblings : 4
 +core id : 0
 +cpu cores : 2
 +apicid : 1
 +initial apicid : 1
 +fpu : yes
 +fpu_exception : yes
 +cpuid level : 13
 +wp : yes
 +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d
 +bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
 +bogomips : 4788.80
 +clflush size : 64
 +cache_alignment : 64
 +address sizes : 36 bits physical, 48 bits virtual
 +power management:
 +
 +processor : 2
 +vendor_id : GenuineIntel
 +cpu family : 6
 +model : 58
 +model name : Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz
 +stepping : 9
 +microcode : 0x21
 +cpu MHz : 1242.033
 +cache size : 4096 KB
 +physical id : 0
 +siblings : 4
 +core id : 1
 +cpu cores : 2
 +apicid : 2
 +initial apicid : 2
 +fpu : yes
 +fpu_exception : yes
 +cpuid level : 13
 +wp : yes
 +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d
 +bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
 +bogomips : 4788.80
 +clflush size : 64
 +cache_alignment : 64
 +address sizes : 36 bits physical, 48 bits virtual
 +power management:
 +
 +processor : 3
 +vendor_id : GenuineIntel
 +cpu family : 6
 +model : 58
 +model name : Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz
 +stepping : 9
 +microcode : 0x21
 +cpu MHz : 1635.220
 +cache size : 4096 KB
 +physical id : 0
 +siblings : 4
 +core id : 1
 +cpu cores : 2
 +apicid : 3
 +initial apicid : 3
 +fpu : yes
 +fpu_exception : yes
 +cpuid level : 13
 +wp : yes
 +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d
 +bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
 +bogomips : 4788.80
 +clflush size : 64
 +cache_alignment : 64
 +address sizes : 36 bits physical, 48 bits virtual
 +power management:
 +</code>
 +</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] =====
行 56: 行 254:
 08:00.0 Ethernet controller: Qualcomm Atheros AR8161 Gigabit Ethernet (rev 10) 08:00.0 Ethernet controller: Qualcomm Atheros AR8161 Gigabit Ethernet (rev 10)
 09:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01) 09:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
 +</code>
 +
 +==== VGA カード情報の表示 [lspci | grep -i vga] ====
 +<code>
 +$ lspci | grep -i vga
 +00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
 +01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 640M] (rev a1)
 +</code>
 +
 +==== Ethernet / Wifi カード情報の表示 [lspci | grep -i net] ====
 +<code>
 +$ lspci | grep -i net
 +07:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723AE PCIe Wireless Network Adapter
 +08:00.0 Ethernet controller: Qualcomm Atheros AR8161 Gigabit Ethernet (rev 10)
 </code> </code>
  
行 71: 行 283:
 Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 </code> </code>
 +
 +===== GPU 情報の表示 [clinfo] =====
 +clinfo のインストール。\\
 +<code>
 +$ sudo dnf install clinfo
 +</code>
 +
 +clinfo の表示。\\
 +<WRAP prewrap 100%>
 +<code>
 +$ clinfo | grep -A 4 'Number of'
 +Number of platforms                               3
 +  Platform Name                                   Intel Gen OCL Driver
 +  Platform Vendor                                 Intel
 +  Platform Version                                OpenCL 2.0 beignet 1.3
 +  Platform Profile                                FULL_PROFILE
 +--
 +Number of devices                                 1
 +  Device Name                                     Intel(R) HD Graphics IvyBridge M GT2
 +  Device Vendor                                   Intel
 +  Device Vendor ID                                0x8086
 +  Device Version                                  OpenCL 1.2 beignet 1.3
 +--
 +Number of devices                                 1
 +  Device Name                                     pthread-Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz
 +  Device Vendor                                   GenuineIntel
 +  Device Vendor ID                                0x6c636f70
 +  Device Version                                  OpenCL 1.2 pocl HSTR: pthread-x86_64-unknown-linux-gnu-ivybridge
 +--
 +Number of devices                                 0
 +
 +NULL platform behavior
 +  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel Gen OCL Driver
 +  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [Intel]
 +</code>
 +</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] =====
 +<code>
 +$ sudo dmidecode -t baseboard
 +# dmidecode 3.2
 +Getting SMBIOS data from sysfs.
 +SMBIOS 2.7 present.
 +
 +Handle 0x0002, DMI type 2, 16 bytes
 +Base Board Information
 + Manufacturer: MouseComputer Co.,Ltd.
 + Product Name: JW6H
 + Version: TBD
 + Serial Number: QCQC8H124600KX
 + Asset Tag: Type2 - Board Asset Tag
 + Features:
 + Board is a hosting board
 + Board is replaceable
 + Location In Chassis: Type2 - Board Chassis Location
 + Chassis Handle: 0x0003
 + Type: Motherboard
 + Contained Object Handles: 0
 +
 +Handle 0x0038, DMI type 41, 11 bytes
 +Onboard Device
 + Reference Designation: Hanksville Gbe Lan Connection
 + Type: Ethernet
 + Status: Enabled
 + Type Instance: 1
 + Bus Address: 0000:00:00.1
 +</code>
 +
 +===== BIOS 情報の表示 [dmidecode -t bios] =====
 +<code>
 +$ sudo dmidecode -t bios
 +# dmidecode 3.2
 +Getting SMBIOS data from sysfs.
 +SMBIOS 2.7 present.
 +
 +Handle 0x0000, DMI type 0, 24 bytes
 +BIOS Information
 + Vendor: Insyde Corp.
 + Version: QR113
 + Release Date: 10/09/2012
 + Address: 0x80000
 + Runtime Size: 512 kB
 + ROM Size: 4608 kB
 + Characteristics:
 + PCI is supported
 + BIOS is upgradeable
 + BIOS shadowing is allowed
 + Boot from CD is supported
 + Selectable boot is supported
 + EDD is supported
 + Japanese floppy for NEC 9800 1.2 MB is supported (int 13h)
 + Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
 + 5.25"/360 kB floppy services are supported (int 13h)
 + 5.25"/1.2 MB floppy services are supported (int 13h)
 + 3.5"/720 kB floppy services are supported (int 13h)
 + 3.5"/2.88 MB floppy services are supported (int 13h)
 + 8042 keyboard services are supported (int 9h)
 + CGA/mono video services are supported (int 10h)
 + ACPI is supported
 + USB legacy is supported
 + BIOS boot specification is supported
 + Targeted content distribution is supported
 + UEFI is supported
 + BIOS Revision: 181.13
 + Firmware Revision: 181.13
 +
 +Handle 0x0026, DMI type 13, 22 bytes
 +BIOS Language Information
 + Language Description Format: Long
 + Installable Languages: 4
 + en|US|iso8859-1
 + fr|CA|iso8859-1
 + ja|JP|unicode
 + zh|TW|unicode
 + 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>
 +
  • linux/commands/hardware.1568094701.txt.gz
  • 最終更新: 2019/09/10 14:51
  • by ともやん