커널 순환 버퍼를 보고 제어하는 명령어이다.

사용법 : dmesg [옵션] 
c : 메시지 내용을 보여주고 순환 버퍼를 모두 비운다. 
-n level : 지정한 level의 값만 버퍼의 내용을 보여준다. 

dmesg는 시스템을 부팅할 때 로드되는 시스템 정보들의 각종 메세지를 가지고 있으며, 이를 다시 볼 때 이용한다. 이 정보에는 리눅스 커널 버전과 gcc버전 CPU정보등 부팅시의 시스템 정보를 다시 살펴 볼 수 있다.

# dmesg |more 
Linux version 2.4.18 (root@web2) (gcc version 2.95.3 20010315 (release)) #1 2002 
. 09. 09. (월) 20:16:41 KST 
BIOS-provided physical RAM map: 
 BIOS-e820: 0000000000000000 - 000000000009f400 (usable) 
 BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved) 
 BIOS-e820: 00000000000e4400 - 0000000000100000 (reserved) 
 BIOS-e820: 0000000000100000 - 000000003fff0000 (usable) 
 BIOS-e820: 000000003fff0000 - 000000003ffffc00 (ACPI data) 
 BIOS-e820: 000000003ffffc00 - 0000000040000000 (ACPI NVS) 
 BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved) 
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved) 
 BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved) 
Warning only 896MB will be used. 
Use a HIGHMEM enabled kernel. 
On node 0 totalpages: 229376 
zone(0): 4096 pages. 
zone(1): 225280 pages. 
zone(2): 0 pages. 
Kernel command line: auto BOOT_IMAGE=linux ro root=802 BOOT_FILE=/boot/vmlinuz-2 
.4.18 mem=1024M 
Initializing CPU#0 
Detected 999.783 MHz processor. 
Console: colour VGA+ 80x25 
Calibrating delay loop... 1992.29 BogoMIPS 
Memory: 900508k/917504k available (1238k kernel code, 16608k reserved, 408k data 
, 220k init, 0k highmem) 
Dentry-cache hash table entries: 131072 (order: 8, 1048576 bytes) 
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) 
Mount-cache hash table entries: 16384 (order: 5, 131072 bytes) 
Buffer-cache hash table entries: 65536 (order: 6, 262144 bytes) 
Page-cache hash table entries: 262144 (order: 8, 1048576 bytes) 
CPU: Before vendor init, caps: 0387fbff 00000000 00000000, vendor = 0 
CPU: L1 I cache: 16K, L1 D cache: 16K 
CPU: L2 cache: 256K 
CPU: After vendor init, caps: 0387fbff 00000000 00000000 00000000 
CPU serial number disabled. 
Intel machine check architecture supported. 
Intel machine check reporting enabled on CPU#0. 
CPU:     After generic, caps: 0383fbff 00000000 00000000 00000000 
CPU:             Common caps: 0383fbff 00000000 00000000 00000000 
CPU: Intel Pentium III (Coppermine) stepping 0a 
Enabling fast FPU save and restore... done. 
Enabling unmasked SIMD FPU exception support... done. 
Checking 'hlt' instruction... OK. 
POSIX conformance testing by UNIFIX 
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au) 
mtrr: detected mtrr type: Intel 
PCI: PCI BIOS revision 2.10 entry at 0xfdb57, last bus=1 
PCI: Using configuration type 1 
PCI: Probing PCI hardware 
PCI: Discovered peer bus 01 
Linux NET4.0 for Linux 2.4 
Based upon Swansea University Computer Society NET3.039 
Initializing RT netlink socket 

위에서 살펴 본 정보에서 이 시스템은 리눅스 커널 2.4.18을 사용하고, gcc 2.95.3, 메모리는 1024Mb 정도이며, CPU는 인텔 펜티엄III(Coppermine), ISA슬롯에 관련된 카드는 발견되지 않는 것을 볼 수 있다.
2005/06/21 20:29 2005/06/21 20:29

트랙백 주소 :: 이 글에는 트랙백을 보낼 수 없습니다