nf_conntrack: falling back to vmalloc.
作者:互联网
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来分配内存。
内存碎片化。
标签:kmalloc,zone,message,conntrack,memory,falling,proc,vmalloc 来源: https://blog.51cto.com/ipcpu/2406782