debian

Debian dmesg日志中的内存信息解读

小樊
53
2025-09-25 09:20:51
栏目: 智能运维

在Debian系统中,dmesg命令用于显示内核环缓冲区的消息,这些消息包括硬件状态、驱动程序加载信息以及系统启动过程中的各种事件。内存相关的信息是其中非常重要的一部分,可以帮助你了解系统的内存使用情况和潜在问题。

以下是一些常见的dmesg日志中与内存相关的信息及其解读:

  1. 内存总量和类型

    Memory: 8177M/16352M available (8192M kernel code, 1310M rwdata, 4096M rodata, 2048M init, 1943M bss, 32768M reserved, 0K cma-reserved)
    
    • Memory: 8177M/16352M available:系统总共有16352MB内存,当前可用8177MB。
    • 8192M kernel code:内核代码占用的内存。
    • 1310M rwdata:可读写数据占用的内存。
    • 4096M rodata:只读数据占用的内存。
    • 2048M init:初始化内存。
    • 1943M bss:未初始化数据占用的内存。
    • 32768M reserved:保留内存。
    • 0K cma-reserved:连续内存分配器(CMA)保留的内存。
  2. 内存分配失败

    [    0.000000] Memory: 8177M/16352M available (8192M kernel code, 1310M rwdata, 4096M rodata, 2048M init, 1943M bss, 32768M reserved, 0K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Size=1.00MB, MinObjects=16, CPUs=8, Nodes=1
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000] NR_IRQS:16384, nr_irqs:16384, preallocated irqs:16384
    [    0.000000] rcu: Hierarchical SRCU implementation.
    [    0.000000] Clocksource systick: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 764504378 ns
    [    0.000000] NET: Registered protocol family 2
    [    0.000000] tcp_listen_portaddr_hash hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
    [    0.000000] TCP bind hash table entries: 32768 (order: 6, 262144 bytes)
    [    0.000000] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.000000] MPTCP hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP subflow hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP B-PDU buffer hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP RTO buffer hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP socket hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP key hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.000000] MPTCP control block array hash table entries: 8192 (order: 4, 65536 bytes)
    [   

0
看了该问题的人还看了