出现page allocation failure. order:1, mode:0x20解决办法
最近有机器遇到一问题:nginx: page allocation failure. order:1, mode:0x20
Pid: 18448, comm: nginx Not tainted 2.6.32-431.17.1.el6.x86_64 #1以下是在百度上找到的信息:dmesg里报出这个信息,然后机器负载开始上升,而实际上用free可以看到还有大量的内存被buffer/cached因此不应该出这个问题才对,我的系统是centos6,上centos的论坛查了一圈,有人回说是内核的bug一个临时解决方案是sysctl -w vm.zone_reclaim_mode=1关于zone_reclaim_mode的定义kernel的文档里描述如下Zone_reclaim_mode allows someone to set more or less aggress ---->>阅读完整内容
Xen出现nf_conntrack: table full, dropping packet.的一些解决调整参数
我们的Centos6 x64_64系统的Xen宿主内核出现了一些日志,相应状况有网络丢包的现象发生。nf_conntrack: table full, dropping packet.
nf_conntrack: table full, dropping packet.
nf_conntrack: table full, dropping packet.
nf_conntrack: table full, dropping packet.
nf_conntrack: table full, dropping packet.
nf_conntrack: table full, dropping packet.
nf_conntrack: table full, dropping packet.
nf_conntrack: table full, dro ---->>阅读完整内容
Xen出现Too many frags以及fatal error; disabling device日志,子系统断网解决办法
Xen有些时候一些GUEST OS系统正常运行中但是网络断了,直接重启后网络又恢复了。
从dmesg里面查看相应的信息发现出现了Too many fragsvif vif-162-0: vifXEN_NAME.0: Too many frags
vif vif-162-0: vifXEN_NAME.0: fatal error; disabling devicegoogle了一下从一些mail list里面找到了解决办法,就是关闭tx和tso以及gso.先查看网卡ethtool -k 网卡运行命令会得到以下返回数据(一些机器返回的结果可能会有出入)[root@node75 ~]# ethtool -k eth0
Features for eth0:
rx-checksumming: on
tx-checksumming: on
tx-checksum-i ---->>阅读完整内容
调整解决ssh连接自动断开问题
一些时候开着的ssh窗口经常自动断开, 有时候是网络状况不够稳定导致,通过调整sshd配置可以缓解一定的状况。sed -i 's/#ClientAliveInterval 0/ClientAliveInterval 15/g' /etc/ssh/sshd_config
sed -i 's/#ClientAliveCountMax 3/ClientAliveCountMax 45/g' /etc/ssh/sshd_config
service sshd restartClientAliveInterval 设置一个以秒记的时长,如果超过这么长时间没有收到客户端的任何数据,
sshd 将通过安全通道向客户端发送一个”alive”消息,并等候应答。
默认值 0 表示不发送”alive”消息。这个选项仅对SSH-2有效。ClientAliveCountMax sshd ---->>阅读完整内容
[kipmi0]进程CPU 100%高占用率解决办法
服务器top进程上进程看到kipmi0经常占用很高的CPU甚至是100%看看专业的说法:
kipmi is supposed to run with low priority. When you say it consumes 70-90% of the CPUs, is that constant (does it still consume the processor when they are other tasks in the process queue that should have a larger slice of the CPU time) or the 70%/90% comes when the machine is idle? A second issue to investigate is whether you have pendin ---->>阅读完整内容
Mac OS X 挂在 ssh与 sftp 到本地

openvz ppp设置
安装好openvz内核后还需要加载ppp的模块才能让guest OS支持pptpcat>>/etc/sysconfig/modules/ppp.modules<<EOF
#!/bin/sh
/sbin/modprobe ppp_async
/sbin/modprobe ppp_deflate
/sbin/modprobe ppp_mppe
EOF
chmod +x /etc/sysconfig/modules/ppp.modules
bash /etc/sysconfig/modules/ppp.modules加载好ppp后还需要对guest os开启,下面已写好了functions直接在终端里面复制粘贴再执行openppp VID就可以了VID查询可以执行vzlist -aopenppp(){
vzctl set $1 --feature ---->>阅读完整内容
Ubuntu系统开启root登陆权限
1.安装openssh
2.sudo -i切换到root用户
3.修改/etc/ssh/sshd_config文件
PermitRootLogin yes
AllowUsers root #网上很多文章都少改了这行
4.重启ssh服务
service ssh restart
Linux CentOS 32位ext3分区解压4G以上ZIP文件方法
如何在UNIX下解压超过4G的ZIP文件安装7za命令:wget http://nchc.dl.sourceforge.net/s ... .65_src_all.tar.bz2
tar -xjvf p7zip_4.65_src_all.tar.bz2
cd p7zip_4.65
make
make install安装完毕,执行解压命令:7za x 解压文件.zip如下:7za x zipfile.zip