debian

Debian dmesg日志关键提示有哪些

小樊
45
2025-07-07 16:32:52
栏目: 智能运维

在Debian系统中,dmesg命令用于显示内核环缓冲区的消息。这些消息通常包含系统启动时的硬件检测信息、驱动程序加载信息以及运行时的内核消息。以下是一些常见的dmesg日志关键提示及其含义:

启动阶段

  1. 硬件检测信息

    • ACPI: Added _OSI(Module Device)
    • ACPI: Added _OSI(Processor Device)
    • ACPI: Added _OSI(3.0 _SCP Extensions)
    • ACPI: Added _OSI(Processor Aggregator Device)
  2. 驱动程序加载信息

    • usbcore: registered new interface driver usbfs
    • usbcore: registered new interface driver hub
    • usbcore: registered new device driver usb
    • i8042: PNP: No PS/2 controller found.
  3. 硬件初始化

    • sda: sda1 sda2
    • ata1: SATA max UDMA/133 abar m2048@0xf6000000 port 0xf780 irq 42
    • eth0: no IPv6 routers present

运行时

  1. 内存管理

    • Page fault in non-paged area (pc=0xXXXXXXXX)
    • VMalloc: allocated 0xXXXXXXXX bytes
  2. CPU相关

    • CPU: Core i7-870 @ 2.93GHz
    • CPU: Hyper-Threading enabled on physical core 0, logical core 0
  3. 磁盘I/O

    • sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK
    • EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
  4. 网络相关

    • eth0: link up
    • wlan0: associated with AP XXXX at frequency 2.412 GHz (Channel 1)
  5. 系统事件

    • Kernel panic - not syncing: Fatal exception in interrupt
    • init: at-spi2-registryd main process ended, respawning
  6. 硬件故障

    • ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
    • i8042: Can't read CTR while initializing i8042
  7. 安全相关

    • SELinux: Security Policy Enforcement Disabled
    • AppArmor: AppArmor enabled

调试信息

  1. 内核模块加载

    • module 'example' loaded successfully
    • module 'example' failed to load: No such file or directory
  2. 系统调用

    • syscall 1234 returned -1 with errno 22 (Invalid argument)
    • syscall 5678 succeeded

其他

  1. 时间戳

    • Oct 10 14:23:45 hostname kernel: [ 123.456789] ...
  2. 日志级别

    • [ 0.000000] Linux version 5.4.0-42-generic (buildd@lgw01-amd64-039) (gcc version 9.3.0 (Debian 9.3.0-10)) #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020

注意事项

通过理解这些关键提示,你可以更好地监控和调试Debian系统的运行状态。

0
看了该问题的人还看了