19
Changes of the values in the
Number
column. This column indicates the allocated numbers
of memory objects.
Change rates of the values in the
Number
column.
Values in the
Active
column. This column indicates the memory usage.
If the value in the
Number
column for a memory pool continually increases or increases quickly
or the values in the
Number
column and
Active
column are suspicious, the memory pool might
have memory leakage issues.
The memory leakage process might be slow. You might take a long period of time (for example,
several weeks) to observe and identify the situation.
2.
Display the call information for the memory pool that might have memory leakage issues. This
example uses the
kmalloc-2048
memory pool.
[Sysname-probe]view /sys/kernel/slab/kmalloc-2048/alloc_calls
23 kque0x58/0x260 age=4262117/4404939/4692659 pid=128-372 cpus=0,2-3
2 sys_init0x1bdc/0x1e50 age=4746250/4748179/4750108 pid=109-128
cpus=9,12
4 __vmalloc_ar0x154/0x1b0 age=4652363/4677089/4747310 pid=128-166
cpus=0-1,12
16 percpu_p0x3c/0x60 age=4322758/4322758/4322758 pid=128 cpus=0
21 alloc_pi0x24/0x60 age=4/3888025/4320768 pid=1-564 cpus=0-4,9,11
29 alloc_0x18/0x40 age=4758366/4758366/4758368 pid=1 cpus=15
2 i0x1c0/0x870 age=510128/2630142/4750157 pid=1-542 cpus=0,2
1 i0x4dc/0x870 age=510128 pid=542 cpus=2
2 kobj_m0x2c/0xd0 age=4758371/4758535/4758700 pid=0-1 cpus=0,15
2 usb_al0x38/0x200 age=4750540/4750605/4750671 pid=1 cpus=15
1 usb_cre0x34/0x120 age=4750540 pid=1 cpus=15
16 exception_notifi0x298/0x4f8 age=4750380/4750380/4750381 pid=1
cpus=15
1 drv_port_module_varial0x24/0x80 [system] age=4651959 pid=128 cpus=0
1 DRV_VLAN_BasicFu0x1ec/0x700 [system] age=4651871 pid=128 cpus=0
1 drv_vlan_macca0x124/0x240 [system] age=4651869 pid=128 cpus=0
1 drv_ipmc_sp0x54/0x840 [system] age=4650355 pid=128 cpus=0
1 drv_evb_add_broadcas0x964/0xa50 [system] age=4264182 pid=312 cpus=1
2 DRV_EVB_MAP0x160/0x2a0 [system] age=4264142/4264175/4264209 pid=288
cpus=9
1 drv_evi_localm0x160/0x650 [system] age=4651896 pid=128 cpus=0
1 DRV_QI0x278/0x890 [system] age=4650270 pid=128 cpus=0
1 DRV_QI0x478/0x890 [system] age=4650270 pid=128 cpus=0
1 Drv_Qacl_InitAddUdfT0x68/0xb30 [system] age=4651968 pid=128 cpus=0
1 drv_qacl_sal_r0xc8/0x210 [system] age=4651968 pid=128 cpus=0
---- More ----
The first field in the output shows the number of allocated memory blocks. The remaining fields
show the call information.
3.
Save the information displayed in the previous steps.
4.
Contact H3C Support.
IMPORTANT:
As a best practice to retain critical diagnostic information, do not reboot the device before you
contact H3C Support.