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分析来看,这个 ...
随机推荐
- IOS strong和weak的区别
strong和weak的区别 strong表示保留它指向的堆上的内存区域不再指向这块区域了. 也就是说我强力指向了一个区域,我们不再指向它的条件只有我们指向nil或者我自己也不在内存上,没有人stro ...
- poj_3258 二分法
题目大意 给定区间[0,L],在区间内给定N个数,加上区间的端点总共N+2个值.这N+2个数相邻的两个数之间有一个差值delta[i],现在可以从除去端点之外的这N个数中删除M个,使得剩余的N+2-M ...
- HDU 4462Scaring the Birds(枚举所有状态)
Scaring the Birds Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others ...
- php中关于时间的用法
一.时间戳相关: 当前时间戳:time(); 把时间戳转换为时间显示:date("Y-m-d H:i:s", $a); 把日期时间转换 ...
- bootstrap之输入框组
向输入域添加前缀和后缀的内容 <div style="padding: 100px 100px 10px;"> <form class="bs-exam ...
- @Apiimplicitparam的paramType
转自:https://swagger.io/docs/specification/describing-parameters/ Parameter Types OpenAPI 3.0 distingu ...
- OC开发_Storyboard——NaviationController简单例子
一个简单的Navigation的例子,demo里面用到了上一个demo的MVC,可以参考下:http://www.cnblogs.com/daomul/p/4426063.html 建立一个Nav其实 ...
- 微信开发(2):微信js sdk分享朋友圈,朋友,获取config接口注入权限验证(转)
进行微信开发已经一阵子了,从最初的什么也不懂,到微信授权登录,分享,更改底部菜单,素材管理,等. 今天记录一下微信jssdk 的分享给朋友的功能,获取config接口注入. 官方文档走一下简单说:四步 ...
- 170804、使用Joda-Time优雅的处理日期时间
简介 在Java中处理日期和时间是很常见的需求,基础的工具类就是我们熟悉的Date和Calendar,然而这些工具类的api使用并不是很方便和强大,于是就诞生了Joda-Time这个专门处理日期时间的 ...
- Pandas介绍
pandas是python非常好用的一个数据结构包,包含有许多数据操作的方法,能够让你快速简便的提取和保存数据,节省你在这块的数据流操作耗时,从而让你更加专注于逻辑的设计和算法的设计.很多算法的相关库 ...