一个伪linux粉丝的blog

  1. 首页
  2. unix/linux
  3. 正文

SLUB: Unable to allocate memory on node -1

12月 1, 2020 457点热度 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

相关文章:

  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
最后更新:12月 16, 2020

wanjie

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

取消回复

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据。

归档
分类
  • network / 322篇
  • Uncategorized / 114篇
  • unix/linux / 110篇
  • 业界资讯 / 38篇
  • 公司杂事 / 11篇
  • 数码影像 / 12篇
  • 美剧 / 3篇
  • 美图共赏 / 20篇
  • 英语学习 / 3篇
标签聚合
网站运营 unveiled today jira k8s Android Google Voice dreamhost空间 虚拟主机 d90 泰国 kernel 职责 docker iMac Ubuntu VPS 刷机 Nginx ldap 天翼live Google Linux gitlab 黑莓8700 debian dreamhost 邮件归档 google-chrome wget nexus

COPYRIGHT © 2008-2022 wanjie.info. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang