一个伪linux粉丝的blog
  1. 首页
  2. unix/linux
  3. 正文

SLUB: Unable to allocate memory on node -1

2020年12月01日 277点热度 0人点赞 0条评论

补一篇几周前的小问题,涉及 linux 内核 bug,需要升级。

1. 问题描述

排查客户环境节点无法工作的时候,发现有一个节点有如下报错,这里单独记录一下。

报错类似如下 SLUB: Unable to allocate memory on node -1

[Tue Nov  3 10:21:58 2020] SLUB: Unable to allocate memory on node -1 (gfp=0x20)
[Tue Nov  3 10:21:58 2020]   cache: kmalloc-192(182:e36548f123662dfca13ff092a3ff89312391f15ce14c6a3c4a55865478299769), object size: 192, buffer size: 192, default order: 1, min order: 0
[Tue Nov  3 10:21:58 2020]   node 0: slabs: 142, objs: 5712, free: 0
[Tue Nov  3 10:21:58 2020]   node 1: slabs: 427, objs: 17871, free: 199
[Tue Nov  3 02:56:33 2020] SLUB: Unable to allocate memory on node -1 (gfp=0x20)
[Tue Nov  3 02:56:33 2020]   cache: nf_conntrack_ffff880e5b6a2880(183:4a2829c933ac6a583112215cfb3a7d83f77bd661617ea5a1d711e1003ab47157), object size: 312, buffer size: 320, default order: 2, min order: 0
[Tue Nov  3 02:56:33 2020]   node 0: slabs: 133, objs: 5613, free: 0
[Tue Nov  3 02:56:33 2020]   node 1: slabs: 206, objs: 10155, free: 255

 

2. 原因分析

找到一些介绍和redhat的知识库,这里摘抄一下:

This issue has been resolved in the RHEL 7.7 z-stream kernel version kernel-3.10.0-1062.4.1.el7 via Errata RHSA-2019:3055. The bug is being tracked in Bugzilla 1752421 respectively.

 

3. 解决方法

升级内核至  kernel-3.10.0-1062.4.1.el7 以上版本

另外发现这个节点开启了 swap,这样看来,关闭swap也许能有助于解决这个问题。

 

4.  参考链接

https://access.redhat.com/solutions/4088471

下面这个链接有一个更加详细的介绍及几种解决方法,简而言之,升内核,升kubelet
https://en.pingcap.com/blog/try-to-fix-two-linux-kernel-bugs-while-testing-tidb-operator-in-k8s

Related posts:

  1. cron导致系统故障?+ moodle备份
  2. how-to-upgrade-kernel-centos
  3. Linux Kernel 5.4 on Debian 10
  4. Azure cni No available addresses
标签: kernel slub
最后更新:2020年12月16日

WanJie

正经人谁写博客啊?你写博客吗?写出来的那能叫博客?

点赞
< 上一篇
下一篇 >

文章评论

取消回复

分类
  • network
  • Uncategorized
  • unix/linux
  • 业界资讯
  • 公司杂事
  • 数码影像
  • 美剧
  • 美图共赏
  • 英语学习

COPYRIGHT © 2008-2021 一个伪linux粉丝的blog. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS