System log message file is reporting "kernel: nf_conntrack: falling back to vmalloc".
Memory page availability can be further checked from /proc/buddyinfo as below.
# cat /proc/buddyinfo
Node 0, zone DMA 1 0 1 0 1 1 1 0 1 1 3
Node 0, zone DMA32 3342 2441 2138 5025 1871 236 3 0 0 0 0
Node 0, zone Normal 143135 6057 150803 4005 330 62 1 0 0 0 0
Linux uses two methods to allocate memory
kmalloc
vmalloc
kmalloc allocates contiguous physical memory pages and it will fail if contiguous physical pages are not available.Then kernel falls back to vmalloc.
vmalloc is usually slower than kmalloc. It has to remap virtual memory range to physical space.
Once above message is reported from system log message. It highly indicates the memory is being fragmented.
Following command can be used to compact fragmented memory pages.
echo 1 > /proc/sys/vm/compact_memory
这个报错不能算一个错误,只是说没有足够的连续内存可以分配kmalloc,因此启用vmalloc来分配内存。
内存碎片化。
转载于:https://blog.51cto.com/ipcpu/2406782
本文深入探讨了Linux系统中内存管理的问题,特别是当系统logmessagefile报告kernel:nf_conntrack:fallingbacktovmalloc时,如何检查内存页面可用性及解决内存碎片化问题。文章解释了Linux使用kmalloc和vmalloc两种方法分配内存,以及当kmalloc无法找到连续物理页时如何回退到vmalloc。并提供了解决内存碎片化的命令。

446

被折叠的 条评论
为什么被折叠?



