kernel: swapper: page allocation failure. order:1, mode:0x20
场景:领导电话通知,我们的主站宕机了,到家后从另外一台机器上ssh一直处于等待状态,开始怀疑机器的负载比较高,
后查看监控机器,发现网卡、cpu、nginx连接数.....通通都没有数据了,显然不是负载高度问题了,应该是机器死机了,立刻通过ipmi重启机器
重启机器后,机器正常!
其实这个机器都正常运行大半年了,没啥问题!
查询/var/log/messages,发现大量的信息如下:
点击(此处)折叠或打开
- Mar 12 11:15:04 hy1 kernel: php-fpm: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:04 hy1 kernel: php-fpm: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:04 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:05 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:05 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:05 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:05 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:05 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:05 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:06 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:09 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:09 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:09 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:10 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:11 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:11 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:11 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:11 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
- Mar 12 11:15:11 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
- Mar 12 11:17:33 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
- Mar 12 11:17:53 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
- Mar 12 11:17:53 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
- Mar 12 11:17:53 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
- Mar 12 11:17:53 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
- Mar 12 11:17:54 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
- Mar 12 11:17:54 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
- Mar 12 11:17:54 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
开始怀疑是系统的内存被吃光了,但通过检查监控,发现出问题的时候,内存还有蛮多可以用的! 当时的内存使用情况,见附件!
后来查到是内核的的一个bug
解决方法如下:
vi /etc/sysctl.conf
写入:
vm.zone_reclaim_mode = 1
sysctl -p 使其理解生效
原文:http://blog.chinaunix.net/uid-20776139-id-4155388.html
kernel: swapper: page allocation failure. order:1, mode:0x20的更多相关文章
- warn_alloc():page allocation failure问题分析
关键词:warn_alloc().__GFP_XXX.order.CMA等等. 在内存申请的时候经常会遇到类似“ xxx: page allocation failure: order:10...”类 ...
- Mongodb 故障分享 初始化时"errmsg" : "exception: new file allocation failure" 并且长时间处于STARTUP2
Hello,大家下午好. 近几天的项目有点赶,所以耽误了更新.现在给大家分享下,在安装mongodb的过程中,遇到的故障一则.其实很小白的问题,当时遇到这个问题的时候比较心慌,浪费了很多时间,跟大家分 ...
- Allocation Failure
up vote 8 down vote accepted "Allocation Failure" is a cause of GC cycle to kick. "Al ...
- mongodb new file allocation failure
话说那天正在向mongodb中写入数据,突然就蹦出了 new file allocation failure ,以为是数据有错误,就检查了一番,可没问题啊,看着像是mongo自己的问题,于是百度了一番 ...
- System and method to prioritize large memory page allocation in virtualized systems
The prioritization of large memory page mapping is a function of the access bits in the L1 page tabl ...
- linux page allocation and deallocation
All of the physical pages in the system are described by the mem_map data structure which is a li ...
- linux tcp调优
Linux TCP Performance Tuning News Linux Performance Tuning Recommended Books Recommended Links Linux ...
- [kernel]----理解kswapd的低水位min_free_kbytes
1. min_free_kbytes 先看官方解释: This is used to force the Linux VM to keep a minimum number of kilobytes ...
- [转]Android WiFi 掉线原因分析
看到一个比较详细的分析wifi断开的文章.收藏一下. 原文: http://blog.csdn.net/chi_wy/article/details/50963279 原因1 .从Log分析来看,这个 ...
随机推荐
- C/C++对Lu系统内置动态对象进行运算符重载
欢迎访问Lu程序设计 C/C++对Lu系统内置动态对象进行运算符重载 1 说明 要演示本文的例子,你必须下载Lu32脚本系统.本文的例子需要lu32.dll.lu32.lib.C格式的头文件lu32. ...
- 注册和删除Apache服务器的方法
Apache服务器的安装和卸载方法 下载Apache安装包 将Apache文件夹存在桌面或其他盘,输入cmd打开命令提示行 安装步骤:进入Apache安装目录下的bin目录: cd C:\Us ...
- 如何查找元素对应事件的js代码
以chrome的firebug为例 1.找到其dom元素,然后右键"break on"-->"subtree modification"等,设置后元素旁边 ...
- Egret类class和module写法区别
普通类 Test.ts class Test { public name:string = "Test"; public run(){ console.log(this.name) ...
- 【BZOJ3518】点组计数 欧拉函数
[BZOJ3518]点组计数 Description 平面上摆放着一个n*m的点阵(下图所示是一个3*4的点阵).Curimit想知道有多少三点组(a,b,c)满足以a,b,c三点共线.这里a,b,c ...
- .net配置404错误页面
如果你的网站出现一堆让人看不懂的报错,那么你就不是一个合格的程序员,也不是一个合格的站长. 下面的方面可以帮助你的网站远离让人头大的页面. 第一步:配置web.config 打开web.config, ...
- 无线路由器wan口和lan口ip同网段导致无法上网解决办法
环境 本地网段为192.168.0.0/24 路由器默认网段也是192.168.0.0/24 设置好路由器wan口DHCP自动获取ip以后无法上网 解决办法 把路由器是lan口地址设置为192.168 ...
- apt-get install 和 pip install的区别
pip install apt-get install 源是pyPI 源是ubuntu仓库 对于同一个包,pyPI可以提供更多的版本以供下载 pip install安装的python包,可以只安装在当 ...
- timedatectl — Control the system time and date
timedatectl --help 的执行结果如下: timedatectl [OPTIONS...] COMMAND ... Query or change system time and dat ...
- Qt::QWidget 无默认标题栏边框的拖拽修改大小方式
开发环境:win10+vs2015+qt5.9.1 背景:开发过程中,一般很少会使用系统提供的标题栏和边框:往往都是自定义一个自己设计的方案.这时候在QWidget中需要加上flag:Qt::Fram ...