Blog categories

Comments

[Linux] 리눅스 하드웨어 정보보기

[Linux] 리눅스 하드웨어 정보보기

전체 HW 정보 확인

lshw 명령은 하드웨어 정보에 대해 자세한 정보를 출력한다.

Install lshw using Emerge
emerge --ask sys-apps/lshw
Usage
root ~ # lshw --help
Hardware Lister (lshw) - B.02.16
usage: lshw [-format] [-options ...]
       lshw -version
 
        -version        print program version (B.02.16)
 
format can be
        -html           output hardware tree as HTML
        -xml            output hardware tree as XML
        -short          output hardware paths
        -businfo        output bus information
 
options can be
        -class CLASS    only show a certain class of hardware
        -C CLASS        same as '-class CLASS'
        -c CLASS        same as '-class CLASS'
        -disable TEST   disable a test (like pci, isapnp, cpuid, etc. )
        -enable TEST    enable a test (like pci, isapnp, cpuid, etc. )
        -quiet          don't display status
        -sanitize       sanitize output (remove sensitive information like serial numbers, etc.)
        -numeric        output numeric IDs (for PCI, USB, etc.)

그래픽 카드 정보 조회는 아래와 같이 합니다. 결과물은 다음과 같이 출력된다.

rony ~ # lshw -class display
  *-display UNCLAIMED     
       description: VGA compatible controller
       product: ASPEED Graphics Family
       vendor: ASPEED Technology, Inc.
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 10
       width: 32 bits
       clock: 33MHz
       capabilities: pm vga_controller cap_list
       configuration: latency=0
       resources: memory:fb000000-fb7fffff memory:fafe0000-faffffff ioport:bc00(size=128)
  *-display UNCLAIMED
       description: VGA compatible controller
       product: GF100 [GeForce GTX 480]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:82:00.0
       version: a3
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller cap_list
       configuration: latency=0
       resources: memory:f6000000-f7ffffff memory:d8000000-dfffffff memory:d4000000-d7ffffff ioport:ec00(size=128) memory:f5f80000-f5ffffff

메모리 확인

root ~ # cat /proc/meminfo 
MemTotal:       65874288 kB
MemFree:        59872640 kB
MemAvailable:   65293952 kB
Buffers:           25432 kB
Cached:          4959700 kB
SwapCached:            0 kB
Active:          3897512 kB
Inactive:        1093240 kB
Active(anon):       5724 kB
Inactive(anon):     1272 kB
Active(file):    3891788 kB
Inactive(file):  1091968 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          5664 kB
Mapped:            10716 kB
Shmem:              1396 kB
Slab:             812184 kB
SReclaimable:     690972 kB
SUnreclaim:       121212 kB
KernelStack:        4000 kB
PageTables:         1024 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    32937144 kB
Committed_AS:      69740 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      270960 kB
VmallocChunk:   34359378560 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        7616 kB
DirectMap2M:     2080768 kB
DirectMap1G:    67108864 kB

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

div#stuning-header .dfd-stuning-header-bg-container {background-image: url(https://tech.sangron.com/wp-content/uploads/sites/2/2018/04/ubuntu_wallpaper_background.jpg);background-color: #3f3f3f;background-size: cover;background-position: top center;background-attachment: initial;background-repeat: no-repeat;}#stuning-header div.page-title-inner {min-height: 350px;}